Merge "Add Marathi keyboard layout"
This commit is contained in:
commit
71c96c079f
41 changed files with 1302 additions and 232 deletions
54
java/res/xml-sw600dp/rows_marathi.xml
Normal file
54
java/res/xml-sw600dp/rows_marathi.xml
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?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"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi1" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.182%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi2" />
|
||||
<Key
|
||||
latin:keyStyle="enterKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.182%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi3" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question" />
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
|
@ -36,6 +36,15 @@
|
|||
latin:styleName="moreKeysDevanagariSignAnusvara"
|
||||
latin:moreKeys="ः,ँ,़" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0903: "ः" DEVANAGARI SIGN VISARGA
|
||||
U+0901: "ँ" DEVANAGARI SIGN CANDRABINDU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignAnusvara"
|
||||
latin:moreKeys="ः,ँ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignAnusvara" />
|
||||
|
|
|
@ -34,6 +34,14 @@
|
|||
latin:styleName="moreKeysDevanagariSignVirama"
|
||||
latin:moreKeys="्" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0905: "अ" DEVANAGARI LETTER A -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignVirama"
|
||||
latin:moreKeys="अ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignVirama" />
|
||||
|
|
|
@ -43,6 +43,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAa"
|
||||
latin:moreKeys="ा,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0906: "आ" DEVANAGARI LETTER AA -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAa"
|
||||
latin:moreKeys="आ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAa" />
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAi"
|
||||
latin:moreKeys="ै,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0910: "ऐ" DEVANAGARI LETTER AI -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAi"
|
||||
latin:moreKeys="ऐ,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAu"
|
||||
latin:moreKeys="ौ,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0914: "औ" DEVANAGARI LETTER AU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAu"
|
||||
latin:moreKeys="औ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAu" />
|
||||
|
|
|
@ -34,9 +34,23 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:moreKeys="ॅ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090D: "ऍ" DEVANAGARI LETTER CANDRA E -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:moreKeys="ऍ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraE" />
|
||||
</default>
|
||||
</switch>
|
||||
<!-- U+0945: "ॅ" DEVANAGARI VOWEL SIGN CANDRA E -->
|
||||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignCandraE"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:keySpec="ॅ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</merge>
|
||||
|
|
|
@ -34,6 +34,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignCandraO"
|
||||
latin:moreKeys="ॉ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0911: "ऑ" DEVANAGARI LETTER CANDRA O -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraO"
|
||||
latin:moreKeys="ऑ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraO" />
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignE"
|
||||
latin:moreKeys="े" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090F: "ए" DEVANAGARI LETTER SHORT E -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignE"
|
||||
latin:moreKeys="ए" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignI"
|
||||
latin:moreKeys="ि" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0907: "इ" DEVANAGARI LETTER I -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignI"
|
||||
latin:moreKeys="इ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignI" />
|
||||
|
|
|
@ -42,6 +42,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignIi"
|
||||
latin:moreKeys="ी,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0908: "ई" DEVANAGARI LETTER II -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignIi"
|
||||
latin:moreKeys="ई,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignIi" />
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignO"
|
||||
latin:moreKeys="ो" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0913: "ओ" DEVANAGARI LETTER O -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignO"
|
||||
latin:moreKeys="ओ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignO" />
|
||||
|
|
|
@ -43,6 +43,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignU"
|
||||
latin:moreKeys="ु" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0909: "उ" DEVANAGARI LETTER U -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignU"
|
||||
latin:moreKeys="उ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignU" />
|
||||
|
|
|
@ -43,6 +43,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignUu"
|
||||
latin:moreKeys="ू,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090A: "ऊ" DEVANAGARI LETTER UU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignUu"
|
||||
latin:moreKeys="ऊ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignUu" />
|
||||
|
|
|
@ -43,6 +43,16 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:moreKeys="ऋ,ृ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0931: "ऱ" DEVANAGARI LETTER RRA
|
||||
U+090B: "ऋ" DEVANAGARI LETTER VOCALIC R
|
||||
U+0943: "ृ" DEVANAGARI VOWEL SIGN VOCALIC R -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:moreKeys="ऱ,ऋ,ृ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
|
26
java/res/xml/kbd_marathi.xml
Normal file
26
java/res/xml/kbd_marathi.xml
Normal file
|
@ -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_marathi" />
|
||||
</Keyboard>
|
42
java/res/xml/keyboard_layout_set_marathi.xml
Normal file
42
java/res/xml/keyboard_layout_set_marathi.xml
Normal file
|
@ -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_marathi"
|
||||
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>
|
|
@ -37,6 +37,16 @@
|
|||
latin:styleName="moreKeysDevanagariSignAnusvara"
|
||||
latin:moreKeys="◌ः|ः,◌ँ|ँ,◌़|़" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0903: "ः" DEVANAGARI SIGN VISARGA
|
||||
U+0901: "ँ" DEVANAGARI SIGN CANDRABINDU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignAnusvara"
|
||||
latin:moreKeys="◌ः|ः,◌ँ|ँ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignAnusvara" />
|
||||
|
|
|
@ -35,6 +35,14 @@
|
|||
latin:styleName="moreKeysDevanagariSignVirama"
|
||||
latin:moreKeys="◌्|्" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0905: "अ" DEVANAGARI LETTER A -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignVirama"
|
||||
latin:moreKeys="अ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariSignVirama" />
|
||||
|
|
|
@ -45,6 +45,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAa"
|
||||
latin:moreKeys="◌ा|ा,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0906: "आ" DEVANAGARI LETTER AA -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAa"
|
||||
latin:moreKeys="आ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAa" />
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAi"
|
||||
latin:moreKeys="◌ै|ै,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0910: "ऐ" DEVANAGARI LETTER AI -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAi"
|
||||
latin:moreKeys="ऐ,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignAu"
|
||||
latin:moreKeys="◌ौ|ौ,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0914: "औ" DEVANAGARI LETTER AU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAu"
|
||||
latin:moreKeys="औ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignAu" />
|
||||
|
|
|
@ -35,9 +35,24 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:moreKeys="◌ॅ|ॅ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090D: "ऍ" DEVANAGARI LETTER CANDRA E -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:moreKeys="ऍ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraE" />
|
||||
</default>
|
||||
</switch>
|
||||
<!-- U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0945: "ॅ" DEVANAGARI VOWEL SIGN CANDRA E -->
|
||||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignCandraE"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignCandraE"
|
||||
latin:keySpec="◌ॅ|ॅ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
||||
|
|
|
@ -35,6 +35,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignCandraO"
|
||||
latin:moreKeys="◌ॉ|ॉ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0911: "ऑ" DEVANAGARI LETTER CANDRA O -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraO"
|
||||
latin:moreKeys="ऑ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignCandraO" />
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignE"
|
||||
latin:moreKeys="◌े|े" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090F: "ए" DEVANAGARI LETTER SHORT E -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignE"
|
||||
latin:moreKeys="ए" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
@ -59,6 +67,8 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignE" />
|
||||
</default>
|
||||
</switch>
|
||||
<!-- U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0947: "े" DEVANAGARI VOWEL SIGN E -->
|
||||
<key-style
|
||||
latin:styleName="baseKeyDevanagariVowelSignE"
|
||||
latin:parentStyle="moreKeysDevanagariVowelSignE"
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignI"
|
||||
latin:moreKeys="◌ि|ि" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0907: "इ" DEVANAGARI LETTER I -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignI"
|
||||
latin:moreKeys="इ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignI" />
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignIi"
|
||||
latin:moreKeys="◌ी|ी,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0908: "ई" DEVANAGARI LETTER II -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignIi"
|
||||
latin:moreKeys="ई,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignIi" />
|
||||
|
|
|
@ -46,6 +46,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignO"
|
||||
latin:moreKeys="◌ो|ो" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0913: "ओ" DEVANAGARI LETTER O -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignO"
|
||||
latin:moreKeys="ओ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignO" />
|
||||
|
|
|
@ -45,6 +45,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignU"
|
||||
latin:moreKeys="◌ु|ु" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0909: "उ" DEVANAGARI LETTER U -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignU"
|
||||
latin:moreKeys="उ" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignU" />
|
||||
|
|
|
@ -45,6 +45,14 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignUu"
|
||||
latin:moreKeys="◌ू|ू,%" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+090A: "ऊ" DEVANAGARI LETTER UU -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignUu"
|
||||
latin:moreKeys="ऊ,%" />
|
||||
</case>
|
||||
<default>
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignUu" />
|
||||
|
|
|
@ -45,6 +45,17 @@
|
|||
latin:styleName="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:moreKeys="ऋ,◌ृ|ृ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="marathi"
|
||||
>
|
||||
<!-- U+0931: "ऱ" DEVANAGARI LETTER RRA
|
||||
U+090B: "ऋ" DEVANAGARI LETTER VOCALIC R
|
||||
U+25CC: "◌" DOTTED CIRCLE
|
||||
U+0943: "ृ" DEVANAGARI VOWEL SIGN VOCALIC R -->
|
||||
<key-style
|
||||
latin:styleName="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:moreKeys="ऱ,ऋ,◌ृ|ृ" />
|
||||
</case>
|
||||
<case
|
||||
latin:keyboardLayoutSet="nepali_traditional"
|
||||
>
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
lv: Latvian/qwerty
|
||||
mk: Macedonian/south_slavic
|
||||
mn_MN: Mongolian (Mongolia)/mongolian
|
||||
(mr_IN: Marathi (India)/marathi) # This is a preliminary keyboard layout.
|
||||
ms_MY: Malay (Malaysia)/qwerty
|
||||
(my_MM: Myanmar (Myanmar)/myanmar) # This is a preliminary keyboard layout.
|
||||
nb: Norwegian Bokmål/nordic
|
||||
|
@ -477,6 +478,16 @@
|
|||
android:imeSubtypeExtraValue="KeyboardLayoutSet=mongolian,EmojiCapable"
|
||||
android:isAsciiCapable="false"
|
||||
/>
|
||||
<!-- TODO: This marathi 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="0x747b9f03"
|
||||
android:imeSubtypeLocale="mr_IN"
|
||||
android:imeSubtypeMode="keyboard"
|
||||
android:imeSubtypeExtraValue="KeyboardLayoutSet=marathi,EmojiCapable"
|
||||
android:isAsciiCapable="false"
|
||||
/>
|
||||
<subtype android:icon="@drawable/ic_ime_switcher_dark"
|
||||
android:label="@string/subtype_generic"
|
||||
android:subtypeId="0x84c87c61"
|
||||
|
|
123
java/res/xml/rowkeys_marathi1.xml
Normal file
123
java/res/xml/rowkeys_marathi1.xml
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?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"
|
||||
>
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_au" />
|
||||
<!-- U+0967: "१" DEVANAGARI DIGIT ONE -->
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignAu"
|
||||
latin:keyHintLabel="1"
|
||||
latin:additionalMoreKeys="१,1" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_ai" />
|
||||
<!-- U+0968: "२" DEVANAGARI DIGIT TWO -->
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignAi"
|
||||
latin:keyHintLabel="2"
|
||||
latin:additionalMoreKeys="२,2" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_aa" />
|
||||
<!-- U+0969: "३" DEVANAGARI DIGIT THREE -->
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignAa"
|
||||
latin:keyHintLabel="3"
|
||||
latin:additionalMoreKeys="३,3" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_ii" />
|
||||
<!-- U+096A: "४" DEVANAGARI DIGIT FOUR -->
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignIi"
|
||||
latin:keyHintLabel="4"
|
||||
latin:additionalMoreKeys="४,4" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_uu" />
|
||||
<!-- U+096B: "५" DEVANAGARI DIGIT FIVE -->
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignUu"
|
||||
latin:keyHintLabel="5"
|
||||
latin:additionalMoreKeys="५,5" />
|
||||
<!-- U+092C: "ब" DEVANAGARI LETTER BA
|
||||
U+092D: "भ" DEVANAGARI LETTER BHA
|
||||
U+096C: "६" DEVANAGARI DIGIT SIX -->
|
||||
<Key
|
||||
latin:keySpec="ब"
|
||||
latin:moreKeys="भ,%"
|
||||
latin:keyHintLabel="6"
|
||||
latin:additionalMoreKeys="६,6"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0939: "ह" DEVANAGARI LETTER HA
|
||||
U+096D: "७" DEVANAGARI DIGIT SEVEN -->
|
||||
<Key
|
||||
latin:keySpec="ह"
|
||||
latin:keyHintLabel="7"
|
||||
latin:additionalMoreKeys="७,7"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0917: "ग" DEVANAGARI LETTER GA
|
||||
U+0918: "घ" DEVANAGARI LETTER GHA
|
||||
U+096E: "८" DEVANAGARI DIGIT EIGHT -->
|
||||
<Key
|
||||
latin:keySpec="ग"
|
||||
latin:moreKeys="घ,%"
|
||||
latin:keyHintLabel="8"
|
||||
latin:additionalMoreKeys="८,8"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0926: "द" DEVANAGARI LETTER DA
|
||||
U+0927: "ध" DEVANAGARI LETTER DHA
|
||||
U+096F: "९" DEVANAGARI DIGIT NINE -->
|
||||
<Key
|
||||
latin:keySpec="द"
|
||||
latin:moreKeys="ध,%"
|
||||
latin:keyHintLabel="9"
|
||||
latin:additionalMoreKeys="९,9"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+091C: "ज" DEVANAGARI LETTER JA
|
||||
U+091D: "झ" DEVANAGARI LETTER JHA
|
||||
U+091C/U+094D/U+091E: "ज्ञ" DEVANAGARI LETTER JA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER JHA -->
|
||||
<Key
|
||||
latin:keySpec="ज"
|
||||
latin:moreKeys="झ,ज्ञ,%"
|
||||
latin:keyHintLabel="0"
|
||||
latin:additionalMoreKeys="०,0"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0921: "ड" DEVANAGARI LETTER DDA
|
||||
U+0922: "ढ" DEVANAGARI LETTER DDHA -->
|
||||
<Key
|
||||
latin:keySpec="ड"
|
||||
latin:moreKeys="ढ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</merge>
|
100
java/res/xml/rowkeys_marathi2.xml
Normal file
100
java/res/xml/rowkeys_marathi2.xml
Normal file
|
@ -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"
|
||||
>
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_o" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignO" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_e" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignE" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_sign_virama" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariSignVirama" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_i" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignI" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_u" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignU" />
|
||||
<!-- U+092A: "प" DEVANAGARI LETTER PA
|
||||
U+092B: "फ" DEVANAGARI LETTER PHA -->
|
||||
<Key
|
||||
latin:keySpec="प"
|
||||
latin:moreKeys="फ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_vocalic_r" />
|
||||
<!-- U+0930: "र" DEVANAGARI LETTER RA -->
|
||||
<Key
|
||||
latin:keySpec="र"
|
||||
latin:keyStyle="moreKeysDevanagariVowelSignVocalicR"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0915: "क" DEVANAGARI LETTER KA
|
||||
U+0916: "ख" DEVANAGARI LETTER KHA -->
|
||||
<Key
|
||||
latin:keySpec="क"
|
||||
latin:moreKeys="ख"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0924: "त" DEVANAGARI LETTER TA
|
||||
U+0925: "थ" DEVANAGARI LETTER THA
|
||||
U+0924/U+094D/U+0930: "त्र" DEVANAGARI LETTER TA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER RA -->
|
||||
<Key
|
||||
latin:keySpec="त"
|
||||
latin:moreKeys="थ,त्र"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+091A: "च" DEVANAGARI LETTER CA
|
||||
U+091B: "छ" DEVANAGARI LETTER CHA -->
|
||||
<Key
|
||||
latin:keySpec="च"
|
||||
latin:moreKeys="छ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+091F: "ट" DEVANAGARI LETTER TTA
|
||||
U+0920: "ठ" DEVANAGARI LETTER TTHA -->
|
||||
<Key
|
||||
latin:keySpec="ट"
|
||||
latin:moreKeys="ठ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</merge>
|
83
java/res/xml/rowkeys_marathi3.xml
Normal file
83
java/res/xml/rowkeys_marathi3.xml
Normal file
|
@ -0,0 +1,83 @@
|
|||
<?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"
|
||||
>
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_candra_o" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignCandraO" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_candra_e" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariVowelSignCandraE" />
|
||||
<!-- Because the font rendering system prior to API version 16 can't automatically
|
||||
render dotted circle for incomplete combining letter of some scripts, different
|
||||
set of Key definitions are needed based on the API version. -->
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keystyle_devanagari_sign_anusvara" />
|
||||
<Key
|
||||
latin:keyStyle="baseKeyDevanagariSignAnusvara" />
|
||||
<!-- U+092E: "म" DEVANAGARI LETTER MA -->
|
||||
<Key
|
||||
latin:keySpec="म"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0928: "न" DEVANAGARI LETTER NA
|
||||
U+0923: "ण" DEVANAGARI LETTER NNA
|
||||
U+091E: "ञ" DEVANAGARI LETTER NYA
|
||||
U+0919: "ङ" DEVANAGARI LETTER NGA -->
|
||||
<Key
|
||||
latin:keySpec="न"
|
||||
latin:moreKeys="ण,ञ,ङ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0935: "व" DEVANAGARI LETTER VA -->
|
||||
<Key
|
||||
latin:keySpec="व"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0932: "ल" DEVANAGARI LETTER LA
|
||||
U+0933: "ळ" DEVANAGARI LETTER LLA -->
|
||||
<Key
|
||||
latin:keySpec="ल"
|
||||
latin:moreKeys="ळ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0938: "स" DEVANAGARI LETTER SA
|
||||
U+0936: "श" DEVANAGARI LETTER SHA
|
||||
U+0937: "ष" DEVANAGARI LETTER SSA
|
||||
U+0936/U+094D/U+0930: "श्र" DEVANAGARI LETTER SHA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER RA -->
|
||||
<Key
|
||||
latin:keySpec="स"
|
||||
latin:moreKeys="श,ष,श्र"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+092F: "य" DEVANAGARI LETTER YA -->
|
||||
<Key
|
||||
latin:keySpec="य"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+0915/U+094D/U+0937: "क्ष" DEVANAGARI LETTER KA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER SSA -->
|
||||
<Key
|
||||
latin:keySpec="क्ष"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
</merge>
|
49
java/res/xml/rows_marathi.xml
Normal file
49
java/res/xml/rows_marathi.xml
Normal file
|
@ -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="9.091%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi1" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="9.091%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi2" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="9.091%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_marathi3" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
File diff suppressed because it is too large
Load diff
|
@ -25,7 +25,7 @@ import java.util.ArrayList;
|
|||
|
||||
@SmallTest
|
||||
public class KeyboardLayoutSetSubtypesCountTests extends KeyboardLayoutSetTestsBase {
|
||||
private static final int NUMBER_OF_SUBTYPES = 70;
|
||||
private static final int NUMBER_OF_SUBTYPES = 71;
|
||||
private static final int NUMBER_OF_ASCII_CAPABLE_SUBTYPES = 45;
|
||||
private static final int NUMBER_OF_PREDEFINED_ADDITIONAL_SUBTYPES = 2;
|
||||
|
||||
|
|
179
tests/src/com/android/inputmethod/keyboard/layout/Marathi.java
Normal file
179
tests/src/com/android/inputmethod/keyboard/layout/Marathi.java
Normal file
|
@ -0,0 +1,179 @@
|
|||
/*
|
||||
* Copyright (C) 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.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.keyboard.layout;
|
||||
|
||||
import static com.android.inputmethod.keyboard.layout.DevanagariLetterConstants.*;
|
||||
|
||||
import com.android.inputmethod.keyboard.layout.Hindi.HindiCustomizer;
|
||||
import com.android.inputmethod.keyboard.layout.Hindi.HindiSymbols;
|
||||
import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
|
||||
import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* The Marathi keyboard.
|
||||
*/
|
||||
public final class Marathi extends LayoutBase {
|
||||
private static final String LAYOUT_NAME = "marathi";
|
||||
|
||||
public Marathi(final LayoutCustomizer customizer) {
|
||||
super(customizer, HindiSymbols.class, SymbolsShifted.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() { return LAYOUT_NAME; }
|
||||
|
||||
public static class MarathiCustomizer extends HindiCustomizer {
|
||||
public MarathiCustomizer(final Locale locale) { super(locale); }
|
||||
|
||||
@Override
|
||||
public ExpectedKey[] getLeftShiftKeys(final boolean isPhone) {
|
||||
return EMPTY_KEYS;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
ExpectedKey[][] getCommonAlphabetLayout(boolean isPhone) { return ALPHABET_COMMON; }
|
||||
|
||||
@Override
|
||||
ExpectedKey[][] getCommonAlphabetShiftLayout(final boolean isPhone, final int elementId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder()
|
||||
.setKeysOfRow(1,
|
||||
// U+094C: "ौ" DEVANAGARI VOWEL SIGN AU
|
||||
// U+0914: "औ" DEVANAGARI LETTER AU
|
||||
// U+0967: "१" DEVANAGARI DIGIT ONE
|
||||
key(VOWEL_SIGN_AU, "\u094C", joinMoreKeys("\u0914", "\u0967", "1")),
|
||||
// U+0948: "ै" DEVANAGARI VOWEL SIGN AI
|
||||
// U+0910: "ऐ" DEVANAGARI LETTER AI
|
||||
// U+0968: "२" DEVANAGARI DIGIT TWO
|
||||
key(VOWEL_SIGN_AI, "\u0948", joinMoreKeys("\u0910", "\u0968", "2")),
|
||||
// U+093E: "ा" DEVANAGARI VOWEL SIGN AA
|
||||
// U+0906: "आ" DEVANAGARI LETTER AA
|
||||
// U+0969: "३" DEVANAGARI DIGIT THREE
|
||||
key(VOWEL_SIGN_AA, "\u093E", joinMoreKeys("\u0906", "\u0969", "3")),
|
||||
// U+0940: "ी" DEVANAGARI VOWEL SIGN II
|
||||
// U+0908: "ई" DEVANAGARI LETTER II
|
||||
// U+096A: "४" DEVANAGARI DIGIT FOUR
|
||||
key(VOWEL_SIGN_II, "\u0940", joinMoreKeys("\u0908", "\u096A", "4")),
|
||||
// U+0942: "ू" DEVANAGARI VOWEL SIGN UU
|
||||
// U+090A: "ऊ" DEVANAGARI LETTER UU
|
||||
// U+096B: "५" DEVANAGARI DIGIT FIVE
|
||||
key(VOWEL_SIGN_UU, "\u0942", joinMoreKeys("\u090A", "\u096B", "5")),
|
||||
// U+092C: "ब" DEVANAGARI LETTER BA
|
||||
// U+092D: "भ" DEVANAGARI LETTER BHA
|
||||
// U+096C: "६" DEVANAGARI DIGIT SIX
|
||||
key("\u092C", joinMoreKeys("\u092D", "\u096C", "6")),
|
||||
// U+0939: "ह" DEVANAGARI LETTER HA
|
||||
// U+096D: "७" DEVANAGARI DIGIT SEVEN
|
||||
key("\u0939", joinMoreKeys("\u096D", "7")),
|
||||
// U+0917: "ग" DEVANAGARI LETTER GA
|
||||
// U+0918: "घ" DEVANAGARI LETTER GHA
|
||||
// U+096E: "८" DEVANAGARI DIGIT EIGHT
|
||||
key("\u0917", joinMoreKeys("\u0918", "\u096E", "8")),
|
||||
// U+0926: "द" DEVANAGARI LETTER DA
|
||||
// U+0927: "ध" DEVANAGARI LETTER DHA
|
||||
// U+096F: "९" DEVANAGARI DIGIT NINE
|
||||
key("\u0926", joinMoreKeys("\u0927", "\u096F", "9")),
|
||||
// U+091C: "ज" DEVANAGARI LETTER JA
|
||||
// U+091D: "झ" DEVANAGARI LETTER JHA
|
||||
// U+091C/U+094D/U+091E:
|
||||
// "ज्ञ" DEVANAGARI LETTER JA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER NYA
|
||||
// U+0966: "०" DEVANAGARI DIGIT ZERO
|
||||
key("\u091C", joinMoreKeys("\u091D", "\u091C\u094D\u091E", "\u0966", "0")),
|
||||
// U+0921: "ड" DEVANAGARI LETTER DDA
|
||||
// U+0922: "ढ" DEVANAGARI LETTER DDHA
|
||||
key("\u0921", moreKey("\u0922")))
|
||||
.setKeysOfRow(2,
|
||||
// U+094B: "ो" DEVANAGARI VOWEL SIGN O
|
||||
// U+0913: "ओ" DEVANAGARI LETTER O
|
||||
key(VOWEL_SIGN_O, "\u094B", moreKey("\u0913")),
|
||||
// U+0947: "े" DEVANAGARI VOWEL SIGN E
|
||||
// U+090F: "ए" DEVANAGARI LETTER SHORT E
|
||||
key(VOWEL_SIGN_E, "\u0947", moreKey("\u090F")),
|
||||
// U+094D: "्" DEVANAGARI SIGN VIRAMA
|
||||
// U+0905: "अ" DEVANAGARI LETTER A
|
||||
key(SIGN_VIRAMA, "\u094D", moreKey("\u0905")),
|
||||
// U+093F: "ि" DEVANAGARI VOWEL SIGN I
|
||||
// U+0907: "इ" DEVANAGARI LETTER I
|
||||
key(VOWEL_SIGN_I, "\u093F", moreKey("\u0907")),
|
||||
// U+0941: "ु" DEVANAGARI VOWEL SIGN U
|
||||
// U+0909: "उ" DEVANAGARI LETTER U
|
||||
key(VOWEL_SIGN_U, "\u0941", moreKey("\u0909")),
|
||||
// U+092A: "प" DEVANAGARI LETTER PA
|
||||
// U+092B: "फ" DEVANAGARI LETTER PHA
|
||||
key("\u092A", moreKey("\u092B")),
|
||||
// U+0930: "र" DEVANAGARI LETTER RA
|
||||
// U+0931: "ऱ" DEVANAGARI LETTER RRA
|
||||
// U+090B: "ऋ" DEVANAGARI LETTER VOCALIC R
|
||||
// U+0943: "ृ" DEVANAGARI VOWEL SIGN VOCALIC R
|
||||
key("\u0930", joinMoreKeys(
|
||||
"\u0931", "\u090B", moreKey(VOWEL_SIGN_VOCALIC_R, "\u0943"))),
|
||||
// U+0915: "क" DEVANAGARI LETTER KA
|
||||
// U+0916: "ख" DEVANAGARI LETTER KHA
|
||||
key("\u0915", moreKey("\u0916")),
|
||||
// U+0924: "त" DEVANAGARI LETTER TA
|
||||
// U+0925: "थ" DEVANAGARI LETTER THA
|
||||
// U+0924/U+094D/U+0930:
|
||||
// "त्र" DEVANAGARI LETTER TA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER RA
|
||||
key("\u0924", joinMoreKeys("\u0925", "\u0924\u094D\u0930")),
|
||||
// U+091A: "च" DEVANAGARI LETTER CA
|
||||
// U+091B: "छ" DEVANAGARI LETTER CHA
|
||||
key("\u091A", moreKey("\u091B")),
|
||||
// U+091F: "ट" DEVANAGARI LETTER TTA
|
||||
// U+0920: "ठ" DEVANAGARI LETTER TTHA
|
||||
key("\u091F", moreKey("\u0920")))
|
||||
.setKeysOfRow(3,
|
||||
// U+0949: "ॉ" DEVANAGARI VOWEL SIGN CANDRA O
|
||||
// U+0911: "ऑ" DEVANAGARI LETTER CANDRA O
|
||||
key(VOWEL_SIGN_CANDRA_O, "\u0949", moreKey("\u0911")),
|
||||
// U+0945: "ॅ" DEVANAGARI VOWEL SIGN CANDRA E
|
||||
// U+090D: "ऍ" DEVANAGARI LETTER CANDRA E
|
||||
key(VOWEL_SIGN_CANDRA_E, "\u0945", moreKey("\u090D")),
|
||||
// U+0902: "ं" DEVANAGARI SIGN ANUSVARA
|
||||
// U+0903: "ः" DEVANAGARI SIGN VISARGA
|
||||
// U+0901: "ँ" DEVANAGARI SIGN CANDRABINDU
|
||||
key(SIGN_ANUSVARA, "\u0902", joinMoreKeys(
|
||||
moreKey(SIGN_VISARGA, "\u0903"), moreKey(SIGN_CANDRABINDU, "\u0901"))),
|
||||
// U+092E: "म" DEVANAGARI LETTER MA
|
||||
"\u092E",
|
||||
// U+0928: "न" DEVANAGARI LETTER NA
|
||||
// U+0923: "ण" DEVANAGARI LETTER NNA
|
||||
// U+091E: "ञ" DEVANAGARI LETTER NYA
|
||||
// U+0919: "ङ" DEVANAGARI LETTER NGA
|
||||
key("\u0928", joinMoreKeys("\u0923", "\u091E", "\u0919")),
|
||||
// U+0935: "व" DEVANAGARI LETTER VA
|
||||
"\u0935",
|
||||
// U+0932: "ल" DEVANAGARI LETTER LA
|
||||
// U+0933: "ळ" DEVANAGARI LETTER LLA
|
||||
key("\u0932", moreKey("\u0933")),
|
||||
// U+0938: "स" DEVANAGARI LETTER SA
|
||||
// U+0936: "श" DEVANAGARI LETTER SHA
|
||||
// U+0937: "ष" DEVANAGARI LETTER SSA
|
||||
// U+0936/U+094D/U+0930:
|
||||
// "श्र" DEVANAGARI LETTER SHA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER RA
|
||||
key("\u0938", joinMoreKeys("\u0936", "\u0937", "\u0936\u094D\u0930")),
|
||||
// U+092F: "य" DEVANAGARI LETTER YA
|
||||
"\u092F",
|
||||
// U+0915/U+094D/U+0937:
|
||||
// "क्ष" DEVANAGARI LETTER KA/DEVANAGARI SIGN VIRAMA/DEVANAGARI LETTER SSA
|
||||
"\u0915\u094D\u0937")
|
||||
.build();
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (C) 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.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.keyboard.layout.tests;
|
||||
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
import com.android.inputmethod.keyboard.layout.LayoutBase;
|
||||
import com.android.inputmethod.keyboard.layout.Marathi;
|
||||
import com.android.inputmethod.keyboard.layout.Marathi.MarathiCustomizer;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* mr_IN: Marathi (India)/marathi
|
||||
*/
|
||||
@SmallTest
|
||||
public final class TestsMarathiIN extends LayoutTestsBase {
|
||||
private static final Locale LOCALE = new Locale("mr", "IN");
|
||||
private static final LayoutBase LAYOUT = new Marathi(new MarathiCustomizer(LOCALE));
|
||||
|
||||
@Override
|
||||
LayoutBase getLayout() { return LAYOUT; }
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<?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.
|
||||
*/
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Label for "switch to alphabetic" key.
|
||||
U+0915: "क" DEVANAGARI LETTER KA
|
||||
U+0916: "ख" DEVANAGARI LETTER KHA
|
||||
U+0917: "ग" DEVANAGARI LETTER GA -->
|
||||
<string name="keylabel_to_alpha">कखग</string>
|
||||
<!-- U+0967: "१" DEVANAGARI DIGIT ONE -->
|
||||
<string name="keyspec_symbols_1">१</string>
|
||||
<!-- U+0968: "२" DEVANAGARI DIGIT TWO -->
|
||||
<string name="keyspec_symbols_2">२</string>
|
||||
<!-- U+0969: "३" DEVANAGARI DIGIT THREE -->
|
||||
<string name="keyspec_symbols_3">३</string>
|
||||
<!-- U+096A: "४" DEVANAGARI DIGIT FOUR -->
|
||||
<string name="keyspec_symbols_4">४</string>
|
||||
<!-- U+096B: "५" DEVANAGARI DIGIT FIVE -->
|
||||
<string name="keyspec_symbols_5">५</string>
|
||||
<!-- U+096C: "६" DEVANAGARI DIGIT SIX -->
|
||||
<string name="keyspec_symbols_6">६</string>
|
||||
<!-- U+096D: "७" DEVANAGARI DIGIT SEVEN -->
|
||||
<string name="keyspec_symbols_7">७</string>
|
||||
<!-- U+096E: "८" DEVANAGARI DIGIT EIGHT -->
|
||||
<string name="keyspec_symbols_8">८</string>
|
||||
<!-- U+096F: "९" DEVANAGARI DIGIT NINE -->
|
||||
<string name="keyspec_symbols_9">९</string>
|
||||
<!-- U+0966: "०" DEVANAGARI DIGIT ZERO -->
|
||||
<string name="keyspec_symbols_0">०</string>
|
||||
<!-- Label for "switch to symbols" key. -->
|
||||
<string name="keylabel_to_symbol">?१२३</string>
|
||||
<string name="additional_morekeys_symbols_1">1</string>
|
||||
<string name="additional_morekeys_symbols_2">2</string>
|
||||
<string name="additional_morekeys_symbols_3">3</string>
|
||||
<string name="additional_morekeys_symbols_4">4</string>
|
||||
<string name="additional_morekeys_symbols_5">5</string>
|
||||
<string name="additional_morekeys_symbols_6">6</string>
|
||||
<string name="additional_morekeys_symbols_7">7</string>
|
||||
<string name="additional_morekeys_symbols_8">8</string>
|
||||
<string name="additional_morekeys_symbols_9">9</string>
|
||||
<string name="additional_morekeys_symbols_0">0</string>
|
||||
<!-- U+20B9: "₹" INDIAN RUPEE SIGN -->
|
||||
<string name="keyspec_currency">₹</string>
|
||||
</resources>
|
Loading…
Reference in a new issue