Fix issues with Nepali layouts

- Added the missing ZWNJ/ZWJ key
- Fix a wrong letter in the shift layout of Nepali Romaized layout
- Put the currency symbol for Nepalese Rupee
- Fix the missing 2nd symbols layout
- Use the Devanagari numbers just like Hindi layout
- Fix the Main/Symbols switch key label just like Hindi layout

bug: 6910787
bug: 9833890
Change-Id: Ie6aa5a06008f1e9347d4fc08ededd48287df5d73
main
Ken Wakasa 2013-09-16 02:08:51 +09:00
parent e429dcfd98
commit 0f317a5603
7 changed files with 132 additions and 4 deletions

View File

@ -23,7 +23,7 @@
> >
<switch> <switch>
<case <case
latin:languageCode="fa" latin:languageCode="fa|ne"
latin:languageSwitchKeyEnabled="true" latin:languageSwitchKeyEnabled="true"
> >
<Key <Key
@ -35,7 +35,7 @@
latin:keyStyle="zwnjKeyStyle" /> latin:keyStyle="zwnjKeyStyle" />
</case> </case>
<case <case
latin:languageCode="fa" latin:languageCode="fa|ne"
latin:languageSwitchKeyEnabled="false" latin:languageSwitchKeyEnabled="false"
> >
<Key <Key

View File

@ -97,13 +97,14 @@
iw: Hebrew (New Sheqel) iw: Hebrew (New Sheqel)
lo: Lao (Kip) lo: Lao (Kip)
mn: Mongolian (Tugrik) mn: Mongolian (Tugrik)
ne: Nepali (Nepalese Rupee)
th: Thai (Baht) th: Thai (Baht)
uk: Ukrainian (Hryvnia) uk: Ukrainian (Hryvnia)
vi: Vietnamese (Dong) --> vi: Vietnamese (Dong) -->
<!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
its unicode, although there is no font glyph for it as of November 2012. --> its unicode, although there is no font glyph for it as of November 2012. -->
<case <case
latin:languageCode="fa|hi|iw|lo|mn|th|uk|vi" latin:languageCode="fa|hi|iw|lo|mn|ne|th|uk|vi"
> >
<!-- U+00A3: "£" POUND SIGN <!-- U+00A3: "£" POUND SIGN
U+20AC: "€" EURO SIGN U+20AC: "€" EURO SIGN

View File

@ -43,6 +43,9 @@
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />
<Element
latin:elementName="symbolsShifted"
latin:elementKeyboard="@xml/kbd_symbols_shift" />
<Element <Element
latin:elementName="phone" latin:elementName="phone"
latin:elementKeyboard="@xml/kbd_phone" /> latin:elementKeyboard="@xml/kbd_phone" />

View File

@ -43,6 +43,9 @@
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />
<Element
latin:elementName="symbolsShifted"
latin:elementKeyboard="@xml/kbd_symbols_shift" />
<Element <Element
latin:elementName="phone" latin:elementName="phone"
latin:elementKeyboard="@xml/kbd_phone" /> latin:elementKeyboard="@xml/kbd_phone" />

View File

@ -48,7 +48,7 @@
latin:keyLabelFlags="fontNormal" /> latin:keyLabelFlags="fontNormal" />
<!-- U+0923: "ण" DEVANAGARI LETTER NNA --> <!-- U+0923: "ण" DEVANAGARI LETTER NNA -->
<Key <Key
latin:keyLabel="&#x0936;" latin:keyLabel="&#x0923;"
latin:keyLabelFlags="fontNormal" /> latin:keyLabelFlags="fontNormal" />
<!-- Because the font rendering system prior to API version 16 can't automatically <!-- Because the font rendering system prior to API version 16 can't automatically
render dotted circle for incomplete combining letter of some scripts, different render dotted circle for incomplete combining letter of some scripts, different

View File

@ -2366,6 +2366,63 @@ public final class KeyboardTextsSet {
/* 47 */ "!text/double_9qm_rqm", /* 47 */ "!text/double_9qm_rqm",
}; };
/* Language ne: Nepali */
private static final String[] LANGUAGE_ne = {
/* 0~ */
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,
/* ~44 */
// Label for "switch to alphabetic" key.
// U+0915: "क" DEVANAGARI LETTER KA
// U+0916: "ख" DEVANAGARI LETTER KHA
// U+0917: "ग" DEVANAGARI LETTER GA
/* 45 */ "\u0915\u0916\u0917",
/* 46~ */
null, null, null, null, null,
/* ~50 */
// U+0930/U+0941/U+002E "रु." NEPALESE RUPEE SIGN
/* 51 */ "\u0930\u0941.",
/* 52~ */
null, null, null, null, null, null, null, null, null, null, null,
/* ~62 */
// U+0967: "१" DEVANAGARI DIGIT ONE
/* 63 */ "\u0967",
// U+0968: "२" DEVANAGARI DIGIT TWO
/* 64 */ "\u0968",
// U+0969: "३" DEVANAGARI DIGIT THREE
/* 65 */ "\u0969",
// U+096A: "४" DEVANAGARI DIGIT FOUR
/* 66 */ "\u096A",
// U+096B: "५" DEVANAGARI DIGIT FIVE
/* 67 */ "\u096B",
// U+096C: "६" DEVANAGARI DIGIT SIX
/* 68 */ "\u096C",
// U+096D: "७" DEVANAGARI DIGIT SEVEN
/* 69 */ "\u096D",
// U+096E: "८" DEVANAGARI DIGIT EIGHT
/* 70 */ "\u096E",
// U+096F: "९" DEVANAGARI DIGIT NINE
/* 71 */ "\u096F",
// U+0966: "" DEVANAGARI DIGIT ZERO
/* 72 */ "\u0966",
// Label for "switch to symbols" key.
/* 73 */ "?\u0967\u0968\u0969",
// Label for "switch to symbols with microphone" key. This string shouldn't include the "mic"
// part because it'll be appended by the code.
/* 74 */ "\u0967\u0968\u0969",
/* 75 */ "1",
/* 76 */ "2",
/* 77 */ "3",
/* 78 */ "4",
/* 79 */ "5",
/* 80 */ "6",
/* 81 */ "7",
/* 82 */ "8",
/* 83 */ "9",
/* 84 */ "0",
};
/* Language nl: Dutch */ /* Language nl: Dutch */
private static final String[] LANGUAGE_nl = { private static final String[] LANGUAGE_nl = {
// U+00E1: "á" LATIN SMALL LETTER A WITH ACUTE // U+00E1: "á" LATIN SMALL LETTER A WITH ACUTE
@ -3357,6 +3414,7 @@ public final class KeyboardTextsSet {
"mk", LANGUAGE_mk, /* Macedonian */ "mk", LANGUAGE_mk, /* Macedonian */
"mn", LANGUAGE_mn, /* Mongolian */ "mn", LANGUAGE_mn, /* Mongolian */
"nb", LANGUAGE_nb, /* Norwegian Bokmål */ "nb", LANGUAGE_nb, /* Norwegian Bokmål */
"ne", LANGUAGE_ne, /* Nepali */
"nl", LANGUAGE_nl, /* Dutch */ "nl", LANGUAGE_nl, /* Dutch */
"pl", LANGUAGE_pl, /* Polish */ "pl", LANGUAGE_pl, /* Polish */
"pt", LANGUAGE_pt, /* Portuguese */ "pt", LANGUAGE_pt, /* Portuguese */

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2013, 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">
<!-- Label for "switch to alphabetic" key.
U+0915: "क" DEVANAGARI LETTER KA
U+0916: "ख" DEVANAGARI LETTER KHA
U+0917: "ग" DEVANAGARI LETTER GA -->
<string name="label_to_alpha_key">&#x0915;&#x0916;&#x0917;</string>
<!-- U+0967: "१" DEVANAGARI DIGIT ONE -->
<string name="keylabel_for_symbols_1">&#x0967;</string>
<!-- U+0968: "२" DEVANAGARI DIGIT TWO -->
<string name="keylabel_for_symbols_2">&#x0968;</string>
<!-- U+0969: "३" DEVANAGARI DIGIT THREE -->
<string name="keylabel_for_symbols_3">&#x0969;</string>
<!-- U+096A: "४" DEVANAGARI DIGIT FOUR -->
<string name="keylabel_for_symbols_4">&#x096A;</string>
<!-- U+096B: "५" DEVANAGARI DIGIT FIVE -->
<string name="keylabel_for_symbols_5">&#x096B;</string>
<!-- U+096C: "६" DEVANAGARI DIGIT SIX -->
<string name="keylabel_for_symbols_6">&#x096C;</string>
<!-- U+096D: "७" DEVANAGARI DIGIT SEVEN -->
<string name="keylabel_for_symbols_7">&#x096D;</string>
<!-- U+096E: "८" DEVANAGARI DIGIT EIGHT -->
<string name="keylabel_for_symbols_8">&#x096E;</string>
<!-- U+096F: "९" DEVANAGARI DIGIT NINE -->
<string name="keylabel_for_symbols_9">&#x096F;</string>
<!-- U+0966: "" DEVANAGARI DIGIT ZERO -->
<string name="keylabel_for_symbols_0">&#x0966;</string>
<!-- Label for "switch to symbols" key. -->
<string name="label_to_symbol_key">\?&#x0967;&#x0968;&#x0969;</string>
<!-- Label for "switch to symbols with microphone" key. This string shouldn't include the "mic"
part because it'll be appended by the code. -->
<string name="label_to_symbol_with_microphone_key">&#x0967;&#x0968;&#x0969;</string>
<string name="additional_more_keys_for_symbols_1">1</string>
<string name="additional_more_keys_for_symbols_2">2</string>
<string name="additional_more_keys_for_symbols_3">3</string>
<string name="additional_more_keys_for_symbols_4">4</string>
<string name="additional_more_keys_for_symbols_5">5</string>
<string name="additional_more_keys_for_symbols_6">6</string>
<string name="additional_more_keys_for_symbols_7">7</string>
<string name="additional_more_keys_for_symbols_8">8</string>
<string name="additional_more_keys_for_symbols_9">9</string>
<string name="additional_more_keys_for_symbols_0">0</string>
<!-- U+0930/U+0941/U+002E "रु." NEPALESE RUPEE SIGN -->
<string name="keylabel_for_currency">&#x0930;&#x0941;&#x002E;</string>
</resources>