From 98565a9c02175ac8b669e88433191a0e22a395e0 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Fri, 6 Sep 2013 15:03:19 +0900 Subject: [PATCH] Optimize tablet layout Bug: 9059539 Change-Id: Ideb6965768fcf092c081eb1d3102312c863cc5b6 --- java/res/xml-sw600dp/kbd_10_10_7_symbols.xml | 27 ------- .../xml-sw600dp/kbd_10_10_7_symbols_shift.xml | 27 ------- .../key_space_symbols.xml} | 7 +- java/res/xml-sw600dp/key_styles_common.xml | 14 ++++ java/res/xml-sw600dp/row_symbols4.xml | 48 ------------ java/res/xml-sw600dp/row_symbols_shift4.xml | 40 ---------- java/res/xml-sw600dp/rowkeys_symbols2.xml | 75 ------------------- java/res/xml-sw600dp/rowkeys_symbols3.xml | 57 -------------- .../xml-sw600dp/rowkeys_symbols_shift1.xml | 56 -------------- .../xml-sw600dp/rowkeys_symbols_shift2.xml | 52 ------------- .../xml-sw600dp/rowkeys_symbols_shift3.xml | 46 ------------ java/res/xml-sw600dp/rows_10_10_7_symbols.xml | 60 --------------- .../rows_10_10_7_symbols_shift.xml | 60 --------------- java/res/xml-sw600dp/rows_symbols.xml | 15 +++- java/res/xml-sw600dp/rows_symbols_shift.xml | 17 ++++- ...ymbols_shift.xml => key_space_symbols.xml} | 7 +- java/res/xml/keyboard_layout_set_azerty.xml | 4 +- java/res/xml/keyboard_layout_set_colemak.xml | 4 +- java/res/xml/keyboard_layout_set_dvorak.xml | 4 +- java/res/xml/keyboard_layout_set_hebrew.xml | 4 +- java/res/xml/keyboard_layout_set_spanish.xml | 4 +- java/res/xml/row_symbols4.xml | 60 +++++++-------- java/res/xml/row_symbols_shift4.xml | 30 +++----- java/res/xml/rowkeys_symbols_shift2.xml | 3 +- java/res/xml/rows_symbols.xml | 11 ++- java/res/xml/rows_symbols_shift.xml | 12 ++- .../keyboard/internal/KeyboardTextsSet.java | 2 +- .../res/values/donottranslate-more-keys.xml | 2 +- 28 files changed, 115 insertions(+), 633 deletions(-) delete mode 100644 java/res/xml-sw600dp/kbd_10_10_7_symbols.xml delete mode 100644 java/res/xml-sw600dp/kbd_10_10_7_symbols_shift.xml rename java/res/{xml/kbd_10_10_7_symbols.xml => xml-sw600dp/key_space_symbols.xml} (82%) delete mode 100644 java/res/xml-sw600dp/row_symbols4.xml delete mode 100644 java/res/xml-sw600dp/row_symbols_shift4.xml delete mode 100644 java/res/xml-sw600dp/rowkeys_symbols2.xml delete mode 100644 java/res/xml-sw600dp/rowkeys_symbols3.xml delete mode 100644 java/res/xml-sw600dp/rowkeys_symbols_shift1.xml delete mode 100644 java/res/xml-sw600dp/rowkeys_symbols_shift2.xml delete mode 100644 java/res/xml-sw600dp/rowkeys_symbols_shift3.xml delete mode 100644 java/res/xml-sw600dp/rows_10_10_7_symbols.xml delete mode 100644 java/res/xml-sw600dp/rows_10_10_7_symbols_shift.xml rename java/res/xml/{kbd_10_10_7_symbols_shift.xml => key_space_symbols.xml} (82%) diff --git a/java/res/xml-sw600dp/kbd_10_10_7_symbols.xml b/java/res/xml-sw600dp/kbd_10_10_7_symbols.xml deleted file mode 100644 index dd545b5ef..000000000 --- a/java/res/xml-sw600dp/kbd_10_10_7_symbols.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - diff --git a/java/res/xml-sw600dp/kbd_10_10_7_symbols_shift.xml b/java/res/xml-sw600dp/kbd_10_10_7_symbols_shift.xml deleted file mode 100644 index c36f0097e..000000000 --- a/java/res/xml-sw600dp/kbd_10_10_7_symbols_shift.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - diff --git a/java/res/xml/kbd_10_10_7_symbols.xml b/java/res/xml-sw600dp/key_space_symbols.xml similarity index 82% rename from java/res/xml/kbd_10_10_7_symbols.xml rename to java/res/xml-sw600dp/key_space_symbols.xml index 4d9861b73..07aa7d179 100644 --- a/java/res/xml/kbd_10_10_7_symbols.xml +++ b/java/res/xml-sw600dp/key_space_symbols.xml @@ -18,10 +18,9 @@ */ --> - - + latin:keyboardLayout="@xml/key_space_5kw" /> + diff --git a/java/res/xml-sw600dp/key_styles_common.xml b/java/res/xml-sw600dp/key_styles_common.xml index e2e751f68..d817add11 100644 --- a/java/res/xml-sw600dp/key_styles_common.xml +++ b/java/res/xml-sw600dp/key_styles_common.xml @@ -21,6 +21,20 @@ + + + + + + + + - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/row_symbols_shift4.xml b/java/res/xml-sw600dp/row_symbols_shift4.xml deleted file mode 100644 index 311131eca..000000000 --- a/java/res/xml-sw600dp/row_symbols_shift4.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_symbols2.xml b/java/res/xml-sw600dp/rowkeys_symbols2.xml deleted file mode 100644 index 14abb42f9..000000000 --- a/java/res/xml-sw600dp/rowkeys_symbols2.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_symbols3.xml b/java/res/xml-sw600dp/rowkeys_symbols3.xml deleted file mode 100644 index 30fba3812..000000000 --- a/java/res/xml-sw600dp/rowkeys_symbols3.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_symbols_shift1.xml b/java/res/xml-sw600dp/rowkeys_symbols_shift1.xml deleted file mode 100644 index 3549fdda4..000000000 --- a/java/res/xml-sw600dp/rowkeys_symbols_shift1.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_symbols_shift2.xml b/java/res/xml-sw600dp/rowkeys_symbols_shift2.xml deleted file mode 100644 index 2048b7335..000000000 --- a/java/res/xml-sw600dp/rowkeys_symbols_shift2.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rowkeys_symbols_shift3.xml b/java/res/xml-sw600dp/rowkeys_symbols_shift3.xml deleted file mode 100644 index 8bd865639..000000000 --- a/java/res/xml-sw600dp/rowkeys_symbols_shift3.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_10_10_7_symbols.xml b/java/res/xml-sw600dp/rows_10_10_7_symbols.xml deleted file mode 100644 index 0e4710c37..000000000 --- a/java/res/xml-sw600dp/rows_10_10_7_symbols.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_10_10_7_symbols_shift.xml b/java/res/xml-sw600dp/rows_10_10_7_symbols_shift.xml deleted file mode 100644 index 3d3b59f22..000000000 --- a/java/res/xml-sw600dp/rows_10_10_7_symbols_shift.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/java/res/xml-sw600dp/rows_symbols.xml b/java/res/xml-sw600dp/rows_symbols.xml index 3d0593dab..fbd8492cd 100644 --- a/java/res/xml-sw600dp/rows_symbols.xml +++ b/java/res/xml-sw600dp/rows_symbols.xml @@ -50,12 +50,23 @@ + + - + + + + diff --git a/java/res/xml-sw600dp/rows_symbols_shift.xml b/java/res/xml-sw600dp/rows_symbols_shift.xml index 0050c0c15..aad047ff6 100644 --- a/java/res/xml-sw600dp/rows_symbols_shift.xml +++ b/java/res/xml-sw600dp/rows_symbols_shift.xml @@ -52,10 +52,23 @@ latin:keyWidth="10.0%p" /> + + + + - + + + + diff --git a/java/res/xml/kbd_10_10_7_symbols_shift.xml b/java/res/xml/key_space_symbols.xml similarity index 82% rename from java/res/xml/kbd_10_10_7_symbols_shift.xml rename to java/res/xml/key_space_symbols.xml index a2d67caf4..1efc4ff4e 100644 --- a/java/res/xml/kbd_10_10_7_symbols_shift.xml +++ b/java/res/xml/key_space_symbols.xml @@ -18,10 +18,9 @@ */ --> - - + latin:keyboardLayout="@xml/key_space_3kw" /> + diff --git a/java/res/xml/keyboard_layout_set_azerty.xml b/java/res/xml/keyboard_layout_set_azerty.xml index 4d144edbc..38797f91a 100644 --- a/java/res/xml/keyboard_layout_set_azerty.xml +++ b/java/res/xml/keyboard_layout_set_azerty.xml @@ -26,10 +26,10 @@ latin:enableProximityCharsCorrection="true" /> + latin:elementKeyboard="@xml/kbd_symbols" /> + latin:elementKeyboard="@xml/kbd_symbols_shift" /> diff --git a/java/res/xml/keyboard_layout_set_colemak.xml b/java/res/xml/keyboard_layout_set_colemak.xml index c18f13225..3061872a8 100644 --- a/java/res/xml/keyboard_layout_set_colemak.xml +++ b/java/res/xml/keyboard_layout_set_colemak.xml @@ -26,10 +26,10 @@ latin:enableProximityCharsCorrection="true" /> + latin:elementKeyboard="@xml/kbd_symbols" /> + latin:elementKeyboard="@xml/kbd_symbols_shift" /> diff --git a/java/res/xml/keyboard_layout_set_dvorak.xml b/java/res/xml/keyboard_layout_set_dvorak.xml index eb8e0c539..31aeec525 100644 --- a/java/res/xml/keyboard_layout_set_dvorak.xml +++ b/java/res/xml/keyboard_layout_set_dvorak.xml @@ -26,10 +26,10 @@ latin:enableProximityCharsCorrection="true" /> + latin:elementKeyboard="@xml/kbd_symbols" /> + latin:elementKeyboard="@xml/kbd_symbols_shift" /> diff --git a/java/res/xml/keyboard_layout_set_hebrew.xml b/java/res/xml/keyboard_layout_set_hebrew.xml index 212816dfe..d5b25b36c 100644 --- a/java/res/xml/keyboard_layout_set_hebrew.xml +++ b/java/res/xml/keyboard_layout_set_hebrew.xml @@ -26,10 +26,10 @@ latin:enableProximityCharsCorrection="true" /> + latin:elementKeyboard="@xml/kbd_symbols" /> + latin:elementKeyboard="@xml/kbd_symbols_shift" /> diff --git a/java/res/xml/keyboard_layout_set_spanish.xml b/java/res/xml/keyboard_layout_set_spanish.xml index 57cef5234..c454de3b4 100644 --- a/java/res/xml/keyboard_layout_set_spanish.xml +++ b/java/res/xml/keyboard_layout_set_spanish.xml @@ -26,10 +26,10 @@ latin:enableProximityCharsCorrection="true" /> + latin:elementKeyboard="@xml/kbd_symbols" /> + latin:elementKeyboard="@xml/kbd_symbols_shift" /> diff --git a/java/res/xml/row_symbols4.xml b/java/res/xml/row_symbols4.xml index 72be06d6e..0bf412fff 100644 --- a/java/res/xml/row_symbols4.xml +++ b/java/res/xml/row_symbols4.xml @@ -18,39 +18,29 @@ */ --> - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/java/res/xml/row_symbols_shift4.xml b/java/res/xml/row_symbols_shift4.xml index 9b71f6aa4..57a2ec09c 100644 --- a/java/res/xml/row_symbols_shift4.xml +++ b/java/res/xml/row_symbols_shift4.xml @@ -17,25 +17,15 @@ ** limitations under the License. */ --> + + + + + + + - - - - - - - - diff --git a/java/res/xml/rowkeys_symbols_shift2.xml b/java/res/xml/rowkeys_symbols_shift2.xml index fc84355a5..36f92143f 100644 --- a/java/res/xml/rowkeys_symbols_shift2.xml +++ b/java/res/xml/rowkeys_symbols_shift2.xml @@ -22,8 +22,7 @@ xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" > + latin:keyStyle="moreCurrency1KeyStyle" /> - + + + + diff --git a/java/res/xml/rows_symbols_shift.xml b/java/res/xml/rows_symbols_shift.xml index 9c03d90b5..45ada2a61 100644 --- a/java/res/xml/rows_symbols_shift.xml +++ b/java/res/xml/rows_symbols_shift.xml @@ -35,6 +35,7 @@ latin:keyWidth="10%p" > - + + + + diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java index 845cd282d..7008b0619 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java @@ -383,7 +383,7 @@ public final class KeyboardTextsSet { // Label for "switch to more symbol" modifier key. Must be short to fit on key! /* 124 */ "= \\ <", // Label for "switch to more symbol" modifier key on tablets. Must be short to fit on key! - /* 125 */ "~ \\ {", + /* 125 */ "~ [ {", // Label for "Tab" key. Must be short to fit on key! /* 126 */ "Tab", // Label for "switch to phone numeric" key. Must be short to fit on key! 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 107f57b66..a4c2f126d 100644 --- a/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml +++ b/tools/make-keyboard-text/res/values/donottranslate-more-keys.xml @@ -190,7 +190,7 @@ = \\ < - ~ \\ { + ~ [ { Tab