diff options
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/xml-sw600dp/rows_malayalam.xml | 49 | ||||
-rw-r--r-- | java/res/xml/kbd_malayalam.xml | 26 | ||||
-rw-r--r-- | java/res/xml/keyboard_layout_set_malayalam.xml | 42 | ||||
-rw-r--r-- | java/res/xml/method.xml | 11 | ||||
-rw-r--r-- | java/res/xml/rowkeys_malayalam1.xml | 100 | ||||
-rw-r--r-- | java/res/xml/rowkeys_malayalam2.xml | 77 | ||||
-rw-r--r-- | java/res/xml/rowkeys_malayalam3.xml | 76 | ||||
-rw-r--r-- | java/res/xml/rows_malayalam.xml | 45 |
8 files changed, 426 insertions, 0 deletions
diff --git a/java/res/xml-sw600dp/rows_malayalam.xml b/java/res/xml-sw600dp/rows_malayalam.xml new file mode 100644 index 000000000..1df7e6ea6 --- /dev/null +++ b/java/res/xml-sw600dp/rows_malayalam.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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="8.182%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam1" /> + <Key + latin:keyStyle="deleteKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <Row + latin:keyWidth="8.182%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam2" /> + <Key + latin:keyStyle="enterKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <Row + latin:keyWidth="8.182%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam3" /> + <include latin:keyboardLayout="@xml/keys_exclamation_question" /> + </Row> + <include latin:keyboardLayout="@xml/row_qwerty4" /> +</merge> diff --git a/java/res/xml/kbd_malayalam.xml b/java/res/xml/kbd_malayalam.xml new file mode 100644 index 000000000..000b23f82 --- /dev/null +++ b/java/res/xml/kbd_malayalam.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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_malayalam" /> +</Keyboard> diff --git a/java/res/xml/keyboard_layout_set_malayalam.xml b/java/res/xml/keyboard_layout_set_malayalam.xml new file mode 100644 index 000000000..14c76baf0 --- /dev/null +++ b/java/res/xml/keyboard_layout_set_malayalam.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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_malayalam" + 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/method.xml b/java/res/xml/method.xml index 7a6640bcc..6d4d3f26b 100644 --- a/java/res/xml/method.xml +++ b/java/res/xml/method.xml @@ -68,6 +68,7 @@ lt: Lithuanian/qwerty lv: Latvian/qwerty mk: Macedonian/south_slavic + (ml_IN: Malayalam (India)/malayalam) # This is a preliminary keyboard layout. mn_MN: Mongolian (Mongolia)/mongolian (mr_IN: Marathi (India)/marathi) # This is a preliminary keyboard layout. ms_MY: Malay (Malaysia)/qwerty @@ -483,6 +484,16 @@ android:imeSubtypeExtraValue="KeyboardLayoutSet=south_slavic,EmojiCapable" android:isAsciiCapable="false" /> + <!-- TODO: This malayalam keyboard is a preliminary layout. + This isn't based on the final specification. --> + <subtype android:icon="@drawable/ic_ime_switcher_dark" + android:label="@string/subtype_generic" + android:subtypeId="0xc182ebd4" + android:imeSubtypeLocale="ml_IN" + android:imeSubtypeMode="keyboard" + android:imeSubtypeExtraValue="KeyboardLayoutSet=malayalam,EmojiCapable" + android:isAsciiCapable="false" + /> <subtype android:icon="@drawable/ic_ime_switcher_dark" android:label="@string/subtype_generic" android:subtypeId="0xcdcfc3ab" diff --git a/java/res/xml/rowkeys_malayalam1.xml b/java/res/xml/rowkeys_malayalam1.xml new file mode 100644 index 000000000..79d96cbb7 --- /dev/null +++ b/java/res/xml/rowkeys_malayalam1.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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+0D4D: "്" MALAYALAM SIGN VIRAMA + U+0D05: "അ" MALAYALAM LETTER A --> + <Key + latin:keySpec="്" + latin:moreKeys="അ,%" + latin:keyHintLabel="1" + latin:additionalMoreKeys="1" /> + <!-- U+0D3E: "ാ" MALAYALAM VOWEL SIGN AA + U+0D06: "ആ" MALAYALAM LETTER AA --> + <Key + latin:keySpec="ാ" + latin:moreKeys="ആ,%" + latin:keyHintLabel="2" + latin:additionalMoreKeys="2" /> + <!-- U+0D3F: "ി" MALAYALAM VOWEL SIGN I + U+0D07: "ഇ" MALAYALAM LETTER I --> + <Key + latin:keySpec="ി" + latin:moreKeys="ഇ,%" + latin:keyHintLabel="3" + latin:additionalMoreKeys="3" /> + <!-- U+0D40: "ീ" MALAYALAM VOWEL SIGN II + U+0D08: "ഈ" MALAYALAM LETTER II --> + <Key + latin:keySpec="ീ" + latin:moreKeys="ഈ,%" + latin:keyHintLabel="4" + latin:additionalMoreKeys="4" /> + <!-- U+0D41: "ു" MALAYALAM VOWEL SIGN U + U+0D09: "ഉ" MALAYALAM LETTER U --> + <Key + latin:keySpec="ു" + latin:moreKeys="ഉ,%" + latin:keyHintLabel="5" + latin:additionalMoreKeys="5" /> + <!-- U+0D42: "ൂ" MALAYALAM VOWEL SIGN UU + U+0D0A: "ഊ" MALAYALAM LETTER UU --> + <Key + latin:keySpec="ൂ" + latin:moreKeys="ഊ,%" + latin:keyHintLabel="6" + latin:additionalMoreKeys="6" /> + <!-- U+0D43: "ൃ" MALAYALAM VOWEL SIGN VOCALIC R + U+0D0B: "ഋ" MALAYALAM LETTER VOCALIC R --> + <Key + latin:keySpec="ൃ" + latin:moreKeys="ഋ,%" + latin:keyHintLabel="7" + latin:additionalMoreKeys="7" /> + <!-- U+0D46: "െ" MALAYALAM VOWEL SIGN E + U+0D0E: "എ" MALAYALAM LETTER E + U+0D10: "ഐ" MALAYALAM LETTER AI + U+0D48: "ൈ" MALAYALAM VOWEL SIGN AI --> + <Key + latin:keySpec="െ" + latin:moreKeys="എ,ഐ,ൈ,%" + latin:keyHintLabel="8" + latin:additionalMoreKeys="8" /> + <!-- U+0D47: "േ" MALAYALAM VOWEL SIGN EE + U+0D0F: "ഏ" MALAYALAM LETTER EE --> + <Key + latin:keySpec="േ" + latin:moreKeys="ഏ,%" + latin:keyHintLabel="9" + latin:additionalMoreKeys="9" /> + <!-- U+0D4A: "ൊ" MALAYALAM VOWEL SIGN O + U+0D12: "ഒ" MALAYALAM LETTER O --> + <Key + latin:keySpec="ൊ" + latin:moreKeys="ഒ,%" + latin:keyHintLabel="0" + latin:additionalMoreKeys="0" /> + <!-- U+0D4B: "ോ" MALAYALAM VOWEL SIGN OO + U+0D13: "ഓ" MALAYALAM LETTER OO + U+0D14: "ഔ" MALAYALAM LETTER AU + U+0D57: "ൗ" MALAYALAM AU LENGTH MARK --> + <Key latin:keySpec="ോ" + latin:moreKeys="ഓ,ഔ,ൗ" /> +</merge> diff --git a/java/res/xml/rowkeys_malayalam2.xml b/java/res/xml/rowkeys_malayalam2.xml new file mode 100644 index 000000000..f0f9df025 --- /dev/null +++ b/java/res/xml/rowkeys_malayalam2.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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+0D15: "ക" MALAYALAM LETTER KA + U+0D16: "ഖ" MALAYALAM LETTER KHA --> + <Key + latin:keySpec="ക" + latin:moreKeys="ഖ" /> + <!-- U+0D17: "ഗ" MALAYALAM LETTER GA + U+0D18: "ഘ" MALAYALAM LETTER GHA --> + <Key + latin:keySpec="ഗ" + latin:moreKeys="ഘ" /> + <!-- U+0D19: "ങ" MALAYALAM LETTER NGA + U+0D1E: "ഞ" MALAYALAM LETTER NYA --> + <Key + latin:keySpec="ങ" + latin:moreKeys="ഞ" /> + <!-- U+0D1A: "ച" MALAYALAM LETTER CA + U+0D1B: "ഛ" MALAYALAM LETTER CHA --> + <Key + latin:keySpec="ച" + latin:moreKeys="ഛ" /> + <!-- U+0D1C: "ജ" MALAYALAM LETTER JA + U+0D1D: "ഝ" MALAYALAM LETTER JHA --> + <Key + latin:keySpec="ജ" + latin:moreKeys="ഝ" /> + <!-- U+0D1F: "ട" MALAYALAM LETTER TTA + U+0D20: "ഠ" MALAYALAM LETTER TTHA --> + <Key + latin:keySpec="ട" + latin:moreKeys="ഠ" /> + <!-- U+0D21: "ഡ" MALAYALAM LETTER DDA + U+0D22: "ഢ" MALAYALAM LETTER DDHA --> + <Key + latin:keySpec="ഡ" + latin:moreKeys="ഢ" /> + <!-- U+0D23: "ണ" MALAYALAM LETTER NNA + U+0D7A: "ൺ" MALAYALAM LETTER CHILLU NN --> + <Key + latin:keySpec="ണ" + latin:moreKeys="ൺ" /> + <!-- U+0D24: "ത" MALAYALAM LETTER TA + U+0D25: "ഥ" MALAYALAM LETTER THA --> + <Key + latin:keySpec="ത" + latin:moreKeys="ഥ" /> + <!-- U+0D26: "ദ" MALAYALAM LETTER DA + U+0D27: "ധ" MALAYALAM LETTER DHA --> + <Key + latin:keySpec="ദ" + latin:moreKeys="ധ" /> + <!-- U+0D28: "ഗന" MALAYALAM LETTER NA + U+0D7B: "ൻ" MALAYALAM LETTER CHILLU N --> + <Key + latin:keySpec="ന" + latin:moreKeys="ൻ" /> +</merge> diff --git a/java/res/xml/rowkeys_malayalam3.xml b/java/res/xml/rowkeys_malayalam3.xml new file mode 100644 index 000000000..6959ccda1 --- /dev/null +++ b/java/res/xml/rowkeys_malayalam3.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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+0D2A: "പ" MALAYALAM LETTER PA + U+0D2B: "ഫ" MALAYALAM LETTER PHA --> + <Key + latin:keySpec="പ" + latin:moreKeys="ഫ" /> + <!-- U+0D2C: "ബ" MALAYALAM LETTER BA + U+0D2D: "ഭ" MALAYALAM LETTER BHA --> + <Key + latin:keySpec="ബ" + latin:moreKeys="ഭ" /> + <!-- U+0D2E: "മ" MALAYALAM LETTER MA + U+0D02: "ം" MALAYALAM SIGN ANUSVARA --> + <Key + latin:keySpec="മ" + latin:moreKeys="ം" /> + <!-- U+0D2F: "യ" MALAYALAM LETTER YA + U+0D4D/U+0D2F: "്യ" MALAYALAM SIGN VIRAMA/MALAYALAM LETTER YA --> + <Key + latin:keySpec="യ" + latin:moreKeys="്യ" /> + <!-- U+0D30: "ര" MALAYALAM LETTER RA + U+0D4D/U+0D30: "്ര" MALAYALAM SIGN VIRAMA/MALAYALAM LETTER RA + U+0D7C: "ർ" MALAYALAM LETTER CHILLU RR + U+0D31: "റ" MALAYALAM LETTER RRA --> + <Key + latin:keySpec="ര" + latin:moreKeys="്ര,ർ,റ" /> + <!-- U+0D32: "ല" MALAYALAM LETTER LA + U+0D7D: "ൽ" MALAYALAM LETTER CHILLU L --> + <Key + latin:keySpec="ല" + latin:moreKeys="ൽ" /> + <!-- U+0D35: "വ" MALAYALAM LETTER VA + U+0D4D/U+0D35: "്വ" MALAYALAM SIGN VIRAMA/MALAYALAM LETTER VA --> + <Key + latin:keySpec="വ" + latin:moreKeys="്വ" /> + <!-- U+0D36: "ശ" MALAYALAM LETTER SHA + U+0D37: "ഷ" MALAYALAM LETTER SSA + U+0D38: "സ" MALAYALAM LETTER SA --> + <Key + latin:keySpec="ശ" + latin:moreKeys="ഷ,സ" /> + <!-- U+0D39: "ഹ" MALAYALAM LETTER HA + U+0D03: "ഃ" MALAYALAM SIGN VISARGA --> + <Key + latin:keySpec="ഹ" + latin:moreKeys="ഃ" /> + <!-- U+0D33: "ള" MALAYALAM LETTER LLA + U+0D7E: "ൾ" MALAYALAM LETTER CHILLU LL + U+0D34: "ഴ" MALAYALAM LETTER LLLA --> + <Key + latin:keySpec="ള" + latin:moreKeys="ൾ,ഴ" /> +</merge> diff --git a/java/res/xml/rows_malayalam.xml b/java/res/xml/rows_malayalam.xml new file mode 100644 index 000000000..5e7a4916c --- /dev/null +++ b/java/res/xml/rows_malayalam.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2014, The Android Open Source 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.091%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam1" /> + </Row> + <Row + latin:keyWidth="9.091%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam2" /> + </Row> + <Row + latin:keyWidth="9.091%p" + latin:keyLabelFlags="fontNormal|autoXScale" + > + <include latin:keyboardLayout="@xml/rowkeys_malayalam3" /> + <Key + latin:keyStyle="deleteKeyStyle" + latin:keyWidth="fillRight" /> + </Row> + <include latin:keyboardLayout="@xml/row_qwerty4" /> +</merge>
\ No newline at end of file |