diff options
author | blunden <blunden2@gmail.com> | 2012-12-14 03:59:13 +0100 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2015-01-18 03:29:35 +0200 |
commit | d1bd024829b42e0013a8c4bb45da19e0d69dd566 (patch) | |
tree | e2f1a815f015b7b4e20c571def653de3c76d0d2f | |
parent | c61d0b5cdd065f1af0415f3eb3d1fcb1312b8454 (diff) | |
download | android_packages_inputmethods_LatinIME-d1bd024829b42e0013a8c4bb45da19e0d69dd566.tar.gz android_packages_inputmethods_LatinIME-d1bd024829b42e0013a8c4bb45da19e0d69dd566.tar.bz2 android_packages_inputmethods_LatinIME-d1bd024829b42e0013a8c4bb45da19e0d69dd566.zip |
LatinIME: Enable spellchecker for additional languages
We include more dictionaries than stock builds so let's
also enable spell checking for languages that use only
the supported unicode characters.
Change-Id: Iff9aea56edde10e47a754df39682f4f72c269756
-rw-r--r-- | java/res/xml/spellchecker.xml | 16 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/utils/ScriptUtils.java | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/java/res/xml/spellchecker.xml b/java/res/xml/spellchecker.xml index d2da17f9d..119e69947 100644 --- a/java/res/xml/spellchecker.xml +++ b/java/res/xml/spellchecker.xml @@ -63,4 +63,20 @@ android:label="@string/subtype_generic" android:subtypeLocale="hu" /> + <subtype + android:label="@string/subtype_generic" + android:subtypeLocale="da" + /> + <subtype + android:label="@string/subtype_generic" + android:subtypeLocale="fi" + /> + <subtype + android:label="@string/subtype_generic" + android:subtypeLocale="nb" + /> + <subtype + android:label="@string/subtype_generic" + android:subtypeLocale="sv" + /> </spell-checker> diff --git a/java/src/com/android/inputmethod/latin/utils/ScriptUtils.java b/java/src/com/android/inputmethod/latin/utils/ScriptUtils.java index e41856071..f33eb3ded 100644 --- a/java/src/com/android/inputmethod/latin/utils/ScriptUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/ScriptUtils.java @@ -72,6 +72,7 @@ public class ScriptUtils { mSpellCheckerLanguageToScript.put("nl", SCRIPT_LATIN); mSpellCheckerLanguageToScript.put("pt", SCRIPT_LATIN); mSpellCheckerLanguageToScript.put("sl", SCRIPT_LATIN); + mSpellCheckerLanguageToScript.put("sv", SCRIPT_LATIN); mSpellCheckerLanguageToScript.put("ru", SCRIPT_CYRILLIC); } /* |