diff options
author | Michael Bestas <mikeioannina@gmail.com> | 2015-01-21 01:42:30 +0200 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2015-02-11 03:11:44 +0200 |
commit | 5b3781c6f6d6508e931eaafe852c53ad90958d35 (patch) | |
tree | 4fbeb5431ba663ffa063072183ad8c7e011d2ddc | |
parent | e26d2b6b0921d48b6340fffcc3120bf59d54a23f (diff) | |
download | android_packages_inputmethods_LatinIME-5b3781c6f6d6508e931eaafe852c53ad90958d35.tar.gz android_packages_inputmethods_LatinIME-5b3781c6f6d6508e931eaafe852c53ad90958d35.tar.bz2 android_packages_inputmethods_LatinIME-5b3781c6f6d6508e931eaafe852c53ad90958d35.zip |
LatinIME: Add support for Kurdish
Change-Id: Icc35391cce66fac3720aa7e212bcdedf0bc9e3e3
-rw-r--r-- | java/res/xml-sw600dp/rows_kurdish.xml | 54 | ||||
-rw-r--r-- | java/res/xml/kbd_kurdish.xml | 26 | ||||
-rw-r--r-- | java/res/xml/key_space_5kw.xml | 4 | ||||
-rw-r--r-- | java/res/xml/key_styles_currency.xml | 2 | ||||
-rw-r--r-- | java/res/xml/keyboard_layout_set_kurdish.xml | 42 | ||||
-rw-r--r-- | java/res/xml/keys_comma_period.xml | 2 | ||||
-rw-r--r-- | java/res/xml/keys_less_greater.xml | 2 | ||||
-rw-r--r-- | java/res/xml/method.xml | 8 | ||||
-rw-r--r-- | java/res/xml/row_qwerty4.xml | 2 | ||||
-rw-r--r-- | java/res/xml/rowkeys_kurdish1.xml | 114 | ||||
-rw-r--r-- | java/res/xml/rowkeys_kurdish2.xml | 78 | ||||
-rw-r--r-- | java/res/xml/rowkeys_kurdish3.xml | 78 | ||||
-rw-r--r-- | java/res/xml/rows_kurdish.xml | 50 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java | 2 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java | 129 | ||||
-rw-r--r-- | tools/make-keyboard-text/res/values-ku/donottranslate-more-keys.xml | 125 |
16 files changed, 711 insertions, 7 deletions
diff --git a/java/res/xml-sw600dp/rows_kurdish.xml b/java/res/xml-sw600dp/rows_kurdish.xml new file mode 100644 index 000000000..e85d7849d --- /dev/null +++ b/java/res/xml-sw600dp/rows_kurdish.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<merge + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <include + latin:keyboardLayout="@xml/key_styles_common" /> + <Row + latin:keyWidth="9.0%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish1" /> + <Key + latin:keyStyle="deleteKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <Row + latin:keyWidth="9.0%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish2" + latin:keyXPos="4.5%p" /> + <Key + latin:keyStyle="enterKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <Row + latin:keyWidth="9.0%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish3" + latin:keyXPos="10.0%p" /> + </Row> + <include + latin:keyboardLayout="@xml/row_qwerty4" /> +</merge> diff --git a/java/res/xml/kbd_kurdish.xml b/java/res/xml/kbd_kurdish.xml new file mode 100644 index 000000000..603adf32d --- /dev/null +++ b/java/res/xml/kbd_kurdish.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<Keyboard + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <include + latin:keyboardLayout="@xml/rows_kurdish" /> +</Keyboard> diff --git a/java/res/xml/key_space_5kw.xml b/java/res/xml/key_space_5kw.xml index b6d38fb33..d2a1364de 100644 --- a/java/res/xml/key_space_5kw.xml +++ b/java/res/xml/key_space_5kw.xml @@ -23,7 +23,7 @@ > <switch> <case - latin:languageCode="fa|ne" + latin:languageCode="fa|ku|ne" latin:languageSwitchKeyEnabled="true" > <Key @@ -35,7 +35,7 @@ latin:keyStyle="zwnjKeyStyle" /> </case> <case - latin:languageCode="fa|ne" + latin:languageCode="fa|ku|ne" latin:languageSwitchKeyEnabled="false" > <Key diff --git a/java/res/xml/key_styles_currency.xml b/java/res/xml/key_styles_currency.xml index 84c2abc08..a90898666 100644 --- a/java/res/xml/key_styles_currency.xml +++ b/java/res/xml/key_styles_currency.xml @@ -106,7 +106,7 @@ <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for its unicode, although there is no font glyph for it as of September 2013. --> <case - latin:languageCode="fa|hi|iw|lo|mn|ne|th|uk|vi" + latin:languageCode="fa|hi|iw|ku|lo|mn|ne|th|uk|vi" > <!-- U+00A3: "£" POUND SIGN U+20AC: "€" EURO SIGN diff --git a/java/res/xml/keyboard_layout_set_kurdish.xml b/java/res/xml/keyboard_layout_set_kurdish.xml new file mode 100644 index 000000000..428bbc08f --- /dev/null +++ b/java/res/xml/keyboard_layout_set_kurdish.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<KeyboardLayoutSet + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"> + <Element + latin:elementName="alphabet" + latin:elementKeyboard="@xml/kbd_kurdish" + latin:enableProximityCharsCorrection="true" /> + <Element + latin:elementName="symbols" + latin:elementKeyboard="@xml/kbd_symbols" /> + <Element + latin:elementName="symbolsShifted" + latin:elementKeyboard="@xml/kbd_symbols_shift" /> + <Element + latin:elementName="phone" + latin:elementKeyboard="@xml/kbd_phone" /> + <Element + latin:elementName="phoneSymbols" + latin:elementKeyboard="@xml/kbd_phone_symbols" /> + <Element + latin:elementName="number" + latin:elementKeyboard="@xml/kbd_number" /> +</KeyboardLayoutSet> diff --git a/java/res/xml/keys_comma_period.xml b/java/res/xml/keys_comma_period.xml index 1b51e45ed..8033c6459 100644 --- a/java/res/xml/keys_comma_period.xml +++ b/java/res/xml/keys_comma_period.xml @@ -40,7 +40,7 @@ latin:keyStyle="hasShiftedLetterHintStyle" /> </case> <case - latin:languageCode="fa" + latin:languageCode="fa|ku" > <Key latin:keyLabel="!text/keylabel_for_apostrophe" diff --git a/java/res/xml/keys_less_greater.xml b/java/res/xml/keys_less_greater.xml index 56d0727dd..7026ae35f 100644 --- a/java/res/xml/keys_less_greater.xml +++ b/java/res/xml/keys_less_greater.xml @@ -23,7 +23,7 @@ > <switch> <case - latin:languageCode="fa" + latin:languageCode="fa|ku" > <!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK --> diff --git a/java/res/xml/method.xml b/java/res/xml/method.xml index fffa1516e..a0fdce9d4 100644 --- a/java/res/xml/method.xml +++ b/java/res/xml/method.xml @@ -55,6 +55,7 @@ ka_GE: Georgian/georgian (kk: Kazakh/east_slavic) # disabled temporarily. waiting for string resources. km_KH: Khmer/khmer + ku: Kurdish/arabic ky: Kyrgyz/east_slavic lo_LA: Lao/lao lt: Lithuanian/qwerty @@ -336,6 +337,13 @@ /> <subtype android:icon="@drawable/ic_ime_switcher_dark" android:label="@string/subtype_generic" + android:subtypeId="0xbe66c255" + android:imeSubtypeLocale="ku" + android:imeSubtypeMode="keyboard" + android:imeSubtypeExtraValue="KeyboardLayoutSet=kurdish,EmojiCapable" + /> + <subtype android:icon="@drawable/ic_ime_switcher_dark" + android:label="@string/subtype_generic" android:subtypeId="0x2e391c04" android:imeSubtypeLocale="ky" android:imeSubtypeMode="keyboard" diff --git a/java/res/xml/row_qwerty4.xml b/java/res/xml/row_qwerty4.xml index 578bc1234..b89cc3838 100644 --- a/java/res/xml/row_qwerty4.xml +++ b/java/res/xml/row_qwerty4.xml @@ -34,7 +34,7 @@ latin:keyboardLayout="@xml/key_space_5kw" /> <switch> <case - latin:languageCode="ar|fa" + latin:languageCode="ar|fa|ku" > <Key latin:keyHintLabel="!text/keyhintlabel_for_arabic_diacritics" diff --git a/java/res/xml/rowkeys_kurdish1.xml b/java/res/xml/rowkeys_kurdish1.xml new file mode 100644 index 000000000..91030c141 --- /dev/null +++ b/java/res/xml/rowkeys_kurdish1.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<merge + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <!-- U+0642: "ق" ARABIC LETTER QAF + U+0060: "`" GRAVE ACCENT + U+0661: "١" ARABIC-INDIC DIGIT ONE --> + <Key + latin:keyLabel="ق" + latin:moreKeys="`|`,%" + latin:keyHintLabel="١" + latin:additionalMoreKeys="١,1" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0648: "و" ARABIC LETTER WAW + U+0648 U+0648: "وو" ARABIC LETTER WAW + ARABIC LETTER WAW + U+0662: "٢" ARABIC-INDIC DIGIT TWO --> + <Key + latin:keyLabel="و" + latin:moreKeys="وو|وو,%" + latin:keyHintLabel="٢" + latin:additionalMoreKeys="٢,2" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06D5: "ە" ARABIC LETTER AE + U+064A: "ي" ARABIC LETTER YEH + U+0663: "٣" ARABIC-INDIC DIGIT THREE --> + <Key + latin:keyLabel="ە" + latin:moreKeys="ي|ي,%" + latin:keyHintLabel="٣" + latin:additionalMoreKeys="٣,3" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0631: "ر" ARABIC LETTER REH + U+0695: "ڕ" ARABIC LETTER REH WITH SMALL V BELOW + U+0664: "٤" ARABIC-INDIC DIGIT FOUR --> + <Key + latin:keyLabel="ر" + latin:moreKeys="ڕ|ڕ,%" + latin:keyHintLabel="٤" + latin:additionalMoreKeys="٤,4" + latin:keyLabelFlags="fontNormal" /> + <!-- U+062A: "ت" ARABIC LETTER TEH + U+0637: "ط" ARABIC LETTER TAH + U+0665: "٥" ARABIC-INDIC DIGIT FIVE --> + <Key + latin:keyLabel="ت" + latin:moreKeys="ط|ط,%" + latin:keyHintLabel="٥" + latin:additionalMoreKeys="٥,5" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06CC: "ی" ARABIC LETTER FARSI YEH + U+06CE: "ێ" ARABIC LETTER YEH WITH SMALL V + U+0666: "٦" ARABIC-INDIC DIGIT SIX --> + <Key + latin:keyLabel="ی" + latin:moreKeys="ێ|ێ,%" + latin:keyHintLabel="٦" + latin:additionalMoreKeys="٦,6" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0626: "ئ" ARABIC LETTER YEH WITH HAMZA ABOVE + U+0621: "ء" ARABIC LETTER HAMZA + U+0667: "٧" ARABIC-INDIC DIGIT SEVEN --> + <Key + latin:keyLabel="ئ" + latin:moreKeys="ء|ء,%" + latin:keyHintLabel="٧" + latin:additionalMoreKeys="٧,7" + latin:keyLabelFlags="fontNormal" /> + <!-- U+062D: "ح" ARABIC LETTER HAH + U+0639: "ع" ARABIC LETTER AIN + U+0668: "٨" ARABIC-INDIC DIGIT EIGHT --> + <Key + latin:keyLabel="ح" + latin:moreKeys="ع|ع,%" + latin:keyHintLabel="٨" + latin:additionalMoreKeys="٨,8" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06C6: "ۆ" ARABIC LETTER OE + U+0624: "ؤ" ARABIC LETTER WAW WITH HAMZA ABOVE + U+0669: "٩" ARABIC-INDIC DIGIT NINE --> + <Key + latin:keyLabel="ۆ" + latin:moreKeys="ؤ|ؤ,%" + latin:keyHintLabel="٩" + latin:additionalMoreKeys="٩,9" + latin:keyLabelFlags="fontNormal" /> + <!-- U+067E: "پ" ARABIC LETTER PEH + U+062B: "ث" ARABIC LETTER THEH + U+0660: "٠" ARABIC-INDIC DIGIT ZERO --> + <Key + latin:keyLabel="پ" + latin:moreKeys="ث|ث,%" + latin:keyHintLabel="٠" + latin:additionalMoreKeys="٠,0" + latin:keyLabelFlags="fontNormal" /> +</merge> diff --git a/java/res/xml/rowkeys_kurdish2.xml b/java/res/xml/rowkeys_kurdish2.xml new file mode 100644 index 000000000..0760f0b81 --- /dev/null +++ b/java/res/xml/rowkeys_kurdish2.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<merge + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <!-- U+0627: "ا" ARABIC LETTER ALEF + U+0622: "آ": ARABIC LETTER ALEF WITH MADDA ABOVE --> + <Key + latin:keyLabel="ا" + latin:moreKeys="آ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0633: "س" ARABIC LETTER SEEN + U+0634: "ش": ARABIC LETTER SHEEN --> + <Key + latin:keyLabel="س" + latin:moreKeys="ش" + latin:keyLabelFlags="fontNormal" /> + <!-- U+062F: "د" ARABIC LETTER DAL + U+0630: "ذ" ARABIC LETTER THAL --> + <Key + latin:keyLabel="د" + latin:moreKeys="ذ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0641: "ف" ARABIC LETTER FEH + U+0625: "إ": ARABIC LETTER ALEF WITH HAMZA BELOW --> + <Key + latin:keyLabel="ف" + latin:moreKeys="إ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06AF: "گ" ARABIC LETTER GAF + U+063A: "غ": ARABIC LETTER GHAIN --> + <Key + latin:keyLabel="گ" + latin:moreKeys="غ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06BE: "ھ" ARABIC LETTER HEH DOACHASHMEE + U+0623: "": ZERO WIDTH NON-JOINER --> + <Key + latin:keyLabel="ھ" + latin:moreKeys="‌" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0698: "ژ" ARABIC LETTER JEH + U+0623: "أ": ARABIC LETTER ALEF WITH HAMZA ABOVE --> + <Key + latin:keyLabel="ژ" + latin:moreKeys="أ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06A9: "ک" ARABIC LETTER KEHEH + U+0643: "ك": ARABIC LETTER KAF --> + <Key + latin:keyLabel="ک" + latin:moreKeys="ك" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0644: "ل" ARABIC LETTER LAM + U+06B5: "ڵ": ARABIC LETTER LAM WITH SMALL V --> + <Key + latin:keyLabel="ل" + latin:moreKeys="ڵ" + latin:keyLabelFlags="fontNormal" /> +</merge> diff --git a/java/res/xml/rowkeys_kurdish3.xml b/java/res/xml/rowkeys_kurdish3.xml new file mode 100644 index 000000000..252e34d33 --- /dev/null +++ b/java/res/xml/rowkeys_kurdish3.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<merge + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <!-- U+0632: "ز" ARABIC LETTER ZAIN + U+0636: "ض" ARABIC LETTER DAD --> + <Key + latin:keyLabel="ز" + latin:moreKeys="ض" + latin:keyLabelFlags="fontNormal" /> + <!-- U+062E: "خ" ARABIC LETTER KHAH + U+0635: "ص" ARABIC LETTER SAD --> + <Key + latin:keyLabel="خ" + latin:moreKeys="ص" + latin:keyLabelFlags="fontNormal" /> + <!-- U+062C: "ج" ARABIC LETTER JEEM + U+0686: "چ" ARABIC LETTER TCHEH --> + <Key + latin:keyLabel="ج" + latin:moreKeys="چ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+06A4: "ڤ" ARABIC LETTER VEH + U+0638: "ظ" ARABIC LETTER ZAH --> + <Key + latin:keyLabel="ڤ" + latin:moreKeys="ظ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0628: "ب" ARABIC LETTER BEH + U+0649: "ى" ARABIC LETTER ALEF MAKSURA --> + <Key + latin:keyLabel="ب" + latin:moreKeys="ى" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0646: "ن" ARABIC LETTER NOON + U+0629: "ة" ARABIC LETTER TEH MARBUTA --> + <Key + latin:keyLabel="ن" + latin:moreKeys="ة" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0645: "م" ARABIC LETTER MEEM + U+0640: "ـ" ARABIC TATWEEL --> + <Key + latin:keyLabel="م" + latin:moreKeys="ـ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+0021: "!" EXCLAMATION MARK + U+06CA: "ۊ" ARABIC LETTER WAW WITH TWO DOTS ABOVE --> + <Key + latin:keyLabel="!" + latin:moreKeys="ۊ" + latin:keyLabelFlags="fontNormal" /> + <!-- U+061F: "؟" ARABIC QUESTION MARK + U+068E: "ڎ" ARABIC LETTER DUL --> + <Key + latin:keyLabel="؟" + latin:moreKeys="ڎ" + latin:keyLabelFlags="fontNormal" /> +</merge> diff --git a/java/res/xml/rows_kurdish.xml b/java/res/xml/rows_kurdish.xml new file mode 100644 index 000000000..2743ab891 --- /dev/null +++ b/java/res/xml/rows_kurdish.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<merge + xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" +> + <include + latin:keyboardLayout="@xml/key_styles_common" /> + <Row + latin:keyWidth="10%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish1" /> + </Row> + <Row + latin:keyWidth="10%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish2" + latin:keyXPos="5%p" /> + </Row> + <Row + latin:keyWidth="10%p" + > + <include + latin:keyboardLayout="@xml/rowkeys_kurdish3" /> + <Key + latin:keyStyle="deleteKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <include + latin:keyboardLayout="@xml/row_qwerty4" /> +</merge> diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java index dc815e57d..8b65dc2e2 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardCodesSet.java @@ -133,12 +133,14 @@ public final class KeyboardCodesSet { private static final String LANGUAGE_ARABIC = "ar"; private static final String LANGUAGE_PERSIAN = "fa"; private static final String LANGUAGE_HEBREW = "iw"; + private static final String LANGUAGE_KURDISH = "ku"; private static final Object[] LANGUAGE_AND_CODES = { LANGUAGE_DEFAULT, DEFAULT, LANGUAGE_ARABIC, RTL, LANGUAGE_PERSIAN, RTL, LANGUAGE_HEBREW, RTL, + LANGUAGE_KURDISH, RTL, }; static { diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java index f2c02d1a5..dfac6e124 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java @@ -959,7 +959,7 @@ public final class KeyboardTextsSet { // U+00E3: "ã" LATIN SMALL LETTER A WITH TILDE // U+00E5: "å" LATIN SMALL LETTER A WITH RING ABOVE // U+0101: "ā" LATIN SMALL LETTER A WITH MACRON - /* 0 */ "\u00E4,\u0040,\u00E2,\u00E0,\u00E1,\u00E6,\u00E3,\u00E5,\u0101", + /* 0 */ "\u00E4,@,\u00E2,\u00E0,\u00E1,\u00E6,\u00E3,\u00E5,\u0101", // U+00E9: "é" LATIN SMALL LETTER E WITH ACUTE // U+00E8: "è" LATIN SMALL LETTER E WITH GRAVE // U+00EA: "ê" LATIN SMALL LETTER E WITH CIRCUMFLEX @@ -2022,6 +2022,132 @@ public final class KeyboardTextsSet { /* 50 */ "\u17DB,\u00A2,\u00A3,\u20AC,\u00A5,\u20B1", }; + /* Language ku: Kurdish */ + private static final String[] LANGUAGE_ku = { + /* 0~ */ + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + /* ~44 */ + // Label for "switch to alphabetic" key. + // U+0627: "ا" ARABIC LETTER ALEF + // U+200C: ZERO WIDTH NON-JOINER + // U+0628: "ب" ARABIC LETTER BEH + // U+06BE: "ھ" ARABIC LETTER HEH DOACHASHMEE + /* 45 */ "\u0627\u200C\u0628\u200C\u06BE", + /* 46 */ null, + /* 47 */ null, + /* 48 */ "!text/single_laqm_raqm_rtl", + /* 49 */ "!text/double_laqm_raqm_rtl", + /* 50~ */ + null, null, null, + /* ~52 */ + // U+061F: "؟" ARABIC QUESTION MARK + // U+060C: "،" ARABIC COMMA + // U+061B: "؛" ARABIC SEMICOLON + /* 53 */ "!fixedColumnOrder!8,\",\',#,-,:,!,\u060C,\u061F,@,&,\\%,+,\u061B,/,(|),)|(", + // U+2605: "★" BLACK STAR + // U+066D: "٭" ARABIC FIVE POINTED STAR + /* 54 */ "\u2605,\u066D", + // U+266A: "♪" EIGHTH NOTE + /* 55 */ "\u266A", + /* 56 */ null, + // The all letters need to be mirrored are found at + // http://www.unicode.org/Public/6.1.0/ucd/BidiMirroring.txt + // U+FD3E: "﴾" ORNATE LEFT PARENTHESIS + // U+FD3F: "﴿" ORNATE RIGHT PARENTHESIS + /* 57 */ "!fixedColumnOrder!4,\uFD3E|\uFD3F,<|>,{|},[|]", + /* 58 */ "!fixedColumnOrder!4,\uFD3F|\uFD3E,>|<,}|{,]|[", + // U+2264: "≤" LESS-THAN OR EQUAL TO + // U+2265: "≥" GREATER-THAN EQUAL TO + // U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + // U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK + // U+2039: "‹" SINGLE LEFT-POINTING ANGLE QUOTATION MARK + // U+203A: "›" SINGLE RIGHT-POINTING ANGLE QUOTATION MARK + /* 59 */ "!fixedColumnOrder!3,\u2039|\u203A,\u2264|\u2265,\u00AB|\u00BB", + /* 60 */ "!fixedColumnOrder!3,\u203A|\u2039,\u2265|\u2264,\u00BB|\u00AB", + // U+0655: "ٕ" ARABIC HAMZA BELOW + // U+0654: "ٔ" ARABIC HAMZA ABOVE + // U+0652: "ْ" ARABIC SUKUN + // U+064D: "ٍ" ARABIC KASRATAN + // U+064C: "ٌ" ARABIC DAMMATAN + // U+064B: "ً" ARABIC FATHATAN + // U+0651: "ّ" ARABIC SHADDA + // U+0656: "ٖ" ARABIC SUBSCRIPT ALEF + // U+0670: "ٰ" ARABIC LETTER SUPERSCRIPT ALEF + // U+0653: "ٓ" ARABIC MADDAH ABOVE + // U+0650: "ِ" ARABIC KASRA + // U+064F: "ُ" ARABIC DAMMA + // U+064E: "َ" ARABIC FATHA + // U+0640: "ـ" ARABIC TATWEEL + // In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. + // Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. + /* 61 */ "!fixedColumnOrder!7, \u0655|\u0655, \u0654|\u0654, \u0652|\u0652, \u064D|\u064D, \u064C|\u064C, \u064B|\u064B, \u0651|\u0651, \u0656|\u0656, \u0670|\u0670, \u0653|\u0653, \u0650|\u0650, \u064F|\u064F, \u064E|\u064E,\u0640\u0640\u0640|\u0640", + /* 62 */ "\u0651", + // U+0661: "١" ARABIC-INDIC DIGIT ONE + /* 63 */ "\u0661", + // U+0662: "٢" ARABIC-INDIC DIGIT TWO + /* 64 */ "\u0662", + // U+0663: "٣" ARABIC-INDIC DIGIT THREE + /* 65 */ "\u0663", + // U+0664: "٤" ARABIC-INDIC DIGIT FOUR + /* 66 */ "\u0664", + // U+0665: "٥" ARABIC-INDIC DIGIT FIVE + /* 67 */ "\u0665", + // U+0666: "٦" ARABIC-INDIC DIGIT SIX + /* 68 */ "\u0666", + // U+0667: "٧" ARABIC-INDIC DIGIT SEVEN + /* 69 */ "\u0667", + // U+0668: "٨" ARABIC-INDIC DIGIT EIGHT + /* 70 */ "\u0668", + // U+0669: "٩" ARABIC-INDIC DIGIT NINE + /* 71 */ "\u0669", + // U+0660: "٠" ARABIC-INDIC DIGIT ZERO + /* 72 */ "\u0660", + // Label for "switch to symbols" key. + // U+061F: "؟" ARABIC QUESTION MARK + /* 73 */ "\u0663\u0662\u0661\u061F", + // Label for "switch to symbols with microphone" key. This string shouldn't include the "mic" + // part because it'll be appended by the code. + /* 74 */ "\u0663\u0662\u0661", + /* 75 */ "1", + /* 76 */ "2", + /* 77 */ "3", + /* 78 */ "4", + /* 79 */ "5", + /* 80 */ "6", + /* 81 */ "7", + /* 82 */ "8", + /* 83 */ "9", + // U+066B: "٫" ARABIC DECIMAL SEPARATOR + // U+066C: "٬" ARABIC THOUSANDS SEPARATOR + /* 84 */ "0,\u066B,\u066C", + /* 85~ */ + null, null, null, null, null, null, null, null, null, null, + /* ~94 */ + // U+060C: "،" ARABIC COMMA + /* 95 */ "\u060C", + /* 96 */ "\\,", + /* 97 */ "\u061F", + /* 98 */ "\u061B", + // U+066A: "٪" ARABIC PERCENT SIGN + /* 99 */ "\u066A", + /* 100 */ null, + /* 101 */ "?", + /* 102 */ ";", + // U+2030: "‰" PER MILLE SIGN + /* 103 */ "\\%,\u2030", + /* 104~ */ + null, null, null, null, null, + /* ~108 */ + // U+060C: "،" ARABIC COMMA + // U+061B: "؛" ARABIC SEMICOLON + // U+061F: "؟" ARABIC QUESTION MARK + /* 109 */ "\u060C", + /* 110 */ "\u061F", + /* 111 */ "\u061F,\u061B,!,:,-,/,\',\"", + }; + /* Language ky: Kirghiz */ private static final String[] LANGUAGE_ky = { /* 0~ */ @@ -3507,6 +3633,7 @@ public final class KeyboardTextsSet { "ka", LANGUAGE_ka, /* Georgian */ "kk", LANGUAGE_kk, /* Kazakh */ "km", LANGUAGE_km, /* Khmer */ + "ku", LANGUAGE_ku, /* Kurdish */ "ky", LANGUAGE_ky, /* Kirghiz */ "lb", LANGUAGE_lb, /* Luxembourgish */ "lo", LANGUAGE_lo, /* Lao */ diff --git a/tools/make-keyboard-text/res/values-ku/donottranslate-more-keys.xml b/tools/make-keyboard-text/res/values-ku/donottranslate-more-keys.xml new file mode 100644 index 000000000..016491aa3 --- /dev/null +++ b/tools/make-keyboard-text/res/values-ku/donottranslate-more-keys.xml @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2015, The CyanogenMod Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Label for "switch to alphabetic" key. + U+0627: "ا" ARABIC LETTER ALEF + U+200C: ZERO WIDTH NON-JOINER + U+0628: "ب" ARABIC LETTER BEH + U+06BE: "ھ" ARABIC LETTER HEH DOACHASHMEE --> + <string name="label_to_alpha_key">ا‌ب‌ھ</string> + <!-- U+0661: "١" ARABIC-INDIC DIGIT ONE --> + <string name="keylabel_for_symbols_1">١</string> + <!-- U+0662: "٢" ARABIC-INDIC DIGIT TWO --> + <string name="keylabel_for_symbols_2">٢</string> + <!-- U+0663: "٣" ARABIC-INDIC DIGIT THREE --> + <string name="keylabel_for_symbols_3">٣</string> + <!-- U+0664: "٤" ARABIC-INDIC DIGIT FOUR --> + <string name="keylabel_for_symbols_4">٤</string> + <!-- U+0665: "٥" ARABIC-INDIC DIGIT FIVE --> + <string name="keylabel_for_symbols_5">٥</string> + <!-- U+0666: "٦" ARABIC-INDIC DIGIT SIX --> + <string name="keylabel_for_symbols_6">٦</string> + <!-- U+0667: "٧" ARABIC-INDIC DIGIT SEVEN --> + <string name="keylabel_for_symbols_7">٧</string> + <!-- U+0668: "٨" ARABIC-INDIC DIGIT EIGHT --> + <string name="keylabel_for_symbols_8">٨</string> + <!-- U+0669: "٩" ARABIC-INDIC DIGIT NINE --> + <string name="keylabel_for_symbols_9">٩</string> + <!-- U+0660: "٠" ARABIC-INDIC DIGIT ZERO --> + <string name="keylabel_for_symbols_0">٠</string> + <!-- Label for "switch to symbols" key. + U+061F: "؟" ARABIC QUESTION MARK --> + <string name="label_to_symbol_key">٣٢١؟</string> + <!-- Label for "switch to symbols with microphone" key. This string shouldn't include the "mic" + part because it'll be appended by the code. --> + <string name="label_to_symbol_with_microphone_key">٣٢١</string> + <string name="additional_more_keys_for_symbols_1">1</string> + <string name="additional_more_keys_for_symbols_2">2</string> + <string name="additional_more_keys_for_symbols_3">3</string> + <string name="additional_more_keys_for_symbols_4">4</string> + <string name="additional_more_keys_for_symbols_5">5</string> + <string name="additional_more_keys_for_symbols_6">6</string> + <string name="additional_more_keys_for_symbols_7">7</string> + <string name="additional_more_keys_for_symbols_8">8</string> + <string name="additional_more_keys_for_symbols_9">9</string> + <!-- U+066B: "٫" ARABIC DECIMAL SEPARATOR + U+066C: "٬" ARABIC THOUSANDS SEPARATOR --> + <string name="additional_more_keys_for_symbols_0">0,٫,٬</string> + <!-- U+060C: "،" ARABIC COMMA --> + <string name="keylabel_for_comma">،</string> + <string name="more_keys_for_comma">"\\,"</string> + <string name="keylabel_for_symbols_question">؟</string> + <string name="keylabel_for_symbols_semicolon">؛</string> + <!-- U+066A: "٪" ARABIC PERCENT SIGN --> + <string name="keylabel_for_symbols_percent">٪</string> + <string name="more_keys_for_symbols_question">\?</string> + <string name="more_keys_for_symbols_semicolon">;</string> + <!-- U+2030: "‰" PER MILLE SIGN --> + <string name="more_keys_for_symbols_percent">\\%,‰</string> + <!-- U+060C: "،" ARABIC COMMA + U+061B: "؛" ARABIC SEMICOLON + U+061F: "؟" ARABIC QUESTION MARK --> + <string name="keylabel_for_apostrophe">،</string> + <string name="keyhintlabel_for_apostrophe">؟</string> + <!-- U+061F: "؟" ARABIC QUESTION MARK + U+060C: "،" ARABIC COMMA + U+061B: "؛" ARABIC SEMICOLON --> + <string name="more_keys_for_punctuation">"!fixedColumnOrder!8,\",\',#,-,:,!,،,؟,\@,&,\\%,+,؛,/,(|),)|("</string> + <string name="more_keys_for_apostrophe">"؟,؛,!,:,-,/,\',\""</string> + <!-- U+266A: "♪" EIGHTH NOTE --> + <string name="more_keys_for_bullet">♪</string> + <!-- U+2605: "★" BLACK STAR + U+066D: "٭" ARABIC FIVE POINTED STAR --> + <string name="more_keys_for_star">★,٭</string> + <!-- The all letters need to be mirrored are found at + http://www.unicode.org/Public/6.1.0/ucd/BidiMirroring.txt --> + <!-- U+FD3E: "﴾" ORNATE LEFT PARENTHESIS + U+FD3F: "﴿" ORNATE RIGHT PARENTHESIS --> + <string name="more_keys_for_left_parenthesis">!fixedColumnOrder!4,﴾|﴿,<|>,{|},[|]</string> + <string name="more_keys_for_right_parenthesis">!fixedColumnOrder!4,﴿|﴾,>|<,}|{,]|[</string> + <!-- U+2264: "≤" LESS-THAN OR EQUAL TO + U+2265: "≥" GREATER-THAN EQUAL TO + U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK + U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK + U+2039: "‹" SINGLE LEFT-POINTING ANGLE QUOTATION MARK + U+203A: "›" SINGLE RIGHT-POINTING ANGLE QUOTATION MARK --> + <string name="more_keys_for_less_than">!fixedColumnOrder!3,‹|›,≤|≥,«|»</string> + <string name="more_keys_for_greater_than">!fixedColumnOrder!3,›|‹,≥|≤,»|«</string> + <string name="single_angle_quotes">!text/single_laqm_raqm_rtl</string> + <string name="double_angle_quotes">!text/double_laqm_raqm_rtl</string> + <!-- U+0655: "ٕ" ARABIC HAMZA BELOW + U+0654: "ٔ" ARABIC HAMZA ABOVE + U+0652: "ْ" ARABIC SUKUN + U+064D: "ٍ" ARABIC KASRATAN + U+064C: "ٌ" ARABIC DAMMATAN + U+064B: "ً" ARABIC FATHATAN + U+0651: "ّ" ARABIC SHADDA --> + <!-- U+0656: "ٖ" ARABIC SUBSCRIPT ALEF + U+0670: "ٰ" ARABIC LETTER SUPERSCRIPT ALEF + U+0653: "ٓ" ARABIC MADDAH ABOVE + U+0650: "ِ" ARABIC KASRA + U+064F: "ُ" ARABIC DAMMA + U+064E: "َ" ARABIC FATHA + U+0640: "ـ" ARABIC TATWEEL --> + <!-- In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. --> + <!-- Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. --> + <string name="more_keys_for_arabic_diacritics">"!fixedColumnOrder!7, ٕ|ٕ, ٔ|ٔ, ْ|ْ, ٍ|ٍ, ٌ|ٌ, ً|ً, ّ|ّ, ٖ|ٖ, ٰ|ٰ, ٓ|ٓ, ِ|ِ, ُ|ُ, َ|َ,ـــ|ـ"</string> + <string name="keyhintlabel_for_arabic_diacritics">ّ</string> +</resources> |