Add support for Kannada
Some checks are pending
Check layouts / check_layout.output (push) Waiting to run
Check layouts / Generated files (push) Waiting to run
Check translations / check-translations (push) Waiting to run
Make Apk CI / Build-Apk (push) Waiting to run

Add language support for Kannada, including a layout and numerals.
This commit is contained in:
Jules Aguillon 2024-12-07 22:29:15 +01:00
parent ba02a3e305
commit baa16d742b
5 changed files with 60 additions and 0 deletions

View File

@ -78,6 +78,10 @@ Layout includes some ASCII punctuation but not all, missing: (, ), <, >, [, ], {
# hebr_2_il # hebr_2_il
Layout includes some ASCII punctuation but not all, missing: (, ), <, >, [, ], {, } Layout includes some ASCII punctuation but not all, missing: (, ), <, >, [, ], {, }
1 warnings 1 warnings
# kann_kannada
Layout includes some ASCII punctuation but not all, missing: #, $, %, (, ), *, +, /, <, =, >, [, \, ], ^, `, {, |, }, ~
Layout doesn't define some important keys, missing: loc esc, loc tab
2 warnings
# latn_azerty_be # latn_azerty_be
0 warnings 0 warnings
# latn_azerty_fr # latn_azerty_fr

View File

@ -33,6 +33,7 @@
<item>hang_dubeolsik_kr</item> <item>hang_dubeolsik_kr</item>
<item>hebr_1_il</item> <item>hebr_1_il</item>
<item>hebr_2_il</item> <item>hebr_2_il</item>
<item>kann_kannada</item>
<item>latn_azerty_be</item> <item>latn_azerty_be</item>
<item>latn_azerty_fr</item> <item>latn_azerty_fr</item>
<item>latn_bepo_fr</item> <item>latn_bepo_fr</item>
@ -103,6 +104,7 @@
<item>두벌식 (Korean)</item> <item>두벌식 (Korean)</item>
<item>Hebrew 1</item> <item>Hebrew 1</item>
<item>Hebrew 2</item> <item>Hebrew 2</item>
<item>ಕನ್ನಡ</item>
<item>AZERTY (Belgian)</item> <item>AZERTY (Belgian)</item>
<item>AZERTY (Français)</item> <item>AZERTY (Français)</item>
<item>BEPO (Français)</item> <item>BEPO (Français)</item>
@ -173,6 +175,7 @@
<item>@xml/hang_dubeolsik_kr</item> <item>@xml/hang_dubeolsik_kr</item>
<item>@xml/hebr_1_il</item> <item>@xml/hebr_1_il</item>
<item>@xml/hebr_2_il</item> <item>@xml/hebr_2_il</item>
<item>@xml/kann_kannada</item>
<item>@xml/latn_azerty_be</item> <item>@xml/latn_azerty_be</item>
<item>@xml/latn_azerty_fr</item> <item>@xml/latn_azerty_fr</item>
<item>@xml/latn_bepo_fr</item> <item>@xml/latn_bepo_fr</item>

View File

@ -25,6 +25,7 @@
<subtype android:label="%s" android:languageTag="is" android:imeSubtypeLocale="is_IS" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=ð|þ|æ|accent_trema:ö@o|accent_aigu:á:é:í:ó:ú:ý@d"/> <subtype android:label="%s" android:languageTag="is" android:imeSubtypeLocale="is_IS" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=ð|þ|æ|accent_trema:ö@o|accent_aigu:á:é:í:ó:ú:ý@d"/>
<subtype android:label="%s" android:languageTag="it" android:imeSubtypeLocale="it_IT" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=accent_grave:à:è:ì:ò:ù@f|accent_aigu:é:ó@d|accent_circonflexe:î@f|€|ə"/> <subtype android:label="%s" android:languageTag="it" android:imeSubtypeLocale="it_IT" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=accent_grave:à:è:ì:ò:ù@f|accent_aigu:é:ó@d|accent_circonflexe:î@f|€|ə"/>
<subtype android:label="%s" android:languageTag="ja" android:imeSubtypeLocale="ja_JP" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_jp"/> <subtype android:label="%s" android:languageTag="ja" android:imeSubtypeLocale="ja_JP" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_jp"/>
<subtype android:label="%s" android:languageTag="kn" android:imeSubtypeLocale="kn_IN" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=kannada,default_layout=kann_kannada"/>
<subtype android:label="%s" android:languageTag="ko" android:imeSubtypeLocale="ko_KR" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=hangul,default_layout=latn_qwerty_us"/> <subtype android:label="%s" android:languageTag="ko" android:imeSubtypeLocale="ko_KR" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=hangul,default_layout=latn_qwerty_us"/>
<subtype android:label="%s" android:languageTag="lt" android:imeSubtypeLocale="lt_LT" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=accent_ogonek:ą:ę:į:ų@s|accent_caron:č:š:ž@f|accent_dot_above:ė@s|accent_macron:ū@o|€"/> <subtype android:label="%s" android:languageTag="lt" android:imeSubtypeLocale="lt_LT" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_us,extra_keys=accent_ogonek:ą:ę:į:ų@s|accent_caron:č:š:ž@f|accent_dot_above:ė@s|accent_macron:ū@o|€"/>
<subtype android:label="%s" android:languageTag="lv" android:imeSubtypeLocale="lv_LV" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_lv,extra_keys=accent_macron:ā:ē:ī:ū@o|accent_caron:č:š:ž@f|accent_ogonek:ķ:ļ:ņ@s|accent_cedille:ģ@c|€"/> <subtype android:label="%s" android:languageTag="lv" android:imeSubtypeLocale="lv_LV" android:imeSubtypeMode="keyboard" android:isAsciiCapable="true" android:imeSubtypeExtraValue="script=latin,default_layout=latn_qwerty_lv,extra_keys=accent_macron:ā:ē:ī:ū@o|accent_caron:č:š:ž@f|accent_ogonek:ķ:ļ:ņ@s|accent_cedille:ģ@c|€"/>

View File

@ -115,6 +115,7 @@ public final class KeyModifier
case "devanagari": return map_char_numpad_devanagari; case "devanagari": return map_char_numpad_devanagari;
case "persian": return map_char_numpad_persian; case "persian": return map_char_numpad_persian;
case "gujarati": return map_char_numpad_gujarati; case "gujarati": return map_char_numpad_gujarati;
case "kannada": return map_char_numpad_kannada;
default: return map_char_none; default: return map_char_none;
} }
} }
@ -475,6 +476,27 @@ public final class KeyModifier
} }
}; };
private static final Map_char map_char_numpad_kannada =
new Map_char() {
public String apply(char c)
{
switch (c)
{
case '0': return "";
case '1': return "";
case '2': return "";
case '3': return "";
case '4': return "";
case '5': return "";
case '6': return "";
case '7': return "";
case '8': return "";
case '9': return "";
default: return null;
}
}
};
/** Compose the precomposed initial with the medial [kv]. */ /** Compose the precomposed initial with the medial [kv]. */
private static KeyValue combine_hangul_initial(KeyValue kv, int precomposed) private static KeyValue combine_hangul_initial(KeyValue kv, int precomposed)
{ {

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard name="ಕನ್ನಡ" script="kannada">
<row>
<key key0="ಕ" key1="ಖ" key2="ಘ" key3="ಙ" key4="ಗ"/>
<key key0="ಚ" key1="ಛ" key2="ಝ" key3="ಞ" key4="ಜ"/>
<key key0="ಟ" key1="ಠ" key2="ಢ" key3="ಣ" key4="ಡ"/>
<key key0="ತ" key1="ಥ" key2="ಧ" key3="ನ" key4="ದ"/>
<key key0="ಪ" key1="ಫ" key2="ಭ" key3="ಮ" key4="ಬ"/>
<key key0="ಯ" key1="ರ" key2="ವ" key3="ಱ" key4="ಲ" key8="ೞ"/>
<key key0="ಶ" key1="ಷ" key2="ಹ" key3="ಳ" key4="ಸ" key8="※"/>
</row>
<row>
<key key0="ಾ" key1="ಅ" key2="ಆ"/>
<key key0="ಿ" key1="ಇ" key2="ಈ" key4="ೀ"/>
<key key0="ು" key1="ಉ" key2="ಊ" key4="ೂ"/>
<key key0="ೃ" key1="ಋ" key2="ೠ" key3="ಌ" key4="ೄ" key5="ೡ" key6="ೣ" key8="ೢ"/>
<key key0="ೆ" key1="ಎ" key2="ಏ" key4="ೇ" key6="ೕ"/>
<key key0="ೈ" key1="ಐ" key2="ಒ" key4="ೊ" key5="ೖ"/>
<key key0="ೋ" key1="ಓ" key2="ಔ" key4="ೌ"/>
</row>
<row>
<key key0="್" key1="\@" key2="&amp;" key8="಼"/>
<key key0="" key1="₹" key2="卐" key3="!" key4="\?" key7="ॐ"/>
<key key0="ಃ" key5="ೲ" key6="ೱ" key7="ಽ"/>
<key key0="।" key1="'" key2="&quot;" key3="." key4="," key5="" key6="॥" key8="॰"/>
<key key0="" key3="-" key4="_" key5=":" key6=";" key8="•"/>
<key key0="೫" key1="೧" key2="೩" key3="೭" key4="೯" key5="೪" key6="೬" key7="೨" key8="೮"/>
<key key0="backspace" key2="delete"/>
</row>
</keyboard>