mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add Khmer layout
bug: 6910993 Change-Id: Ie515acd625bc266494d9e63b0694e2c05a19b661
This commit is contained in:
parent
72503243e4
commit
be5e21ecbb
23
java/res/values-km/donottranslate.xml
Normal file
23
java/res/values-km/donottranslate.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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">
|
||||
<!-- Whether this language uses spaces between words -->
|
||||
<bool name="current_language_has_spaces">false</bool>
|
||||
</resources>
|
72
java/res/xml-sw600dp/rows_khmer.xml
Normal file
72
java/res/xml-sw600dp/rows_khmer.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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="7.5%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer1" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="7.5%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer2" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="7.5%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer3" />
|
||||
<Key
|
||||
latin:keyStyle="enterKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="7.5%p"
|
||||
>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="10.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer4" />
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<Spacer />
|
||||
</case>
|
||||
<default>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question" />
|
||||
</default>
|
||||
</switch>
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
@ -55,8 +55,17 @@
|
||||
latin:keyWidth="10.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_lao4" />
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<Spacer />
|
||||
</case>
|
||||
<default>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question" />
|
||||
</default>
|
||||
</switch>
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
|
@ -59,8 +59,17 @@
|
||||
latin:keyWidth="10.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_thai4" />
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<Spacer />
|
||||
</case>
|
||||
<default>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question" />
|
||||
</default>
|
||||
</switch>
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
|
31
java/res/xml/kbd_khmer.xml
Normal file
31
java/res/xml/kbd_khmer.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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"
|
||||
latin:rowHeight="20%p"
|
||||
latin:verticalGap="@fraction/key_bottom_gap_5row"
|
||||
latin:keyLetterSize="@fraction/key_letter_ratio_5row"
|
||||
latin:keyShiftedLetterHintRatio="@fraction/key_uppercase_letter_ratio_5row"
|
||||
latin:touchPositionCorrectionData="@array/touch_position_correction_data_default"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rows_khmer" />
|
||||
</Keyboard>
|
58
java/res/xml/keyboard_layout_set_khmer.xml
Normal file
58
java/res/xml/keyboard_layout_set_khmer.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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_khmer"
|
||||
latin:enableProximityCharsCorrection="true" />
|
||||
<Element
|
||||
latin:elementName="alphabetAutomaticShifted"
|
||||
latin:elementKeyboard="@xml/kbd_khmer"
|
||||
latin:enableProximityCharsCorrection="true" />
|
||||
<!-- On these shifted alphabet layouts the proximity characters correction should be disabled
|
||||
because the letters on these layouts aren't the ones in different case of the above
|
||||
unshifted layouts. -->
|
||||
<Element
|
||||
latin:elementName="alphabetManualShifted"
|
||||
latin:elementKeyboard="@xml/kbd_khmer" />
|
||||
<Element
|
||||
latin:elementName="alphabetShiftLocked"
|
||||
latin:elementKeyboard="@xml/kbd_khmer" />
|
||||
<Element
|
||||
latin:elementName="alphabetShiftLockShifted"
|
||||
latin:elementKeyboard="@xml/kbd_khmer" />
|
||||
<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>
|
@ -54,6 +54,7 @@
|
||||
iw: Hebrew/hebrew # "he" is official language code of Hebrew.
|
||||
ka: Georgian/georgian
|
||||
(kk: Kazakh/east_slavic) # disabled temporarily. waiting for strnig resources.
|
||||
km: Khmer/khmer
|
||||
ky: Kyrgyz/east_slavic
|
||||
lo: Lao/lao
|
||||
lt: Lithuanian/qwerty
|
||||
@ -324,6 +325,14 @@
|
||||
android:imeSubtypeExtraValue="KeyboardLayoutSet=east_slavic,EmojiCapable"
|
||||
/>
|
||||
-->
|
||||
<subtype android:icon="@drawable/ic_subtype_keyboard"
|
||||
android:label="@string/subtype_generic"
|
||||
android:subtypeId="0x1365683a"
|
||||
android:imeSubtypeLocale="km"
|
||||
android:imeSubtypeMode="keyboard"
|
||||
android:imeSubtypeExtraValue="KeyboardLayoutSet=khmer,EmojiCapable"
|
||||
/>
|
||||
<!-- android:subtypeId="Need this for km" -->
|
||||
<subtype android:icon="@drawable/ic_subtype_keyboard"
|
||||
android:label="@string/subtype_generic"
|
||||
android:subtypeId="0x2e391c04"
|
||||
|
191
java/res/xml/rowkeys_khmer1.xml
Normal file
191
java/res/xml/rowkeys_khmer1.xml
Normal file
@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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"
|
||||
>
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<!-- U+200D: ZERO WIDTH JOINER -->
|
||||
<Key
|
||||
latin:keyLabel="!"
|
||||
latin:moreKeys="!icon/zwj_key|‍" />
|
||||
<!-- U+17D7: "ៗ" KHMER SIGN LEK TOO
|
||||
U+200C: ZERO WIDTH NON-JOINER -->
|
||||
<Key
|
||||
latin:keyLabel="ៗ"
|
||||
latin:moreKeys="!icon/zwnj_key|‌"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17D1: "៑" KHMER SIGN VIRIAM -->
|
||||
<Key
|
||||
latin:keyLabel="""
|
||||
latin:keyHintLabel="៑"
|
||||
latin:moreKeys="៑" />
|
||||
<!-- U+17DB: "៛" KHMER CURRENCY SYMBOL RIEL
|
||||
U+20AC: "€" EURO SIGN -->
|
||||
<Key
|
||||
latin:keyLabel="៛"
|
||||
latin:keyHintLabel="$"
|
||||
latin:moreKeys="$,€" />
|
||||
<!-- U+17D6: "៖" KHMER SIGN CAMNUC PII KUUH -->
|
||||
<Key
|
||||
latin:keyLabel="%"
|
||||
latin:keyHintLabel="៖"
|
||||
latin:moreKeys="៖" />
|
||||
<!-- U+17CD: "៍" KHMER SIGN TOANDAKHIAT
|
||||
U+17D9: "៙" KHMER SIGN PHNAEK MUAN -->
|
||||
<Key
|
||||
latin:keyLabel="៍"
|
||||
latin:keyHintLabel="៙"
|
||||
latin:moreKeys="៙"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17D0: "័" KHMER SIGN SAMYOK SANNYA
|
||||
U+17DA: "៚" KHMER SIGN KOOMUUT -->
|
||||
<Key
|
||||
latin:keyLabel="័"
|
||||
latin:keyHintLabel="៚"
|
||||
latin:moreKeys="៚"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17CF: "៏" KHMER SIGN AHSDA -->
|
||||
<Key
|
||||
latin:keyLabel="៏"
|
||||
latin:keyHintLabel="*"
|
||||
latin:moreKeys="*"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK -->
|
||||
<Key
|
||||
latin:keyLabel="("
|
||||
latin:keyHintLabel="{"
|
||||
latin:moreKeys="{,«" />
|
||||
<!-- U+00BB: "»" RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -->
|
||||
<Key
|
||||
latin:keyLabel=")"
|
||||
latin:keyHintLabel="}"
|
||||
latin:moreKeys="},»" />
|
||||
<!-- U+17CC: "៌" KHMER SIGN ROBAT
|
||||
U+00D7: "×" MULTIPLICATION SIGN -->
|
||||
<Key
|
||||
latin:keyLabel="៌"
|
||||
latin:keyHintLabel="×"
|
||||
latin:moreKeys="×"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17CE: "៎" KHMER SIGN KAKABAT -->
|
||||
<Key
|
||||
latin:keyLabel="៎"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</case>
|
||||
<default>
|
||||
<!-- U+17E1: "១" KHMER DIGIT ONE
|
||||
U+17F1: "៱" KHMER SYMBOL LEK ATTAK MUOY -->
|
||||
<Key
|
||||
latin:keyLabel="១"
|
||||
latin:keyHintLabel="1"
|
||||
latin:additionalMoreKeys="1"
|
||||
latin:moreKeys="៱"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E2: "២" KHMER DIGIT TWO
|
||||
U+17F2: "៲" KHMER SYMBOL LEK ATTAK PII -->
|
||||
<Key
|
||||
latin:keyLabel="២"
|
||||
latin:keyHintLabel="2"
|
||||
latin:additionalMoreKeys="2"
|
||||
latin:moreKeys="៲"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E3: "៣" KHMER DIGIT THREE
|
||||
U+17F3: "៳" KHMER SYMBOL LEK ATTAK BEI -->
|
||||
<Key
|
||||
latin:keyLabel="៣"
|
||||
latin:keyHintLabel="3"
|
||||
latin:additionalMoreKeys="3"
|
||||
latin:moreKeys="៳"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E4: "៤" KHMER DIGIT FOUR
|
||||
U+17F4: "៴" KHMER SYMBOL LEK ATTAK BUON -->
|
||||
<Key
|
||||
latin:keyLabel="៤"
|
||||
latin:keyHintLabel="4"
|
||||
latin:additionalMoreKeys="4"
|
||||
latin:moreKeys="៴"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E5: "៥" KHMER DIGIT FIVE
|
||||
U+17F5: "៵" KHMER SYMBOL LEK ATTAK PRAM -->
|
||||
<Key
|
||||
latin:keyLabel="៥"
|
||||
latin:keyHintLabel="5"
|
||||
latin:additionalMoreKeys="5"
|
||||
latin:moreKeys="៵"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E6: "៦" KHMER DIGIT SIX
|
||||
U+17F6: "៶" KHMER SYMBOL LEK ATTAK PRAM-MUOY -->
|
||||
<Key
|
||||
latin:keyLabel="៦"
|
||||
latin:keyHintLabel="6"
|
||||
latin:additionalMoreKeys="6"
|
||||
latin:moreKeys="៶"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E7: "៧" KHMER DIGIT SEVEN
|
||||
U+17F7: "៷" KHMER SYMBOL LEK ATTAK PRAM-PII -->
|
||||
<Key
|
||||
latin:keyLabel="៧"
|
||||
latin:keyHintLabel="7"
|
||||
latin:additionalMoreKeys="7"
|
||||
latin:moreKeys="៷"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E8: "៨" KHMER DIGIT EIGHT
|
||||
U+17F8: "៸" KHMER SYMBOL LEK ATTAK PRAM-BEI -->
|
||||
<Key
|
||||
latin:keyLabel="៨"
|
||||
latin:keyHintLabel="8"
|
||||
latin:additionalMoreKeys="8"
|
||||
latin:moreKeys="៸"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E9: "៩" KHMER DIGIT NINE
|
||||
U+17F9: "៹" KHMER SYMBOL LEK ATTAK PRAM-BUON -->
|
||||
<Key
|
||||
latin:keyLabel="៩"
|
||||
latin:keyHintLabel="9"
|
||||
latin:additionalMoreKeys="9"
|
||||
latin:moreKeys="៹"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17E0: "០" KHMER DIGIT ZERO
|
||||
U+17F0: "៰" KHMER SYMBOL LEK ATTAK SON -->
|
||||
<Key
|
||||
latin:keyLabel="០"
|
||||
latin:keyHintLabel="0"
|
||||
latin:additionalMoreKeys="0"
|
||||
latin:moreKeys="៰"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17A5: "ឥ" KHMER INDEPENDENT VOWEL QI
|
||||
U+17A6: "ឦ" KHMER INDEPENDENT VOWEL QII -->
|
||||
<Key
|
||||
latin:keyLabel="ឥ"
|
||||
latin:moreKeys=".,ឦ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17B2: "ឲ" KHMER INDEPENDENT VOWEL QOO TYPE TWO
|
||||
U+17B1: "ឱ" KHMER INDEPENDENT VOWEL QOO TYPE ONE -->
|
||||
<Key
|
||||
latin:keyLabel="ឲ"
|
||||
latin:moreKeys="\\,,ឱ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</default>
|
||||
</switch>
|
||||
</merge>
|
144
java/res/xml/rowkeys_khmer2.xml
Normal file
144
java/res/xml/rowkeys_khmer2.xml
Normal file
@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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"
|
||||
>
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<!-- U+1788: "ឈ" KHMER LETTER CHO
|
||||
U+17DC: "ៜ" KHMER SIGN AVAKRAHASANYA -->
|
||||
<Key
|
||||
latin:keyLabel="ឈ"
|
||||
latin:keyHintLabel="ៜ"
|
||||
latin:moreKeys="ៜ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BA: "ឺ" KHMER VOWEL SIGN YY
|
||||
U+17DD: "៝" KHMER SIGN ATTHACAN -->
|
||||
<Key
|
||||
latin:keyLabel="ឺ"
|
||||
latin:keyHintLabel="៝"
|
||||
latin:moreKeys="៝"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C2: "ែ" KHMER VOWEL SIGN AE -->
|
||||
<Key
|
||||
latin:keyLabel="ែ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17AC: "ឬ" KHMER INDEPENDENT VOWEL RYY
|
||||
U+17AB: "ឫ" KHMER INDEPENDENT VOWEL RY -->
|
||||
<Key
|
||||
latin:keyLabel="ឬ"
|
||||
latin:keyHintLabel="ឫ"
|
||||
latin:moreKeys="ឫ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1791: "ទ" KHMER LETTER TO -->
|
||||
<Key
|
||||
latin:keyLabel="ទ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BD: "ួ" KHMER VOWEL SIGN UA -->
|
||||
<Key
|
||||
latin:keyLabel="ួ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BC: "ូ" KHMER VOWEL SIGN UU -->
|
||||
<Key
|
||||
latin:keyLabel="ូ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17B8: "ី" KHMER VOWEL SIGN II -->
|
||||
<Key
|
||||
latin:keyLabel="ី"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C5: "ៅ" KHMER VOWEL SIGN AU -->
|
||||
<Key
|
||||
latin:keyLabel="ៅ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1797: "ភ" KHMER LETTER PHO -->
|
||||
<Key
|
||||
latin:keyLabel="ភ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BF: "ឿ" KHMER VOWEL SIGN YA -->
|
||||
<Key
|
||||
latin:keyLabel="ឿ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17B0: "ឰ" KHMER INDEPENDENT VOWEL QAI -->
|
||||
<Key
|
||||
latin:keyLabel="ឰ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</case>
|
||||
<default>
|
||||
<!-- U+1786: "ឆ" KHMER LETTER CHA -->
|
||||
<Key
|
||||
latin:keyLabel="ឆ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17B9: "ឹ" KHMER VOWEL SIGN Y -->
|
||||
<Key
|
||||
latin:keyLabel="ឹ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C1: "េ" KHMER VOWEL SIGN E -->
|
||||
<Key
|
||||
latin:keyLabel="េ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+179A: "រ" KHMER LETTER RO -->
|
||||
<Key
|
||||
latin:keyLabel="រ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+178F: "ត" KHMER LETTER TA -->
|
||||
<Key
|
||||
latin:keyLabel="ត"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1799: "យ" KHMER LETTER YO -->
|
||||
<Key
|
||||
latin:keyLabel="យ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BB: "ុ" KHMER VOWEL SIGN U -->
|
||||
<Key
|
||||
latin:keyLabel="ុ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17B7: "ិ" KHMER VOWEL SIGN I -->
|
||||
<Key
|
||||
latin:keyLabel="ិ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C4: "ោ" KHMER VOWEL SIGN OO -->
|
||||
<Key
|
||||
latin:keyLabel="ោ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1795: "ផ" KHMER LETTER PHA -->
|
||||
<Key
|
||||
latin:keyLabel="ផ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C0: "ៀ" KHMER VOWEL SIGN IE -->
|
||||
<Key
|
||||
latin:keyLabel="ៀ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17AA: "ឪ" KHMER INDEPENDENT VOWEL QUUV
|
||||
U+17A7: "ឧ" KHMER INDEPENDENT VOWEL QU
|
||||
U+17B1: "ឱ" KHMER INDEPENDENT VOWEL QOO TYPE ONE
|
||||
U+17B3: "ឳ" KHMER INDEPENDENT VOWEL QAU
|
||||
U+17A9: "ឩ" KHMER INDEPENDENT VOWEL QUU
|
||||
U+17A8: "ឨ" KHMER INDEPENDENT VOWEL QUK -->
|
||||
<Key
|
||||
latin:keyLabel="ឪ"
|
||||
latin:keyHintLabel="ឧ"
|
||||
latin:moreKeys="ឧ,ឱ,ឳ,ឩ,ឨ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</default>
|
||||
</switch>
|
||||
</merge>
|
138
java/res/xml/rowkeys_khmer3.xml
Normal file
138
java/res/xml/rowkeys_khmer3.xml
Normal file
@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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"
|
||||
>
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<!-- U+17B6/U+17C6: "ាំ" KHMER VOWEL SIGN AA/KHMER SIGN NIKAHIT -->
|
||||
<Key
|
||||
latin:keyLabel="ាំ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+17C3: "ៃ" KHMER VOWEL SIGN AI -->
|
||||
<Key
|
||||
latin:keyLabel="ៃ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+178C: "ឌ" KHMER LETTER DO -->
|
||||
<Key
|
||||
latin:keyLabel="ឌ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1792: "ធ" KHMER LETTER THO -->
|
||||
<Key
|
||||
latin:keyLabel="ឌ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17A2: "អ" KHMER LETTER QA -->
|
||||
<Key
|
||||
latin:keyLabel="អ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C7: "ះ" KHMER SIGN REAHMUK
|
||||
U+17C8: "ៈ" KHMER SIGN YUUKALEAPINTU;-->
|
||||
<Key
|
||||
latin:keyLabel="ះ"
|
||||
latin:keyHintLabel="ៈ"
|
||||
latin:moreKeys="ៈ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1789: "ញ" KHMER LETTER NYO -->
|
||||
<Key
|
||||
latin:keyLabel="ញ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1782: "គ" KHMER LETTER KO
|
||||
U+179D: "ឝ" KHMER LETTER SHA -->
|
||||
<Key
|
||||
latin:keyLabel="គ"
|
||||
latin:keyHintLabel="ឝ"
|
||||
latin:moreKeys="ឝ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17A1: "ឡ" KHMER LETTER LA -->
|
||||
<Key
|
||||
latin:keyLabel="ឡ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C4/U+17C7: "ោះ" KHMER VOWEL SIGN OO/KHMER SIGN REAHMUK -->
|
||||
<Key
|
||||
latin:keyLabel="ោះ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C9: "៉" KHMER SIGN MUUSIKATOAN -->
|
||||
<Key
|
||||
latin:keyLabel="៉"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17AF: "ឯ" KHMER INDEPENDENT VOWEL QE -->
|
||||
<Key
|
||||
latin:keyLabel="ឯ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</case>
|
||||
<default>
|
||||
<!-- U+17B6: "ា" KHMER VOWEL SIGN AA -->
|
||||
<Key
|
||||
latin:keyLabel="ា"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+179F: "ស" KHMER LETTER SA -->
|
||||
<Key
|
||||
latin:keyLabel="ស"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+178A: "ដ" KHMER LETTER DA -->
|
||||
<Key
|
||||
latin:keyLabel="ដ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1790: "ថ" KHMER LETTER THA -->
|
||||
<Key
|
||||
latin:keyLabel="ថ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1784: "ង" KHMER LETTER NGO -->
|
||||
<Key
|
||||
latin:keyLabel="ង"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17A0: "ហ" KHMER LETTER HA -->
|
||||
<Key
|
||||
latin:keyLabel="ហ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17D2: "្" KHMER SIGN COENG -->
|
||||
<Key
|
||||
latin:keyLabel="្"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1780: "ក" KHMER LETTER KA -->
|
||||
<Key
|
||||
latin:keyLabel="ក"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+179B: "ល" KHMER LETTER LO -->
|
||||
<Key
|
||||
latin:keyLabel="ល"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BE: "ើ" KHMER VOWEL SIGN OE -->
|
||||
<Key
|
||||
latin:keyLabel="ើ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17CB: "់" KHMER SIGN BANTOC -->
|
||||
<Key
|
||||
latin:keyLabel="់"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17AE: "ឮ" KHMER INDEPENDENT VOWEL LYY
|
||||
U+17AD: "ឭ" KHMER INDEPENDENT VOWEL LY
|
||||
U+17B0: "ឰ" KHMER INDEPENDENT VOWEL QAI -->
|
||||
<Key
|
||||
latin:keyLabel="ឮ"
|
||||
latin:keyHintLabel="ឭ"
|
||||
latin:moreKeys="ឭ,ឰ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</default>
|
||||
</switch>
|
||||
</merge>
|
113
java/res/xml/rowkeys_khmer4.xml
Normal file
113
java/res/xml/rowkeys_khmer4.xml
Normal file
@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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"
|
||||
>
|
||||
<switch>
|
||||
<case
|
||||
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
|
||||
>
|
||||
<!-- U+178D: "ឍ" KHMER LETTER TTHO -->
|
||||
<Key
|
||||
latin:keyLabel="ឍ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1783: "ឃ" KHMER LETTER KHO -->
|
||||
<Key
|
||||
latin:keyLabel="ឃ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1787: "ជ" KHMER LETTER CO -->
|
||||
<Key
|
||||
latin:keyLabel="ជ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C1/U+17C7: "េះ" KHMER VOWEL SIGN E/KHMER SIGN REAHMUK -->
|
||||
<Key
|
||||
latin:keyLabel="េះ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1796: "ព" KHMER LETTER PO
|
||||
U+179E: "ឞ" KHMER LETTER SSO -->
|
||||
<Key
|
||||
latin:keyLabel="ព"
|
||||
latin:keyHintLabel="ឞ"
|
||||
latin:moreKeys="ឞ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+178E: "ណ" KHMER LETTER NNO -->
|
||||
<Key
|
||||
latin:keyLabel="ណ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17C6: "ំ" KHMER SIGN NIKAHIT -->
|
||||
<Key
|
||||
latin:keyLabel="ំ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BB/U+17C7: "ុះ" KHMER VOWEL SIGN U/KHMER SIGN REAHMUK -->
|
||||
<Key
|
||||
latin:keyLabel="ុះ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+17D5: "៕" KHMER SIGN BARIYOOSAN -->
|
||||
<Key
|
||||
latin:keyLabel="៕"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<Key
|
||||
latin:keyLabel="\?" />
|
||||
</case>
|
||||
<default>
|
||||
<!-- U+178B: "ឋ" KHMER LETTER TTHA -->
|
||||
<Key
|
||||
latin:keyLabel="ឋ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1781: "ខ" KHMER LETTER KHA -->
|
||||
<Key
|
||||
latin:keyLabel="ខ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1785: "ច" KHMER LETTER CA -->
|
||||
<Key
|
||||
latin:keyLabel="ច"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+179C: "វ" KHMER LETTER VO -->
|
||||
<Key
|
||||
latin:keyLabel="វ"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1794: "ប" KHMER LETTER BA -->
|
||||
<Key
|
||||
latin:keyLabel="ប"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1793: "ន" KHMER LETTER NO -->
|
||||
<Key
|
||||
latin:keyLabel="ន"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+1798: "ម" KHMER LETTER MO -->
|
||||
<Key
|
||||
latin:keyLabel="ម"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17BB/U+17C6: "ុំ" KHMER VOWEL SIGN U/KHMER SIGN NIKAHIT -->
|
||||
<Key
|
||||
latin:keyLabel="ុំ"
|
||||
latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
|
||||
<!-- U+17D4: "។" KHMER SIGN KHAN -->
|
||||
<Key
|
||||
latin:keyLabel="។"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
<!-- U+17CA: "៊" KHMER SIGN TRIISAP -->
|
||||
<Key
|
||||
latin:keyLabel="៊"
|
||||
latin:keyLabelFlags="fontNormal" />
|
||||
</default>
|
||||
</switch>
|
||||
</merge>
|
56
java/res/xml/rows_khmer.xml
Normal file
56
java/res/xml/rows_khmer.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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.3333%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer1" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.3333%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer2" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.3333%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer3" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.3333%p"
|
||||
>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_khmer4" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle" />
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
@ -2015,6 +2015,25 @@ public final class KeyboardTextsSet {
|
||||
/* 45 */ "\u0410\u0411\u0412",
|
||||
};
|
||||
|
||||
/* Language km: Khmer */
|
||||
private static final String[] LANGUAGE_km = {
|
||||
/* 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+1780: "ក" KHMER LETTER KA
|
||||
// U+1781: "ខ" KHMER LETTER KHA
|
||||
// U+1782: "គ" KHMER LETTER KO
|
||||
/* 45 */ "\u1780\u1781\u1782",
|
||||
/* 46~ */
|
||||
null, null, null, null,
|
||||
/* ~49 */
|
||||
// U+17DB: "៛" KHMER CURRENCY SYMBOL RIEL
|
||||
/* 50 */ "\u17DB,\u00A2,\u00A3,\u20AC,\u00A5,\u20B1",
|
||||
};
|
||||
|
||||
/* Language ky: Kirghiz */
|
||||
private static final String[] LANGUAGE_ky = {
|
||||
/* 0~ */
|
||||
@ -3407,6 +3426,7 @@ public final class KeyboardTextsSet {
|
||||
"iw", LANGUAGE_iw, /* Hebrew */
|
||||
"ka", LANGUAGE_ka, /* Georgian */
|
||||
"kk", LANGUAGE_kk, /* Kazakh */
|
||||
"km", LANGUAGE_km, /* Khmer */
|
||||
"ky", LANGUAGE_ky, /* Kirghiz */
|
||||
"lo", LANGUAGE_lo, /* Lao */
|
||||
"lt", LANGUAGE_lt, /* Lithuanian */
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2013, 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+1780: "ក" KHMER LETTER KA
|
||||
U+1781: "ខ" KHMER LETTER KHA
|
||||
U+1782: "គ" KHMER LETTER KO -->
|
||||
<string name="label_to_alpha_key">កខគ</string>
|
||||
<!-- U+17DB: "៛" KHMER CURRENCY SYMBOL RIEL -->
|
||||
<string name="more_keys_for_currency_dollar">៛,¢,£,€,¥,₱</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user