summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-04-15 08:56:40 +0400
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-04-15 08:56:40 +0400
commitc839e1b5fd7a96b654b793413adc5163f5325034 (patch)
treed114ce6b2a68021629bcac3f07eeb82a653cbec5
parentb28907f5e18264a9617a1567c13a760e32714acf (diff)
parent1960da31d0b384b46064e3d808663f5f00c95443 (diff)
downloadandroid_packages_inputmethods_LatinIME-c839e1b5fd7a96b654b793413adc5163f5325034.tar.gz
android_packages_inputmethods_LatinIME-c839e1b5fd7a96b654b793413adc5163f5325034.tar.bz2
android_packages_inputmethods_LatinIME-c839e1b5fd7a96b654b793413adc5163f5325034.zip
Merge "Ukrainian LatinIME keyboard layout" into ics
-rw-r--r--java/res/values-uk/donottranslate-more-keys.xml23
-rw-r--r--java/res/values/donottranslate-more-keys.xml1
-rw-r--r--java/res/xml-sw600dp/kbd_rows_ukrainian.xml140
-rw-r--r--java/res/xml-sw768dp/kbd_rows_ukrainian.xml127
-rw-r--r--java/res/xml-uk/kbd_qwerty.xml27
-rw-r--r--java/res/xml/kbd_rows_ukrainian.xml132
-rw-r--r--java/res/xml/method.xml6
7 files changed, 456 insertions, 0 deletions
diff --git a/java/res/values-uk/donottranslate-more-keys.xml b/java/res/values-uk/donottranslate-more-keys.xml
new file mode 100644
index 000000000..0978af417
--- /dev/null
+++ b/java/res/values-uk/donottranslate-more-keys.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2010, 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">
+ <string name="more_keys_for_cyrillic_g">7,ґ</string>
+ <string name="more_keys_for_cyrillic_i">ї</string>
+</resources>
diff --git a/java/res/values/donottranslate-more-keys.xml b/java/res/values/donottranslate-more-keys.xml
index fcbe3af79..2cdcbb04a 100644
--- a/java/res/values/donottranslate-more-keys.xml
+++ b/java/res/values/donottranslate-more-keys.xml
@@ -46,6 +46,7 @@
<string name="more_keys_for_cyrillic_i"></string>
<string name="more_keys_for_cyrillic_soft_sign"></string>
<string name="more_keys_for_cyrillic_ha"></string>
+ <string name="more_keys_for_cyrillic_g"></string>
<string name="more_keys_for_currency_dollar">¢,£,€,¥,₱</string>
<string name="more_keys_for_currency_euro">¢,£,$,¥,₱</string>
<string name="more_keys_for_currency_pound">¢,$,€,¥,₱</string>
diff --git a/java/res/xml-sw600dp/kbd_rows_ukrainian.xml b/java/res/xml-sw600dp/kbd_rows_ukrainian.xml
new file mode 100644
index 000000000..156b6b345
--- /dev/null
+++ b/java/res/xml-sw600dp/kbd_rows_ukrainian.xml
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2011, 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/kbd_key_styles" />
+ <Row
+ latin:keyWidth="7.60%p"
+ >
+ <Key
+ latin:keyLabel="й" />
+ <Key
+ latin:keyLabel="ц" />
+ <Key
+ latin:keyLabel="у" />
+ <Key
+ latin:keyLabel="к" />
+ <Key
+ latin:keyLabel="е" />
+ <Key
+ latin:keyLabel="н" />
+ <Key
+ latin:keyLabel="г"
+ latin:moreKeys="@string/more_keys_for_cyrillic_g" />
+ <Key
+ latin:keyLabel="ш" />
+ <Key
+ latin:keyLabel="щ" />
+ <Key
+ latin:keyLabel="з" />
+ <Key
+ latin:keyLabel="х" />
+ <Key
+ latin:keyLabel="ї" />
+ <Key
+ latin:keyStyle="deleteKeyStyle"
+ latin:keyXPos="-10.0%p"
+ latin:keyWidth="fillBoth" />
+ </Row>
+ <Row
+ latin:keyWidth="7.60%p"
+ >
+ <Key
+ latin:keyLabel="ф"
+ latin:keyXPos="2.25%p" />
+ <Key
+ latin:keyLabel="і" />
+ <Key
+ latin:keyLabel="в" />
+ <Key
+ latin:keyLabel="а" />
+ <Key
+ latin:keyLabel="п" />
+ <Key
+ latin:keyLabel="р" />
+ <Key
+ latin:keyLabel="о" />
+ <Key
+ latin:keyLabel="л" />
+ <Key
+ latin:keyLabel="д" />
+ <Key
+ latin:keyLabel="ж" />
+ <Key
+ latin:keyLabel="є" />
+ <Key
+ latin:keyStyle="returnKeyStyle"
+ latin:keyXPos="-14.6%p"
+ latin:keyWidth="fillBoth" />
+ </Row>
+ <Row
+ latin:keyWidth="7.60%p"
+ >
+ <Key
+ latin:keyStyle="shiftKeyStyle" />
+ <Key
+ latin:keyLabel="я" />
+ <Key
+ latin:keyLabel="ч" />
+ <Key
+ latin:keyLabel="с" />
+ <Key
+ latin:keyLabel="м" />
+ <Key
+ latin:keyLabel="и" />
+ <Key
+ latin:keyLabel="т" />
+ <Key
+ latin:keyLabel="ь" />
+ <Key
+ latin:keyLabel="б" />
+ <Key
+ latin:keyLabel="ю" />
+ <switch>
+ <case
+ latin:mode="email"
+ >
+ <Key
+ latin:keyLabel="," />
+ <Key
+ latin:keyLabel="." />
+ </case>
+ <default>
+ <Key
+ latin:keyLabel=","
+ latin:keyLabelOption="hasUppercaseLetter"
+ latin:keyHintLabel="!"
+ latin:moreKeys="!" />
+ <Key
+ latin:keyLabel="."
+ latin:keyLabelOption="hasUppercaseLetter"
+ latin:keyHintLabel="\?"
+ latin:moreKeys="\?" />
+ </default>
+ </switch>
+ <include
+ latin:keyboardLayout="@xml/kbd_row3_smiley" />
+ </Row>
+ <include
+ latin:keyboardLayout="@xml/kbd_qwerty_row4" />
+</merge>
diff --git a/java/res/xml-sw768dp/kbd_rows_ukrainian.xml b/java/res/xml-sw768dp/kbd_rows_ukrainian.xml
new file mode 100644
index 000000000..293517505
--- /dev/null
+++ b/java/res/xml-sw768dp/kbd_rows_ukrainian.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2011, 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/kbd_key_styles" />
+ <Row
+ latin:keyWidth="7.125%p"
+ >
+ <Key
+ latin:keyStyle="tabKeyStyle"
+ latin:keyLabelOption="alignLeft" />
+ <Key
+ latin:keyLabel="й" />
+ <Key
+ latin:keyLabel="ц" />
+ <Key
+ latin:keyLabel="у" />
+ <Key
+ latin:keyLabel="к" />
+ <Key
+ latin:keyLabel="е" />
+ <Key
+ latin:keyLabel="н" />
+ <Key
+ latin:keyLabel="г"
+ latin:moreKeys="@string/more_keys_for_cyrillic_g" />
+ <Key
+ latin:keyLabel="ш" />
+ <Key
+ latin:keyLabel="щ" />
+ <Key
+ latin:keyLabel="з" />
+ <Key
+ latin:keyLabel="х" />
+ <Key
+ latin:keyLabel="ї" />
+ <Key
+ latin:keyStyle="deleteKeyStyle"
+ latin:keyWidth="fillBoth" />
+ </Row>
+ <Row
+ latin:keyWidth="7.125%p"
+ >
+ <Key
+ latin:keyStyle="toSymbolKeyStyle"
+ latin:keyLabelOption="alignLeft"
+ latin:keyWidth="9.375%p" />
+ <Key
+ latin:keyLabel="ф" />
+ <Key
+ latin:keyLabel="і" />
+ <Key
+ latin:keyLabel="в" />
+ <Key
+ latin:keyLabel="а" />
+ <Key
+ latin:keyLabel="п" />
+ <Key
+ latin:keyLabel="р" />
+ <Key
+ latin:keyLabel="о" />
+ <Key
+ latin:keyLabel="л" />
+ <Key
+ latin:keyLabel="д" />
+ <Key
+ latin:keyLabel="ж" />
+ <Key
+ latin:keyLabel="є" />
+ <Key
+ latin:keyStyle="returnKeyStyle"
+ latin:keyXPos="-9.375%p"
+ latin:keyWidth="fillBoth" />
+ </Row>
+ <Row
+ latin:keyWidth="7.125%p"
+ >
+ <Key
+ latin:keyStyle="shiftKeyStyle"
+ latin:keyWidth="12.750%p" />
+ <Key
+ latin:keyLabel="я" />
+ <Key
+ latin:keyLabel="ч" />
+ <Key
+ latin:keyLabel="с" />
+ <Key
+ latin:keyLabel="м" />
+ <Key
+ latin:keyLabel="и" />
+ <Key
+ latin:keyLabel="т" />
+ <Key
+ latin:keyLabel="ь" />
+ <Key
+ latin:keyLabel="б" />
+ <Key
+ latin:keyLabel="ю" />
+ <include
+ latin:keyboardLayout="@xml/kbd_row3_comma_period" />
+ <Key
+ latin:keyStyle="shiftKeyStyle"
+ latin:keyWidth="fillBoth" />
+ </Row>
+ <include
+ latin:keyboardLayout="@xml/kbd_qwerty_row4" />
+</merge>
diff --git a/java/res/xml-uk/kbd_qwerty.xml b/java/res/xml-uk/kbd_qwerty.xml
new file mode 100644
index 000000000..c1433777c
--- /dev/null
+++ b/java/res/xml-uk/kbd_qwerty.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2008, 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:keyboardLocale="uk"
+>
+ <include
+ latin:keyboardLayout="@xml/kbd_rows_ukrainian" />
+</Keyboard>
diff --git a/java/res/xml/kbd_rows_ukrainian.xml b/java/res/xml/kbd_rows_ukrainian.xml
new file mode 100644
index 000000000..538b81b70
--- /dev/null
+++ b/java/res/xml/kbd_rows_ukrainian.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2011, 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/kbd_key_styles" />
+ <Row
+ latin:keyWidth="9.091%p"
+ >
+ <Key
+ latin:keyLabel="й"
+ latin:keyHintLabel="1"
+ latin:moreKeys="1" />
+ <Key
+ latin:keyLabel="ц"
+ latin:keyHintLabel="2"
+ latin:moreKeys="2" />
+ <Key
+ latin:keyLabel="у"
+ latin:keyHintLabel="3"
+ latin:moreKeys="3" />
+ <Key
+ latin:keyLabel="к"
+ latin:keyHintLabel="4"
+ latin:moreKeys="4" />
+ <Key
+ latin:keyLabel="е"
+ latin:keyHintLabel="5"
+ latin:moreKeys="5" />
+ <Key
+ latin:keyLabel="н"
+ latin:keyHintLabel="6"
+ latin:moreKeys="6" />
+ <Key
+ latin:keyLabel="г"
+ latin:keyHintLabel="7"
+ latin:moreKeys="@string/more_keys_for_cyrillic_g" />
+ <Key
+ latin:keyLabel="ш"
+ latin:keyHintLabel="8"
+ latin:moreKeys="8" />
+ <Key
+ latin:keyLabel="щ"
+ latin:keyHintLabel="9"
+ latin:moreKeys="9" />
+ <Key
+ latin:keyLabel="з"
+ latin:keyHintLabel="0"
+ latin:moreKeys="0" />
+ <Key
+ latin:keyLabel="х"
+ latin:keyWidth="fillRight" />
+ </Row>
+ <Row
+ latin:keyWidth="9.091%p"
+ >
+ <Key
+ latin:keyLabel="ф"
+ latin:keyWidth="8.75%p" />
+ <Key
+ latin:keyLabel="і"
+ latin:moreKeys="@string/more_keys_for_cyrillic_i" />
+ <Key
+ latin:keyLabel="в" />
+ <Key
+ latin:keyLabel="а" />
+ <Key
+ latin:keyLabel="п" />
+ <Key
+ latin:keyLabel="р" />
+ <Key
+ latin:keyLabel="о" />
+ <Key
+ latin:keyLabel="л" />
+ <Key
+ latin:keyLabel="д" />
+ <Key
+ latin:keyLabel="ж" />
+ <Key
+ latin:keyLabel="є"
+ latin:keyWidth="fillRight" />
+ </Row>
+ <Row
+ latin:keyWidth="8.5%p"
+ >
+ <Key
+ latin:keyStyle="shiftKeyStyle"
+ latin:keyWidth="11.75%p" />
+ <Key
+ latin:keyLabel="я" />
+ <Key
+ latin:keyLabel="ч" />
+ <Key
+ latin:keyLabel="с" />
+ <Key
+ latin:keyLabel="м" />
+ <Key
+ latin:keyLabel="и" />
+ <Key
+ latin:keyLabel="т" />
+ <Key
+ latin:keyLabel="ь" />
+ <Key
+ latin:keyLabel="б" />
+ <Key
+ latin:keyLabel="ю" />
+ <Key
+ latin:keyStyle="deleteKeyStyle"
+ latin:keyWidth="fillRight" />
+ </Row>
+ <include
+ latin:keyboardLayout="@xml/kbd_qwerty_row4" />
+</merge>
diff --git a/java/res/xml/method.xml b/java/res/xml/method.xml
index 8140540b0..ae7f6ef29 100644
--- a/java/res/xml/method.xml
+++ b/java/res/xml/method.xml
@@ -196,4 +196,10 @@
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="AsciiCapable,SupportTouchPositionCorrection"
/>
+ <subtype android:icon="@drawable/ic_subtype_keyboard"
+ android:label="@string/subtype_generic"
+ android:imeSubtypeLocale="uk"
+ android:imeSubtypeMode="keyboard"
+ android:imeSubtypeExtraValue="SupportTouchPositionCorrection"
+ />
</input-method>