diff options
author | 2014-09-26 16:00:47 +0900 | |
---|---|---|
committer | 2014-10-01 09:29:34 +0000 | |
commit | 31c16d41bc67fa9def9290bb72594d35833b48f6 (patch) | |
tree | 8fdd5bddbb3a9364a49d0410120f81ce6e40990f /java/res/xml | |
parent | 79d992ccba3f4f02e8ebd5d2b776d4abc4a9bc57 (diff) | |
download | latinime-31c16d41bc67fa9def9290bb72594d35833b48f6.tar.gz latinime-31c16d41bc67fa9def9290bb72594d35833b48f6.tar.xz latinime-31c16d41bc67fa9def9290bb72594d35833b48f6.zip |
Add Uzbek keyboard
Bug: 13222403
Change-Id: I9a4cf447a8ab0c26c4dc7f7794c57390024660cc
Diffstat (limited to 'java/res/xml')
-rw-r--r-- | java/res/xml/kbd_uzbek.xml | 23 | ||||
-rw-r--r-- | java/res/xml/keyboard_layout_set_uzbek.xml | 42 | ||||
-rw-r--r-- | java/res/xml/method.xml | 13 | ||||
-rw-r--r-- | java/res/xml/rowkeys_uzbek1.xml | 27 | ||||
-rw-r--r-- | java/res/xml/rowkeys_uzbek2.xml | 29 | ||||
-rw-r--r-- | java/res/xml/rows_uzbek.xml | 43 |
6 files changed, 177 insertions, 0 deletions
diff --git a/java/res/xml/kbd_uzbek.xml b/java/res/xml/kbd_uzbek.xml new file mode 100644 index 000000000..84486a70e --- /dev/null +++ b/java/res/xml/kbd_uzbek.xml @@ -0,0 +1,23 @@ +<?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_uzbek" /> +</Keyboard>
\ No newline at end of file diff --git a/java/res/xml/keyboard_layout_set_uzbek.xml b/java/res/xml/keyboard_layout_set_uzbek.xml new file mode 100644 index 000000000..8251b01fd --- /dev/null +++ b/java/res/xml/keyboard_layout_set_uzbek.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_uzbek" + latin:enableProximityCharsCorrection="true" + latin:allowRedundantMoreKeys="true" /> + <Element + latin:elementKeyboard="@xml/kbd_symbols" + latin:elementName="symbols" /> + <Element + latin:elementKeyboard="@xml/kbd_symbols_shift" + latin:elementName="symbolsShifted" /> + <Element + latin:elementKeyboard="@xml/kbd_phone" + latin:elementName="phone" /> + <Element + latin:elementKeyboard="@xml/kbd_phone_symbols" + latin:elementName="phoneSymbols" /> + <Element + latin:elementKeyboard="@xml/kbd_number" + latin:elementName="number" /> +</KeyboardLayoutSet>
\ No newline at end of file diff --git a/java/res/xml/method.xml b/java/res/xml/method.xml index f096ebdf5..10d8124be 100644 --- a/java/res/xml/method.xml +++ b/java/res/xml/method.xml @@ -101,6 +101,7 @@ tl: Tagalog/spanish tr: Turkish/qwerty uk: Ukrainian/east_slavic + (uz_UZ: Uzbek (Uzbekistan)/uzbek) # This is a preliminary keyboard layout. vi: Vietnamese/qwerty zu: Zulu/qwerty zz: QWERTY/qwerty @@ -672,6 +673,8 @@ android:imeSubtypeExtraValue="SupportTouchPositionCorrection,EmojiCapable" android:isAsciiCapable="false" /> + <!-- TODO: This Serbian Latin 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_sr_ZZ" android:subtypeId="0xf4a5569c" @@ -763,6 +766,16 @@ android:imeSubtypeExtraValue="KeyboardLayoutSet=east_slavic,EmojiCapable" android:isAsciiCapable="false" /> + <!-- TODO: This Uzbek 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="0xad5cf7f6" + android:imeSubtypeLocale="uz_UZ" + android:imeSubtypeMode="keyboard" + android:imeSubtypeExtraValue="KeyboardLayoutSet=uzbek,AsciiCapable,EmojiCapable" + android:isAsciiCapable="true" + /> <subtype android:icon="@drawable/ic_ime_switcher_dark" android:label="@string/subtype_generic" android:subtypeId="0x93972eee" diff --git a/java/res/xml/rowkeys_uzbek1.xml b/java/res/xml/rowkeys_uzbek1.xml new file mode 100644 index 000000000..967e9a76b --- /dev/null +++ b/java/res/xml/rowkeys_uzbek1.xml @@ -0,0 +1,27 @@ +<?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/rowkeys_qwerty1" /> + <!-- U+006F/U+02BB: "oʻ" LATIN SMALL LETTER O/MODIFIER LETTER TURNED COMMA --> + <Key + latin:keySpec="oʻ" + latin:keyLabelFlags="followKeyLetterRatio" /> +</merge>
\ No newline at end of file diff --git a/java/res/xml/rowkeys_uzbek2.xml b/java/res/xml/rowkeys_uzbek2.xml new file mode 100644 index 000000000..b768a12a4 --- /dev/null +++ b/java/res/xml/rowkeys_uzbek2.xml @@ -0,0 +1,29 @@ +<?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/rowkeys_qwerty2" /> + <!-- U+0067/U+02BB: "gʻ" LATIN SMALL LETTER G/MODIFIER LETTER TURNED COMMA --> + <Key + latin:keySpec="gʻ" + latin:keyLabelFlags="followKeyLetterRatio" /> + <!-- U+02BC: "ʼ" MODIFIER LETTER APOSTROPHE --> + <Key latin:keySpec="ʼ" /> +</merge>
\ No newline at end of file diff --git a/java/res/xml/rows_uzbek.xml b/java/res/xml/rows_uzbek.xml new file mode 100644 index 000000000..ae655d814 --- /dev/null +++ b/java/res/xml/rows_uzbek.xml @@ -0,0 +1,43 @@ +<?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_uzbek1" /> + </Row> + <Row latin:keyWidth="9.091%p" > + <include latin:keyboardLayout="@xml/rowkeys_uzbek2" /> + </Row> + <Row latin:keyWidth="9.2%p" > + <Key + latin:keyStyle="shiftKeyStyle" + latin:keyWidth="15%p" + latin:visualInsetsRight="1%p" /> + <Spacer latin:keyWidth="2.8%p" /> + <include latin:keyboardLayout="@xml/rowkeys_qwerty3" /> + <Key + latin:keyStyle="deleteKeyStyle" + latin:keyWidth="fillRight" + latin:keyXPos="-15%p" + latin:visualInsetsLeft="1%p" /> + </Row> + <include latin:keyboardLayout="@xml/row_qwerty4" /> +</merge>
\ No newline at end of file |