From 7f28b3cc6ab60becff1c9ad98e65c24767899ebe Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 23 Aug 2013 22:28:26 +0900 Subject: [PATCH] Clean up PC QWERTY keyboard Change-Id: Ibb52683e8f27517b9e7bf398d3b7a31215bd5a8d --- .../res/xml-sw600dp/keys_pcqwerty2_right3.xml | 32 ++-- .../res/xml-sw600dp/keys_pcqwerty3_right2.xml | 25 +-- .../res/xml-sw600dp/keys_pcqwerty4_right3.xml | 44 ++--- java/res/xml-sw600dp/row_pcqwerty5.xml | 22 ++- java/res/xml-sw600dp/rowkeys_pcqwerty1.xml | 172 +++++++++--------- java/res/xml-sw600dp/rows_pcqwerty.xml | 19 +- .../res/xml-sw600dp/rows_pcqwerty_symbols.xml | 65 ------- java/res/xml-sw768dp/row_pcqwerty5.xml | 42 ++--- java/res/xml-sw768dp/rows_pcqwerty.xml | 19 +- .../res/xml-sw768dp/rows_pcqwerty_symbols.xml | 65 ------- java/res/xml/kbd_pcqwerty_symbols.xml | 31 ---- java/res/xml/keyboard_layout_set_pcqwerty.xml | 3 - java/res/xml/keys_pcqwerty2_right3.xml | 13 +- java/res/xml/keys_pcqwerty3_right2.xml | 7 +- java/res/xml/keys_pcqwerty4_right3.xml | 13 +- java/res/xml/keys_pcqwerty_symbols2.xml | 59 ------ java/res/xml/keys_pcqwerty_symbols3.xml | 54 ------ java/res/xml/keys_pcqwerty_symbols4.xml | 49 ----- java/res/xml/row_pcqwerty5.xml | 55 +++--- java/res/xml/rowkeys_pcqwerty1.xml | 120 ++++++------ ...mbols1.xml => rowkeys_pcqwerty1_shift.xml} | 23 ++- java/res/xml/rowkeys_pcqwerty2.xml | 20 +- java/res/xml/rowkeys_pcqwerty3.xml | 18 +- java/res/xml/rowkeys_pcqwerty4.xml | 18 +- java/res/xml/rows_pcqwerty.xml | 15 +- java/res/xml/rows_pcqwerty_symbols.xml | 58 ------ .../keyboard/internal/KeyboardTextsSet.java | 75 ++++---- .../res/values/donottranslate-more-keys.xml | 2 - 28 files changed, 366 insertions(+), 772 deletions(-) delete mode 100644 java/res/xml-sw600dp/rows_pcqwerty_symbols.xml delete mode 100644 java/res/xml-sw768dp/rows_pcqwerty_symbols.xml delete mode 100644 java/res/xml/kbd_pcqwerty_symbols.xml delete mode 100644 java/res/xml/keys_pcqwerty_symbols2.xml delete mode 100644 java/res/xml/keys_pcqwerty_symbols3.xml delete mode 100644 java/res/xml/keys_pcqwerty_symbols4.xml rename java/res/xml/{keys_pcqwerty_symbols1.xml => rowkeys_pcqwerty1_shift.xml} (64%) delete mode 100644 java/res/xml/rows_pcqwerty_symbols.xml diff --git a/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml b/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml index 1db6c350f..324e025ed 100644 --- a/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml +++ b/java/res/xml-sw600dp/keys_pcqwerty2_right3.xml @@ -23,36 +23,32 @@ > - - - - - - - + + + + + + - + \ No newline at end of file diff --git a/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml b/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml index b3882b6a1..254b5e571 100644 --- a/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml +++ b/java/res/xml-sw600dp/keys_pcqwerty3_right2.xml @@ -23,26 +23,27 @@ > - - - - + latin:additionalMoreKeys=""" + latin:keyStyle="hasShiftedLetterHintStyle" + latin:moreKeys="!fixedColumnOrder!4,!text/double_quotes,%,!text/single_quotes" /> + + + + + diff --git a/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml b/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml index 13e95f53c..774ff8d05 100644 --- a/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml +++ b/java/res/xml-sw600dp/keys_pcqwerty4_right3.xml @@ -23,28 +23,26 @@ > - - + latin:keyStyle="hasShiftedLetterHintStyle" /> - + latin:keyStyle="hasShiftedLetterHintStyle" /> + latin:keyStyle="hasShiftedLetterHintStyle" + latin:moreKeys="!text/more_keys_for_symbols_question" /> + + latin:keyLabel="<" + latin:moreKeys="!fixedColumnOrder!3,‹,≤,«" /> - + latin:keyLabel=">" + latin:moreKeys="!fixedColumnOrder!3,›,≥,»" /> + latin:keyLabel="\?" + latin:moreKeys="!text/more_keys_for_symbols_question" /> diff --git a/java/res/xml-sw600dp/row_pcqwerty5.xml b/java/res/xml-sw600dp/row_pcqwerty5.xml index 3c4a46660..a79d2a87f 100644 --- a/java/res/xml-sw600dp/row_pcqwerty5.xml +++ b/java/res/xml-sw600dp/row_pcqwerty5.xml @@ -38,9 +38,23 @@ latin:keyStyle="spaceKeyStyle" latin:keyXPos="25.5%p" latin:keyWidth="49.0%p" /> - + + + + + + + + + diff --git a/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml b/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml index d36582a29..254d3fdba 100644 --- a/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml +++ b/java/res/xml-sw600dp/rowkeys_pcqwerty1.xml @@ -21,93 +21,87 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/java/res/xml-sw600dp/rows_pcqwerty.xml b/java/res/xml-sw600dp/rows_pcqwerty.xml index fa6080a19..8714815ef 100644 --- a/java/res/xml-sw600dp/rows_pcqwerty.xml +++ b/java/res/xml-sw600dp/rows_pcqwerty.xml @@ -26,8 +26,19 @@ - + + + + + + + + + @@ -44,9 +55,7 @@ - diff --git a/java/res/xml-sw600dp/rows_pcqwerty_symbols.xml b/java/res/xml-sw600dp/rows_pcqwerty_symbols.xml deleted file mode 100644 index e64270449..000000000 --- a/java/res/xml-sw600dp/rows_pcqwerty_symbols.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw768dp/row_pcqwerty5.xml b/java/res/xml-sw768dp/row_pcqwerty5.xml index e395b66f7..6bfd6463a 100644 --- a/java/res/xml-sw768dp/row_pcqwerty5.xml +++ b/java/res/xml-sw768dp/row_pcqwerty5.xml @@ -24,36 +24,34 @@ - - - - + latin:keyStyle="languageSwitchKeyStyle" + latin:backgroundType="functional" /> - - - - + + + + + + + + + diff --git a/java/res/xml-sw768dp/rows_pcqwerty.xml b/java/res/xml-sw768dp/rows_pcqwerty.xml index a8447288f..5f721a224 100644 --- a/java/res/xml-sw768dp/rows_pcqwerty.xml +++ b/java/res/xml-sw768dp/rows_pcqwerty.xml @@ -26,8 +26,19 @@ - + + + + + + + + + @@ -44,9 +55,7 @@ - diff --git a/java/res/xml-sw768dp/rows_pcqwerty_symbols.xml b/java/res/xml-sw768dp/rows_pcqwerty_symbols.xml deleted file mode 100644 index 45736e6f5..000000000 --- a/java/res/xml-sw768dp/rows_pcqwerty_symbols.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml/kbd_pcqwerty_symbols.xml b/java/res/xml/kbd_pcqwerty_symbols.xml deleted file mode 100644 index bfb39e8aa..000000000 --- a/java/res/xml/kbd_pcqwerty_symbols.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - diff --git a/java/res/xml/keyboard_layout_set_pcqwerty.xml b/java/res/xml/keyboard_layout_set_pcqwerty.xml index bffba05b7..67fbd9159 100644 --- a/java/res/xml/keyboard_layout_set_pcqwerty.xml +++ b/java/res/xml/keyboard_layout_set_pcqwerty.xml @@ -24,9 +24,6 @@ latin:elementName="alphabet" latin:elementKeyboard="@xml/kbd_pcqwerty" latin:enableProximityCharsCorrection="true" /> - diff --git a/java/res/xml/keys_pcqwerty2_right3.xml b/java/res/xml/keys_pcqwerty2_right3.xml index 2065e6b46..6f86477da 100644 --- a/java/res/xml/keys_pcqwerty2_right3.xml +++ b/java/res/xml/keys_pcqwerty2_right3.xml @@ -27,25 +27,22 @@ > + latin:additionalMoreKeys="{" /> - + latin:additionalMoreKeys="}" /> + latin:additionalMoreKeys="\\|" /> - + - + latin:keyLabel="|" /> diff --git a/java/res/xml/keys_pcqwerty3_right2.xml b/java/res/xml/keys_pcqwerty3_right2.xml index aa150afb3..8da145b20 100644 --- a/java/res/xml/keys_pcqwerty3_right2.xml +++ b/java/res/xml/keys_pcqwerty3_right2.xml @@ -27,12 +27,13 @@ > + latin:additionalMoreKeys=":" /> + latin:additionalMoreKeys=""" + latin:moreKeys="!fixedColumnOrder!4,!text/double_quotes,%,!text/single_quotes" /> - + diff --git a/java/res/xml/keys_pcqwerty4_right3.xml b/java/res/xml/keys_pcqwerty4_right3.xml index 7795b3d8b..e6084cb45 100644 --- a/java/res/xml/keys_pcqwerty4_right3.xml +++ b/java/res/xml/keys_pcqwerty4_right3.xml @@ -27,16 +27,16 @@ > + latin:additionalMoreKeys="<" /> - + latin:additionalMoreKeys=">" /> + latin:additionalMoreKeys="\?" + latin:moreKeys="!text/more_keys_for_symbols_question" /> - + + latin:moreKeys="!text/more_keys_for_symbols_question" /> diff --git a/java/res/xml/keys_pcqwerty_symbols2.xml b/java/res/xml/keys_pcqwerty_symbols2.xml deleted file mode 100644 index d0ea984e8..000000000 --- a/java/res/xml/keys_pcqwerty_symbols2.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml/keys_pcqwerty_symbols3.xml b/java/res/xml/keys_pcqwerty_symbols3.xml deleted file mode 100644 index 35279deaf..000000000 --- a/java/res/xml/keys_pcqwerty_symbols3.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml/keys_pcqwerty_symbols4.xml b/java/res/xml/keys_pcqwerty_symbols4.xml deleted file mode 100644 index 3c628f0e0..000000000 --- a/java/res/xml/keys_pcqwerty_symbols4.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml/row_pcqwerty5.xml b/java/res/xml/row_pcqwerty5.xml index 7fbcd8ed1..0e618059e 100644 --- a/java/res/xml/row_pcqwerty5.xml +++ b/java/res/xml/row_pcqwerty5.xml @@ -24,36 +24,23 @@ - - - - - - - - - + - + latin:keyStyle="shortcutKeyStyle" + latin:keyWidth="11.538%p" /> + - + latin:keyStyle="settingsKeyStyle" + latin:keyWidth="11.538%p" /> + + latin:keyWidth="11.538%p" /> - + latin:keyWidth="42.310%p" /> + + latin:keyWidth="53.848%p" /> + latin:keyStyle="defaultEnterKeyStyle" + latin:keyWidth="15.384%p" /> + + + + + + + + + diff --git a/java/res/xml/rowkeys_pcqwerty1.xml b/java/res/xml/rowkeys_pcqwerty1.xml index 2822d922a..de548d0ba 100644 --- a/java/res/xml/rowkeys_pcqwerty1.xml +++ b/java/res/xml/rowkeys_pcqwerty1.xml @@ -21,67 +21,61 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/java/res/xml/keys_pcqwerty_symbols1.xml b/java/res/xml/rowkeys_pcqwerty1_shift.xml similarity index 64% rename from java/res/xml/keys_pcqwerty_symbols1.xml rename to java/res/xml/rowkeys_pcqwerty1_shift.xml index 2364e1087..bc39f944e 100644 --- a/java/res/xml/keys_pcqwerty_symbols1.xml +++ b/java/res/xml/rowkeys_pcqwerty1_shift.xml @@ -21,37 +21,40 @@ - - + latin:keyLabel="~" /> + latin:additionalMoreKeys="!text/more_keys_for_symbols_exclamation" /> - + latin:keyLabel="$" + latin:additionalMoreKeys="!text/more_keys_for_currency_dollar" /> + latin:additionalMoreKeys="!text/more_keys_for_symbols_percent" /> + latin:additionalMoreKeys="!text/more_keys_for_star" /> + + latin:keyLabel="+" + latin:additionalMoreKeys="!text/more_keys_for_plus" + latin:moreKeys="±,×,÷,√" /> diff --git a/java/res/xml/rowkeys_pcqwerty2.xml b/java/res/xml/rowkeys_pcqwerty2.xml index 2dfb653b2..8db704d71 100644 --- a/java/res/xml/rowkeys_pcqwerty2.xml +++ b/java/res/xml/rowkeys_pcqwerty2.xml @@ -21,21 +21,11 @@ - - - - - - - - - + + diff --git a/java/res/xml/rowkeys_pcqwerty3.xml b/java/res/xml/rowkeys_pcqwerty3.xml index eca336264..ad122d30c 100644 --- a/java/res/xml/rowkeys_pcqwerty3.xml +++ b/java/res/xml/rowkeys_pcqwerty3.xml @@ -21,20 +21,10 @@ - - - - - - - - - + + diff --git a/java/res/xml/rowkeys_pcqwerty4.xml b/java/res/xml/rowkeys_pcqwerty4.xml index f00baeb6f..b558f4142 100644 --- a/java/res/xml/rowkeys_pcqwerty4.xml +++ b/java/res/xml/rowkeys_pcqwerty4.xml @@ -21,20 +21,10 @@ - - - - - - - - - + + diff --git a/java/res/xml/rows_pcqwerty.xml b/java/res/xml/rows_pcqwerty.xml index a5ed74518..884698963 100644 --- a/java/res/xml/rows_pcqwerty.xml +++ b/java/res/xml/rows_pcqwerty.xml @@ -26,8 +26,19 @@ - + + + + + + + + + - - - - - - - - - - - - - - - - - - - diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java index 507080db4..c6d652c0e 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java @@ -231,25 +231,24 @@ public final class KeyboardTextsSet { /* 126 */ "label_to_phone_symbols_key", /* 127 */ "label_time_am", /* 128 */ "label_time_pm", - /* 129 */ "label_to_symbol_key_pcqwerty", - /* 130 */ "keylabel_for_popular_domain", - /* 131 */ "more_keys_for_popular_domain", - /* 132 */ "more_keys_for_smiley", - /* 133 */ "single_laqm_raqm", - /* 134 */ "single_laqm_raqm_rtl", - /* 135 */ "single_raqm_laqm", - /* 136 */ "double_laqm_raqm", - /* 137 */ "double_laqm_raqm_rtl", - /* 138 */ "double_raqm_laqm", - /* 139 */ "single_lqm_rqm", - /* 140 */ "single_9qm_lqm", - /* 141 */ "single_9qm_rqm", - /* 142 */ "double_lqm_rqm", - /* 143 */ "double_9qm_lqm", - /* 144 */ "double_9qm_rqm", - /* 145 */ "more_keys_for_single_quote", - /* 146 */ "more_keys_for_double_quote", - /* 147 */ "more_keys_for_tablet_double_quote", + /* 129 */ "keylabel_for_popular_domain", + /* 130 */ "more_keys_for_popular_domain", + /* 131 */ "more_keys_for_smiley", + /* 132 */ "single_laqm_raqm", + /* 133 */ "single_laqm_raqm_rtl", + /* 134 */ "single_raqm_laqm", + /* 135 */ "double_laqm_raqm", + /* 136 */ "double_laqm_raqm_rtl", + /* 137 */ "double_raqm_laqm", + /* 138 */ "single_lqm_rqm", + /* 139 */ "single_9qm_lqm", + /* 140 */ "single_9qm_rqm", + /* 141 */ "double_lqm_rqm", + /* 142 */ "double_9qm_lqm", + /* 143 */ "double_9qm_rqm", + /* 144 */ "more_keys_for_single_quote", + /* 145 */ "more_keys_for_double_quote", + /* 146 */ "more_keys_for_tablet_double_quote", }; private static final String EMPTY = ""; @@ -389,12 +388,10 @@ public final class KeyboardTextsSet { /* 127 */ "AM", // Key label for "post meridiem" /* 128 */ "PM", - // Label for "switch to symbols" key on PC QWERTY layout - /* 129 */ "Sym", - /* 130 */ ".com", + /* 129 */ ".com", // popular web domains for the locale - most popular, displayed on the keyboard - /* 131 */ "!hasLabels!,.net,.org,.gov,.edu", - /* 132 */ "!fixedColumnOrder!5,!hasLabels!,=-O|=-O ,:-P|:-P ,;-)|;-) ,:-(|:-( ,:-)|:-) ,:-!|:-! ,:-$|:-$ ,B-)|B-) ,:O|:O ,:-*|:-* ,:-D|:-D ,:\'(|:\'( ,:-\\\\|:-\\\\ ,O:-)|O:-) ,:-[|:-[ ", + /* 130 */ "!hasLabels!,.net,.org,.gov,.edu", + /* 131 */ "!fixedColumnOrder!5,!hasLabels!,=-O|=-O ,:-P|:-P ,;-)|;-) ,:-(|:-( ,:-)|:-) ,:-!|:-! ,:-$|:-$ ,B-)|B-) ,:O|:O ,:-*|:-* ,:-D|:-D ,:\'(|:\'( ,:-\\\\|:-\\\\ ,O:-)|O:-) ,:-[|:-[ ", // U+2039: "‹" SINGLE LEFT-POINTING ANGLE QUOTATION MARK // U+203A: "›" SINGLE RIGHT-POINTING ANGLE QUOTATION MARK // U+00AB: "«" LEFT-POINTING DOUBLE ANGLE QUOTATION MARK @@ -416,24 +413,24 @@ public final class KeyboardTextsSet { // The following each quotation mark pair consist of // , // and is named after (single|double)__. - /* 133 */ "\u2039,\u203A", - /* 134 */ "\u2039|\u203A,\u203A|\u2039", - /* 135 */ "\u203A,\u2039", - /* 136 */ "\u00AB,\u00BB", - /* 137 */ "\u00AB|\u00BB,\u00BB|\u00AB", - /* 138 */ "\u00BB,\u00AB", + /* 132 */ "\u2039,\u203A", + /* 133 */ "\u2039|\u203A,\u203A|\u2039", + /* 134 */ "\u203A,\u2039", + /* 135 */ "\u00AB,\u00BB", + /* 136 */ "\u00AB|\u00BB,\u00BB|\u00AB", + /* 137 */ "\u00BB,\u00AB", // The following each quotation mark triplet consists of // , , // and is named after (single|double)__. - /* 139 */ "\u201A,\u2018,\u2019", - /* 140 */ "\u2019,\u201A,\u2018", - /* 141 */ "\u2018,\u201A,\u2019", - /* 142 */ "\u201E,\u201C,\u201D", - /* 143 */ "\u201D,\u201E,\u201C", - /* 144 */ "\u201C,\u201E,\u201D", - /* 145 */ "!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes", - /* 146 */ "!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes", - /* 147 */ "!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes", + /* 138 */ "\u201A,\u2018,\u2019", + /* 139 */ "\u2019,\u201A,\u2018", + /* 140 */ "\u2018,\u201A,\u2019", + /* 141 */ "\u201E,\u201C,\u201D", + /* 142 */ "\u201D,\u201E,\u201C", + /* 143 */ "\u201C,\u201E,\u201D", + /* 144 */ "!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes", + /* 145 */ "!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes", + /* 146 */ "!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes", }; /* Language af: Afrikaans */ diff --git a/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml b/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml index fa9739b2d..66172bd25 100644 --- a/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml +++ b/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml @@ -197,8 +197,6 @@ "AM" "PM" - - Sym ".com" "!hasLabels!,.net,.org,.gov,.edu"