Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65b71557 authored by blunden's avatar blunden
Browse files

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
parent 1cac9c1e
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -75,4 +75,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>
+4 −0
Original line number Diff line number Diff line
@@ -104,6 +104,10 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
        mLanguageToScript.put("hr", SCRIPT_LATIN);
        mLanguageToScript.put("pt", SCRIPT_LATIN);
        mLanguageToScript.put("ru", SCRIPT_CYRILLIC);
        mLanguageToScript.put("da", SCRIPT_LATIN);
        mLanguageToScript.put("fi", SCRIPT_LATIN);
        mLanguageToScript.put("nb", SCRIPT_LATIN);
        mLanguageToScript.put("sv", SCRIPT_LATIN);
        // TODO: Make a persian proximity, and activate the Farsi subtype.
        // mLanguageToScript.put("fa", SCRIPT_PERSIAN);
    }