From d1bd024829b42e0013a8c4bb45da19e0d69dd566 Mon Sep 17 00:00:00 2001 From: blunden Date: Fri, 14 Dec 2012 03:59:13 +0100 Subject: 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 --- java/res/xml/spellchecker.xml | 16 ++++++++++++++++ .../com/android/inputmethod/latin/utils/ScriptUtils.java | 1 + 2 files changed, 17 insertions(+) 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" /> + + + + 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); } /* -- cgit v1.2.3