aboutsummaryrefslogtreecommitdiffstats
path: root/java/res
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-07-08 16:02:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-02 20:35:42 +0000
commitcc8f4491e3f1cc956002397f8e04ed023fb20c5c (patch)
tree6097f6f682c67e027e073cec0d9192fae3a63b02 /java/res
parente81ef9d360319b2de5e31e874f5d5c6b2d195579 (diff)
parent59e795ca3fcb91ea11cc328a1370a7c49a4017be (diff)
downloadlatinime-cc8f4491e3f1cc956002397f8e04ed023fb20c5c.tar.gz
latinime-cc8f4491e3f1cc956002397f8e04ed023fb20c5c.tar.xz
latinime-cc8f4491e3f1cc956002397f8e04ed023fb20c5c.zip
Merge "Add Malayalam keyboard"
Diffstat (limited to 'java/res')
-rw-r--r--java/res/xml-sw600dp/rows_malayalam.xml49
-rw-r--r--java/res/xml/kbd_malayalam.xml26
-rw-r--r--java/res/xml/keyboard_layout_set_malayalam.xml42
-rw-r--r--java/res/xml/method.xml11
-rw-r--r--java/res/xml/rowkeys_malayalam1.xml100
-rw-r--r--java/res/xml/rowkeys_malayalam2.xml77
-rw-r--r--java/res/xml/rowkeys_malayalam3.xml76
-rw-r--r--java/res/xml/rows_malayalam.xml45
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="&#x0D4D;"
+ latin:moreKeys="&#x0D05;,%"
+ latin:keyHintLabel="1"
+ latin:additionalMoreKeys="1" />
+ <!-- U+0D3E: "ാ" MALAYALAM VOWEL SIGN AA
+ U+0D06: "ആ" MALAYALAM LETTER AA -->
+ <Key
+ latin:keySpec="&#x0D3E;"
+ latin:moreKeys="&#x0D06;,%"
+ latin:keyHintLabel="2"
+ latin:additionalMoreKeys="2" />
+ <!-- U+0D3F: "ി" MALAYALAM VOWEL SIGN I
+ U+0D07: "ഇ" MALAYALAM LETTER I -->
+ <Key
+ latin:keySpec="&#x0D3F;"
+ latin:moreKeys="&#x0D07;,%"
+ latin:keyHintLabel="3"
+ latin:additionalMoreKeys="3" />
+ <!-- U+0D40: "ീ" MALAYALAM VOWEL SIGN II
+ U+0D08: "ഈ" MALAYALAM LETTER II -->
+ <Key
+ latin:keySpec="&#x0D40;"
+ latin:moreKeys="&#x0D08;,%"
+ latin:keyHintLabel="4"
+ latin:additionalMoreKeys="4" />
+ <!-- U+0D41: "ു" MALAYALAM VOWEL SIGN U
+ U+0D09: "ഉ" MALAYALAM LETTER U -->
+ <Key
+ latin:keySpec="&#x0D41;"
+ latin:moreKeys="&#x0D09;,%"
+ latin:keyHintLabel="5"
+ latin:additionalMoreKeys="5" />
+ <!-- U+0D42: "ൂ" MALAYALAM VOWEL SIGN UU
+ U+0D0A: "ഊ" MALAYALAM LETTER UU -->
+ <Key
+ latin:keySpec="&#x0D42;"
+ latin:moreKeys="&#x0D0A;,%"
+ latin:keyHintLabel="6"
+ latin:additionalMoreKeys="6" />
+ <!-- U+0D43: "ൃ" MALAYALAM VOWEL SIGN VOCALIC R
+ U+0D0B: "ഋ" MALAYALAM LETTER VOCALIC R -->
+ <Key
+ latin:keySpec="&#x0D43;"
+ latin:moreKeys="&#x0D0B;,%"
+ 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="&#x0D46;"
+ latin:moreKeys="&#x0D0E;,&#x0D10;,&#x0D48;,%"
+ latin:keyHintLabel="8"
+ latin:additionalMoreKeys="8" />
+ <!-- U+0D47: "േ" MALAYALAM VOWEL SIGN EE
+ U+0D0F: "ഏ" MALAYALAM LETTER EE -->
+ <Key
+ latin:keySpec="&#x0D47;"
+ latin:moreKeys="&#x0D0F;,%"
+ latin:keyHintLabel="9"
+ latin:additionalMoreKeys="9" />
+ <!-- U+0D4A: "ൊ" MALAYALAM VOWEL SIGN O
+ U+0D12: "ഒ" MALAYALAM LETTER O -->
+ <Key
+ latin:keySpec="&#x0D4A;"
+ latin:moreKeys="&#x0D12;,%"
+ 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="&#x0D4B;"
+ latin:moreKeys="&#x0D13;,&#x0D14;,&#x0D57;" />
+</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="&#x0D15;"
+ latin:moreKeys="&#x0D16;" />
+ <!-- U+0D17: "ഗ" MALAYALAM LETTER GA
+ U+0D18: "ഘ" MALAYALAM LETTER GHA -->
+ <Key
+ latin:keySpec="&#x0D17;"
+ latin:moreKeys="&#x0D18;" />
+ <!-- U+0D19: "ങ" MALAYALAM LETTER NGA
+ U+0D1E: "ഞ" MALAYALAM LETTER NYA -->
+ <Key
+ latin:keySpec="&#x0D19;"
+ latin:moreKeys="&#x0D1E;" />
+ <!-- U+0D1A: "ച" MALAYALAM LETTER CA
+ U+0D1B: "ഛ" MALAYALAM LETTER CHA -->
+ <Key
+ latin:keySpec="&#x0D1A;"
+ latin:moreKeys="&#x0D1B;" />
+ <!-- U+0D1C: "ജ" MALAYALAM LETTER JA
+ U+0D1D: "ഝ" MALAYALAM LETTER JHA -->
+ <Key
+ latin:keySpec="&#x0D1C;"
+ latin:moreKeys="&#x0D1D;" />
+ <!-- U+0D1F: "ട" MALAYALAM LETTER TTA
+ U+0D20: "ഠ" MALAYALAM LETTER TTHA -->
+ <Key
+ latin:keySpec="&#x0D1F;"
+ latin:moreKeys="&#x0D20;" />
+ <!-- U+0D21: "ഡ" MALAYALAM LETTER DDA
+ U+0D22: "ഢ" MALAYALAM LETTER DDHA -->
+ <Key
+ latin:keySpec="&#x0D21;"
+ latin:moreKeys="&#x0D22;" />
+ <!-- U+0D23: "ണ" MALAYALAM LETTER NNA
+ U+0D7A: "ൺ" MALAYALAM LETTER CHILLU NN -->
+ <Key
+ latin:keySpec="&#x0D23;"
+ latin:moreKeys="&#x0D7A;" />
+ <!-- U+0D24: "ത" MALAYALAM LETTER TA
+ U+0D25: "ഥ" MALAYALAM LETTER THA -->
+ <Key
+ latin:keySpec="&#x0D24;"
+ latin:moreKeys="&#x0D25;" />
+ <!-- U+0D26: "ദ" MALAYALAM LETTER DA
+ U+0D27: "ധ" MALAYALAM LETTER DHA -->
+ <Key
+ latin:keySpec="&#x0D26;"
+ latin:moreKeys="&#x0D27;" />
+ <!-- U+0D28: "ഗന" MALAYALAM LETTER NA
+ U+0D7B: "ൻ" MALAYALAM LETTER CHILLU N -->
+ <Key
+ latin:keySpec="&#x0D28;"
+ latin:moreKeys="&#x0D7B;" />
+</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="&#x0D2A;"
+ latin:moreKeys="&#x0D2B;" />
+ <!-- U+0D2C: "ബ" MALAYALAM LETTER BA
+ U+0D2D: "ഭ" MALAYALAM LETTER BHA -->
+ <Key
+ latin:keySpec="&#x0D2C;"
+ latin:moreKeys="&#x0D2D;" />
+ <!-- U+0D2E: "മ" MALAYALAM LETTER MA
+ U+0D02: "ം" MALAYALAM SIGN ANUSVARA -->
+ <Key
+ latin:keySpec="&#x0D2E;"
+ latin:moreKeys="&#x0D02;" />
+ <!-- U+0D2F: "യ" MALAYALAM LETTER YA
+ U+0D4D/U+0D2F: "്യ" MALAYALAM SIGN VIRAMA/MALAYALAM LETTER YA -->
+ <Key
+ latin:keySpec="&#x0D2F;"
+ latin:moreKeys="&#x0D4D;&#x0D2F;" />
+ <!-- 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="&#x0D30;"
+ latin:moreKeys="&#x0D4D;&#x0D30;,&#x0D7C;,&#x0D31;" />
+ <!-- U+0D32: "ല" MALAYALAM LETTER LA
+ U+0D7D: "ൽ" MALAYALAM LETTER CHILLU L -->
+ <Key
+ latin:keySpec="&#x0D32;"
+ latin:moreKeys="&#x0D7D;" />
+ <!-- U+0D35: "വ" MALAYALAM LETTER VA
+ U+0D4D/U+0D35: "്വ" MALAYALAM SIGN VIRAMA/MALAYALAM LETTER VA -->
+ <Key
+ latin:keySpec="&#x0D35;"
+ latin:moreKeys="&#x0D4D;&#x0D35;" />
+ <!-- U+0D36: "ശ" MALAYALAM LETTER SHA
+ U+0D37: "ഷ" MALAYALAM LETTER SSA
+ U+0D38: "സ" MALAYALAM LETTER SA -->
+ <Key
+ latin:keySpec="&#x0D36;"
+ latin:moreKeys="&#x0D37;,&#x0D38;" />
+ <!-- U+0D39: "ഹ" MALAYALAM LETTER HA
+ U+0D03: "ഃ" MALAYALAM SIGN VISARGA -->
+ <Key
+ latin:keySpec="&#x0D39;"
+ latin:moreKeys="&#x0D03;" />
+ <!-- U+0D33: "ള" MALAYALAM LETTER LLA
+ U+0D7E: "ൾ" MALAYALAM LETTER CHILLU LL
+ U+0D34: "ഴ" MALAYALAM LETTER LLLA -->
+ <Key
+ latin:keySpec="&#x0D33;"
+ latin:moreKeys="&#x0D7E;,&#x0D34;" />
+</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