diff options
author | 2012-04-20 00:41:44 -0700 | |
---|---|---|
committer | 2012-04-20 00:41:44 -0700 | |
commit | 25b5e627d8b269db165f5edf196def38a664c92c (patch) | |
tree | 26468c969706bb7722f0a1410e3cfe2650a559c0 /java/res/xml-sw768dp | |
parent | e42ec2a6ac64dc82828d6bd5153fae19e318bbfd (diff) | |
parent | 9fa0a2e83f1daf2864d8caa24b8c507ad3c28e87 (diff) | |
download | latinime-25b5e627d8b269db165f5edf196def38a664c92c.tar.gz latinime-25b5e627d8b269db165f5edf196def38a664c92c.tar.xz latinime-25b5e627d8b269db165f5edf196def38a664c92c.zip |
Merge "Modularize keyboard XML files"
Diffstat (limited to 'java/res/xml-sw768dp')
-rw-r--r-- | java/res/xml-sw768dp/key_space.xml | 44 | ||||
-rw-r--r-- | java/res/xml-sw768dp/keys_apostrophe_dash.xml | 63 | ||||
-rw-r--r-- | java/res/xml-sw768dp/keys_f1f2.xml | 71 | ||||
-rw-r--r-- | java/res/xml-sw768dp/row_qwerty4.xml | 75 | ||||
-rw-r--r-- | java/res/xml-sw768dp/row_symbols4.xml (renamed from java/res/xml-sw768dp/rows_symbols4.xml) | 0 | ||||
-rw-r--r-- | java/res/xml-sw768dp/row_symbols_shift4.xml (renamed from java/res/xml-sw768dp/rows_symbols_shift4.xml) | 0 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_10_10_7_symbols.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_10_10_7_symbols_shift.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_hebrew.xml | 4 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_symbols.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_symbols_shift.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_thai_symbols.xml | 2 | ||||
-rw-r--r-- | java/res/xml-sw768dp/rows_thai_symbols_shift.xml | 2 |
13 files changed, 131 insertions, 138 deletions
diff --git a/java/res/xml-sw768dp/key_space.xml b/java/res/xml-sw768dp/key_space.xml new file mode 100644 index 000000000..115bcb6bf --- /dev/null +++ b/java/res/xml-sw768dp/key_space.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2012, 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:languageCode="fa" + > + <Key + latin:keyStyle="spaceKeyStyle" + latin:keyXPos="31.250%p" + latin:keyWidth="29.453%p" /> + <!-- U+200C: "" ZERO WIDTH NON-JOINER + U+200D: "" ZERO WIDTH JOINER --> + <Key + latin:keyStyle="zwnjKeyStyle" /> + </case> + <default> + <Key + latin:keyStyle="spaceKeyStyle" + latin:keyXPos="31.250%p" + latin:keyWidth="37.500%p" /> + </default> + </switch> +</merge> diff --git a/java/res/xml-sw768dp/keys_apostrophe_dash.xml b/java/res/xml-sw768dp/keys_apostrophe_dash.xml deleted file mode 100644 index badc6e516..000000000 --- a/java/res/xml-sw768dp/keys_apostrophe_dash.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?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" -> - <switch> - <case - latin:mode="email" - > - <Key - latin:keyLabel="-" /> - </case> - <case - latin:mode="url" - > - <Key - latin:keyLabel="/" - latin:keyHintLabel=":" - latin:moreKeys=":" - latin:keyStyle="hasShiftedLetterHintStyle" /> - </case> - <default> - <Key - latin:keyLabel="!text/keylabel_for_apostrophe" - latin:keyHintLabel="!text/keyhintlabel_for_apostrophe" - latin:moreKeys="!text/more_keys_for_apostrophe" - latin:keyStyle="hasShiftedLetterHintStyle" /> - </default> - </switch> - <switch> - <case - latin:mode="email" - > - <Key - latin:keyLabel="_" /> - </case> - <default> - <Key - latin:keyLabel="!text/keylabel_for_dash" - latin:keyHintLabel="!text/keyhintlabel_for_dash" - latin:moreKeys="!text/more_keys_for_dash" - latin:keyStyle="hasShiftedLetterHintStyle" /> - </default> - </switch> -</merge> diff --git a/java/res/xml-sw768dp/keys_f1f2.xml b/java/res/xml-sw768dp/keys_f1f2.xml new file mode 100644 index 000000000..569703572 --- /dev/null +++ b/java/res/xml-sw768dp/keys_f1f2.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2012, 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:mode="url" + > + <Key + latin:keyStyle="comKeyStyle" + latin:keyWidth="16.084%p" /> + </case> + <default> + <switch> + <case + latin:mode="email" + > + <Key + latin:keyStyle="comKeyStyle" /> + </case> + <case + latin:imeAction="actionSearch" + > + <Key + latin:keyLabel=":" + latin:keyHintLabel="+" + latin:moreKeys="+" + latin:keyStyle="hasShiftedLetterHintStyle" /> + </case> + <default> + <Key + latin:keyStyle="smileyKeyStyle" /> + </default> + </switch> + <switch> + <case + latin:mode="email" + > + <Key + latin:keyLabel="\@" /> + </case> + <default> + <Key + latin:keyLabel="/" + latin:keyHintLabel="\@" + latin:moreKeys="\@" + latin:keyStyle="hasShiftedLetterHintStyle" /> + </default> + </switch> + </default> + </switch> +</merge> diff --git a/java/res/xml-sw768dp/row_qwerty4.xml b/java/res/xml-sw768dp/row_qwerty4.xml index 90da21ba3..f6ad3fd46 100644 --- a/java/res/xml-sw768dp/row_qwerty4.xml +++ b/java/res/xml-sw768dp/row_qwerty4.xml @@ -29,73 +29,10 @@ <Spacer latin:keyXPos="15.157%p" latin:keyWidth="0%p" /> - <switch> - <case - latin:mode="url" - > - <Key - latin:keyStyle="comKeyStyle" - latin:keyWidth="16.084%p" /> - </case> - <default> - <switch> - <case - latin:mode="email" - > - <Key - latin:keyStyle="comKeyStyle" /> - </case> - <case - latin:imeAction="actionSearch" - > - <Key - latin:keyLabel=":" - latin:keyHintLabel="+" - latin:moreKeys="+" - latin:keyStyle="hasShiftedLetterHintStyle" /> - </case> - <default> - <Key - latin:keyStyle="smileyKeyStyle" /> - </default> - </switch> - <switch> - <case - latin:mode="email" - > - <Key - latin:keyLabel="\@" /> - </case> - <default> - <Key - latin:keyLabel="/" - latin:keyHintLabel="\@" - latin:moreKeys="\@" - latin:keyStyle="hasShiftedLetterHintStyle" /> - </default> - </switch> - </default> - </switch> - <switch> - <case - latin:languageCode="fa" - > - <Key - latin:keyStyle="spaceKeyStyle" - latin:keyXPos="31.250%p" - latin:keyWidth="29.453%p" /> - <!-- U+200C: "" ZERO WIDTH NON-JOINER - U+200D: "" ZERO WIDTH JOINER --> - <Key - latin:keyStyle="zwnjKeyStyle" /> - </case> - <default> - <Key - latin:keyStyle="spaceKeyStyle" - latin:keyXPos="31.250%p" - latin:keyWidth="37.500%p" /> - </default> - </switch> + <include + latin:keyboardLayout="@xml/keys_f1f2" /> + <include + latin:keyboardLayout="@xml/key_space" /> <switch> <case latin:languageCode="iw" @@ -105,7 +42,9 @@ </case> <default> <include - latin:keyboardLayout="@xml/keys_apostrophe_dash" /> + latin:keyboardLayout="@xml/key_apostrophe" /> + <include + latin:keyboardLayout="@xml/key_dash" /> </default> </switch> <switch> diff --git a/java/res/xml-sw768dp/rows_symbols4.xml b/java/res/xml-sw768dp/row_symbols4.xml index ecb1259d1..ecb1259d1 100644 --- a/java/res/xml-sw768dp/rows_symbols4.xml +++ b/java/res/xml-sw768dp/row_symbols4.xml diff --git a/java/res/xml-sw768dp/rows_symbols_shift4.xml b/java/res/xml-sw768dp/row_symbols_shift4.xml index 8e0071f63..8e0071f63 100644 --- a/java/res/xml-sw768dp/rows_symbols_shift4.xml +++ b/java/res/xml-sw768dp/row_symbols_shift4.xml diff --git a/java/res/xml-sw768dp/rows_10_10_7_symbols.xml b/java/res/xml-sw768dp/rows_10_10_7_symbols.xml index 1d61d999b..44f096422 100644 --- a/java/res/xml-sw768dp/rows_10_10_7_symbols.xml +++ b/java/res/xml-sw768dp/rows_10_10_7_symbols.xml @@ -65,5 +65,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols4" /> + latin:keyboardLayout="@xml/row_symbols4" /> </merge> diff --git a/java/res/xml-sw768dp/rows_10_10_7_symbols_shift.xml b/java/res/xml-sw768dp/rows_10_10_7_symbols_shift.xml index d22f8331d..bea0d9c18 100644 --- a/java/res/xml-sw768dp/rows_10_10_7_symbols_shift.xml +++ b/java/res/xml-sw768dp/rows_10_10_7_symbols_shift.xml @@ -65,5 +65,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols_shift4" /> + latin:keyboardLayout="@xml/row_symbols_shift4" /> </merge> diff --git a/java/res/xml-sw768dp/rows_hebrew.xml b/java/res/xml-sw768dp/rows_hebrew.xml index 476071a5e..e70f45071 100644 --- a/java/res/xml-sw768dp/rows_hebrew.xml +++ b/java/res/xml-sw768dp/rows_hebrew.xml @@ -31,7 +31,9 @@ latin:keyLabelFlags="alignLeft" latin:keyWidth="7.969%p" /> <include - latin:keyboardLayout="@xml/keys_apostrophe_dash" /> + latin:keyboardLayout="@xml/key_apostrophe" /> + <include + latin:keyboardLayout="@xml/key_dash" /> <include latin:keyboardLayout="@xml/rowkeys_hebrew1" /> <Key diff --git a/java/res/xml-sw768dp/rows_symbols.xml b/java/res/xml-sw768dp/rows_symbols.xml index ed2df18d7..fcc624f2a 100644 --- a/java/res/xml-sw768dp/rows_symbols.xml +++ b/java/res/xml-sw768dp/rows_symbols.xml @@ -65,5 +65,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols4" /> + latin:keyboardLayout="@xml/row_symbols4" /> </merge> diff --git a/java/res/xml-sw768dp/rows_symbols_shift.xml b/java/res/xml-sw768dp/rows_symbols_shift.xml index 30e1df0bf..1d13bb1e9 100644 --- a/java/res/xml-sw768dp/rows_symbols_shift.xml +++ b/java/res/xml-sw768dp/rows_symbols_shift.xml @@ -65,5 +65,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols_shift4" /> + latin:keyboardLayout="@xml/row_symbols_shift4" /> </merge> diff --git a/java/res/xml-sw768dp/rows_thai_symbols.xml b/java/res/xml-sw768dp/rows_thai_symbols.xml index 20f22bc5b..b3f60f5e6 100644 --- a/java/res/xml-sw768dp/rows_thai_symbols.xml +++ b/java/res/xml-sw768dp/rows_thai_symbols.xml @@ -72,5 +72,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols4" /> + latin:keyboardLayout="@xml/row_symbols4" /> </merge> diff --git a/java/res/xml-sw768dp/rows_thai_symbols_shift.xml b/java/res/xml-sw768dp/rows_thai_symbols_shift.xml index 467dd19ad..573e0e37a 100644 --- a/java/res/xml-sw768dp/rows_thai_symbols_shift.xml +++ b/java/res/xml-sw768dp/rows_thai_symbols_shift.xml @@ -72,5 +72,5 @@ latin:keyWidth="fillBoth" /> </Row> <include - latin:keyboardLayout="@xml/rows_symbols_shift4" /> + latin:keyboardLayout="@xml/row_symbols_shift4" /> </merge> |