</head>
<body>
<!-- Don't use links in the text below, it crashes the app. -->
-Thanks for updating to QuickDic 3.1.1
+Thanks for updating to QuickDic 3.2
<p>New features:</p>
<ul>
-<li>Go straight to last-used dictionary on launch (bug-fix).</li>
-<li>Report issue menu item.</li>
-<li>Jump to random word.</li>
+<li>Default to embedded universal font (for better handling of non-Latin languages across all platforms).</li>
+<li>Fixed segmentation issues with accent marks (important for Thai, Arabic, Chinese).</li>
+<li>Fixed Irish/Gaelic dictionaries.</li>
</ul>
</body>
</html>
<string name="wordListFileSummary">The local file where the word list will be appended.</string>
<string name="wordListFileDefault">/sdcard/quickDic/wordList.txt</string>
- <string name="fontSizeKey">fontSize</string>
+ <string name="fontKey">font</string>
+ <string name="fontTitle">Dictionary font</string>
+ <string name="fontSummary">Font used to display dictionaries.</string>
+
+ <string name="fontSizeKey">fontSize</string>
<string name="fontSizeTitle">Font size</string>
<string name="fontSizeSummary">The size of the font for dictionary rows.</string>
android:defaultValue="@string/wordListFileDefault"\r
android:persistent="true"\r
/>\r
-\r
+ \r
+ <ListPreference \r
+ android:key="@string/fontKey"\r
+ android:title="@string/fontTitle"\r
+ android:summary="@string/fontSummary"\r
+ android:persistent="true"\r
+ android:defaultValue="FreeSerif.ttf.jpg"\r
+ android:entries="@array/fonts"\r
+ android:entryValues="@array/fontKeys"\r
+ />\r
+ \r
<EditTextPreference\r
android:key="@string/fontSizeKey"\r
android:title="@string/fontSizeTitle" \r
private SearchOperation currentSearchOperation = null;\r
\r
C.Theme theme = C.Theme.LIGHT;\r
+ Typeface typeface;\r
int fontSizeSp;\r
EditText searchText;\r
Button langButton;\r
}\r
\r
@Override\r
- public void onCreate(Bundle savedInstanceState) { \r
+ public void onCreate(Bundle savedInstanceState) {\r
+ final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r
+ prefs.edit().remove(C.INDEX_INDEX).commit(); // Don't auto-launch if this fails.\r
+\r
setTheme(((DictionaryApplication)getApplication()).getSelectedTheme().themeId);\r
\r
Log.d(LOG, "onCreate:" + this);\r
}\r
}).start();\r
\r
- final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r
- \r
+ final String fontName = prefs.getString(getString(R.string.fontKey), "FreeSerif.ttf.jpg");\r
+ if ("SYSTEM".equals(fontName)) {\r
+ typeface = Typeface.DEFAULT;\r
+ } else {\r
+ typeface = Typeface.createFromAsset(getAssets(), fontName);\r
+ }\r
+ if (typeface == null) {\r
+ Log.w(LOG, "Unable to create typeface, using default.");\r
+ typeface = Typeface.DEFAULT;\r
+ }\r
final String fontSize = prefs.getString(getString(R.string.fontSizeKey), "14");\r
try {\r
fontSizeSp = Integer.parseInt(fontSize.trim());\r
} catch (NumberFormatException e) {\r
- fontSizeSp = 12;\r
+ fontSizeSp = 14;\r
}\r
\r
setContentView(R.layout.dictionary_activity);\r
searchText = (EditText) findViewById(R.id.SearchText);\r
+ searchText.setTypeface(typeface);\r
searchText.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);\r
\r
langButton = (Button) findViewById(R.id.LangButton);\r
final Button button = new Button(parent.getContext());\r
final String name = application.getDictionaryName(dictionaryInfo.uncompressedFilename);\r
button.setText(name);\r
- final IntentLauncher intentLauncher = new IntentLauncher(parent.getContext(), getLaunchIntent(application.getPath(dictionaryInfo.uncompressedFilename), 0, "")) {\r
+ final IntentLauncher intentLauncher = new IntentLauncher(parent.getContext(), getLaunchIntent(application.getPath(dictionaryInfo.uncompressedFilename), 0, searchText.getText().toString())) {\r
@Override\r
protected void onGo() {\r
dialog.dismiss();\r
createTokenLinkSpans(col1, col1Spannable, col1Text);\r
createTokenLinkSpans(col2, (Spannable) col2.getText(), col2Text);\r
\r
+ col1.setTypeface(typeface);\r
+ col2.setTypeface(typeface);\r
col1.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);\r
col2.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);\r
// col2.setBackgroundResource(theme.otherLangBg);\r
// Doesn't work:\r
//textView.setTextColor(android.R.color.secondary_text_light);\r
textView.setTextAppearance(context, theme.tokenRowFg);\r
+ textView.setTypeface(typeface);\r
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 5 * fontSizeSp / 4);\r
\r
final TableRow tableRow = new TableRow(result.getContext());\r