From e1d3efe52b81119c2bb9a2218fb2025e43838b75 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 31 Jul 2013 12:44:48 +0900 Subject: [PATCH] Fix Catalan keyboard layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Place "ç" (U+00E7) insteand of "ñ" (U+00F1). - Place "L·L" (L/U+00B7/L) instead of "Ŀ" (U+013F) in more keys of "L". - Add "·" (U+00B7) to more keys of "." in main keyboard and "-" in symbols keyboard. Change-Id: I60e4aa6716f8166ca60ab5687b0faf2d84cd846b --- java/res/xml-sw600dp/rowkeys_symbols2.xml | 5 +-- java/res/xml/rowkeys_symbols2.xml | 5 +-- .../keyboard/internal/KeyboardTextsSet.java | 31 ++++++++++++++++--- .../values-ca/donottranslate-more-keys.xml | 9 ++++-- .../values-es/donottranslate-more-keys.xml | 2 ++ .../res/values/donottranslate-more-keys.xml | 3 +- 6 files changed, 43 insertions(+), 12 deletions(-) diff --git a/java/res/xml-sw600dp/rowkeys_symbols2.xml b/java/res/xml-sw600dp/rowkeys_symbols2.xml index 7d7dcfe31..14abb42f9 100644 --- a/java/res/xml-sw600dp/rowkeys_symbols2.xml +++ b/java/res/xml-sw600dp/rowkeys_symbols2.xml @@ -62,10 +62,11 @@ latin:keyLabel="*" latin:moreKeys="!text/more_keys_for_star" /> + U+2014: "—" EM DASH + U+00B7: "·" MIDDLE DOT --> + latin:moreKeys="_,–,—,·" /> diff --git a/java/res/xml/rowkeys_symbols2.xml b/java/res/xml/rowkeys_symbols2.xml index d3c1278da..3e27f1579 100644 --- a/java/res/xml/rowkeys_symbols2.xml +++ b/java/res/xml/rowkeys_symbols2.xml @@ -54,10 +54,11 @@ latin:keyLabel="*" latin:moreKeys="!text/more_keys_for_star" /> + U+2014: "—" EM DASH + U+00B7: "·" MIDDLE DOT --> + latin:moreKeys="_,–,—,·" /> diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java index 7ec1c9406..711cad67d 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.java @@ -371,8 +371,7 @@ public final class KeyboardTextsSet { /* 112 */ "w", /* 113 */ "y", /* 114 */ "x", - // U+00F1: "ñ" LATIN SMALL LETTER N WITH TILDE - /* 115 */ "\u00F1", + /* 115 */ EMPTY, /* 116 */ "!fixedColumnOrder!2,!hasLabels!,!text/label_time_am,!text/label_time_pm", /* 117 */ "!icon/settings_key|!code/key_settings", /* 118 */ "!icon/shortcut_key|!code/key_shortcut", @@ -728,9 +727,28 @@ public final class KeyboardTextsSet { /* 8~ */ null, null, null, null, null, null, /* ~13 */ - // U+0140: "ŀ" LATIN SMALL LETTER L WITH MIDDLE DOT + // U+00B7: "·" MIDDLE DOT // U+0142: "ł" LATIN SMALL LETTER L WITH STROKE - /* 14 */ "\u0140,\u0142", + /* 14 */ "l\u00B7l,\u0142", + /* 15~ */ + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, + /* ~49 */ + // U+00B7: "·" MIDDLE DOT + /* 50 */ "!fixedColumnOrder!9,\u00B7,\",\',#,-,:,!,\\,,?,@,&,\\%,+,;,/,(,)", + /* 51~ */ + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, + null, null, null, null, null, null, null, null, null, + /* ~104 */ + /* 105 */ "?,\u00B7", + /* 106~ */ + null, null, null, null, null, null, null, null, null, + /* ~114 */ + // U+00E7: "ç" LATIN SMALL LETTER C WITH CEDILLA + /* 115 */ "\u00E7", }; /* Language cs: Czech */ @@ -1203,6 +1221,11 @@ public final class KeyboardTextsSet { /* 106 */ "\"", /* 107 */ "\'", /* 108 */ "\'", + /* 109~ */ + null, null, null, null, null, null, + /* ~114 */ + // U+00F1: "ñ" LATIN SMALL LETTER N WITH TILDE + /* 115 */ "\u00F1", }; /* Language et: Estonian */ diff --git a/tools/maketext/res/values-ca/donottranslate-more-keys.xml b/tools/maketext/res/values-ca/donottranslate-more-keys.xml index baa23bf9c..8624dfb65 100644 --- a/tools/maketext/res/values-ca/donottranslate-more-keys.xml +++ b/tools/maketext/res/values-ca/donottranslate-more-keys.xml @@ -67,7 +67,12 @@ U+0107: "ć" LATIN SMALL LETTER C WITH ACUTE U+010D: "č" LATIN SMALL LETTER C WITH CARON --> ç,ć,č - - ŀ,ł + l·l,ł + + "!fixedColumnOrder!9,·,\",\',#,-,:,!,\\,,\?,\@,&,\\%,+,;,/,(,)" + \?,· + + ç diff --git a/tools/maketext/res/values-es/donottranslate-more-keys.xml b/tools/maketext/res/values-es/donottranslate-more-keys.xml index 961193bfa..0e58c1440 100644 --- a/tools/maketext/res/values-es/donottranslate-more-keys.xml +++ b/tools/maketext/res/values-es/donottranslate-more-keys.xml @@ -67,6 +67,8 @@ U+0107: "ć" LATIN SMALL LETTER C WITH ACUTE U+010D: "č" LATIN SMALL LETTER C WITH CARON --> ç,ć,č + + ñ "!fixedColumnOrder!9,¡,\",\',#,-,:,!,\\,,\?,¿,\@,&,\\%,+,;,/,(,)" diff --git a/tools/maketext/res/values/donottranslate-more-keys.xml b/tools/maketext/res/values/donottranslate-more-keys.xml index c2b7513f3..b766b15e5 100644 --- a/tools/maketext/res/values/donottranslate-more-keys.xml +++ b/tools/maketext/res/values/donottranslate-more-keys.xml @@ -177,8 +177,7 @@ w y x - - ñ + !fixedColumnOrder!2,!hasLabels!,\@string/label_time_am,\@string/label_time_pm !icon/settings_key|!code/key_settings !icon/shortcut_key|!code/key_shortcut