diff options
| author | blunden <blunden2@gmail.com> | 2012-12-14 03:59:13 +0100 |
|---|---|---|
| committer | LorDClockaN <davor@losinj.com> | 2015-01-18 07:17:12 +0100 |
| commit | e6683805ff4df9b18bcbdebed19865baf23c6120 (patch) | |
| tree | 7dd3ff2bfd8432ee1ba5d480be13651665d5ff3e | |
| parent | aaa1785adf2cccae88f36578e468c917fc98019a (diff) | |
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); } /* |
