Skip to content
Snippets Groups Projects
Commit 637ecce7 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Consolidate multiple locales' period key definition"

parents 90c91997 aab01403
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,7 @@ ...@@ -38,9 +38,7 @@
latin:backgroundType="functional" latin:backgroundType="functional"
latin:keyStyle="hasShiftedLetterHintStyle" /> latin:keyStyle="hasShiftedLetterHintStyle" />
</case> </case>
<case <default>
latin:languageCode="ar|fa"
>
<Key <Key
latin:keyLabel="!text/keylabel_for_tablet_comma" latin:keyLabel="!text/keylabel_for_tablet_comma"
latin:keyHintLabel="!text/keyhintlabel_for_tablet_comma" latin:keyHintLabel="!text/keyhintlabel_for_tablet_comma"
...@@ -49,36 +47,12 @@ ...@@ -49,36 +47,12 @@
latin:backgroundType="functional" latin:backgroundType="functional"
latin:keyStyle="hasShiftedLetterHintStyle" /> latin:keyStyle="hasShiftedLetterHintStyle" />
<Key <Key
latin:keyLabel="." latin:keyLabel="!text/keylabel_for_tablet_period"
latin:keyHintLabel="!text/keyhintlabel_for_arabic_diacritics" latin:keyHintLabel="!text/keyhintlabel_for_tablet_period"
latin:keyLabelFlags="hasPopupHint" latin:keyLabelFlags="hasPopupHint"
latin:moreKeys="!text/more_keys_for_arabic_diacritics" latin:moreKeys="!text/more_keys_for_tablet_period"
latin:backgroundType="functional" latin:backgroundType="functional"
latin:keyStyle="hasShiftedLetterHintStyle" /> latin:keyStyle="hasShiftedLetterHintStyle" />
</case>
<case
latin:languageCode="hy"
>
<!-- U+055D: "՝" ARMENIAN COMMA -->
<Key
latin:keyLabel="&#x055D;"
latin:backgroundType="functional" />
<!-- U+0589: "։" ARMENIAN FULL STOP -->
<Key
latin:keyLabel="&#x0589;"
latin:keyLabelFlags="hasPopupHint"
latin:backgroundType="functional"
latin:moreKeys="!text/more_keys_for_punctuation" />
</case>
<default>
<Key
latin:keyLabel="!text/keylabel_for_tablet_comma"
latin:moreKeys="!text/more_keys_for_tablet_comma"
latin:backgroundType="functional" />
<Key
latin:keyLabel="."
latin:moreKeys="!text/more_keys_for_period"
latin:backgroundType="functional" />
</default> </default>
</switch> </switch>
</merge> </merge>
<?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.
*/
-->
<!-- The code point U+25CC for key label is needed because the font rendering system prior to
API version 16 can't automatically render dotted circle for incomplete combining letter
of Hindi. The files named res/xml/{key,keys}_nepali*.xml have this U+25CC hack, although the
counterpart files named res/xml-v16/{key,keys}_nepali*.xml don't have this hack. -->
<merge
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
>
<switch>
<case
latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
>
<Key
latin:keyLabel=","
latin:backgroundType="functional" />
</case>
<default>
<!-- Because the font rendering system prior to API version 16 can't automatically
render dotted circle for incomplete combining letter of some scripts, different
set of Key definitions are needed based on the API version. -->
<include
latin:keyboardLayout="@xml/keystyle_devanagari_sign_virama" />
<!-- U+002E: "." FULL STOP -->
<Key
latin:keyStyle="baseKeyDevanagariSignVirama"
latin:keyLabelFlags="hasPopupHint"
latin:moreKeys="!fixedColumnOrder!9,&#x002E;,!text/more_keys_for_punctuation"
latin:backgroundType="functional" />
</default>
</switch>
</merge>
...@@ -22,38 +22,27 @@ ...@@ -22,38 +22,27 @@
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
> >
<switch> <switch>
<case
latin:languageCode="ar|fa"
>
<Key
latin:keyLabel="."
latin:keyHintLabel="!text/keyhintlabel_for_arabic_diacritics"
latin:keyLabelFlags="hasPopupHint|hasShiftedLetterHint"
latin:moreKeys="!text/more_keys_for_arabic_diacritics"
latin:backgroundType="functional" />
</case>
<case <case
latin:languageCode="ne" latin:languageCode="ne"
latin:keyboardLayoutSet="nepali_traditional" latin:keyboardLayoutSet="nepali_traditional"
> >
<!-- Because the font rendering system prior to API version 16 can't automatically
render dotted circle for incomplete combining letter of some scripts, different
set of Key definitions are needed based on the API version. -->
<include <include
latin:keyboardLayout="@xml/key_nepali_traditional_period" /> latin:keyboardLayout="@xml/keystyle_devanagari_sign_virama" />
</case>
<case
latin:languageCode="hy"
>
<!-- U+0589: "։" ARMENIAN FULL STOP -->
<Key <Key
latin:keyLabel="&#x0589;" latin:keyStyle="baseKeyDevanagariSignVirama"
latin:keyLabelFlags="hasPopupHint" latin:keyLabelFlags="hasPopupHint"
latin:moreKeys="!text/more_keys_for_punctuation" latin:moreKeys="!text/more_keys_for_punctuation"
latin:backgroundType="functional" /> latin:backgroundType="functional" />
</case> </case>
<default> <default>
<Key <Key
latin:keyLabel="." latin:keyLabel="!text/keylabel_for_period"
latin:keyLabelFlags="hasPopupHint" latin:keyHintLabel="!text/keyhintlabel_for_period"
latin:moreKeys="!text/more_keys_for_punctuation" latin:keyLabelFlags="hasPopupHint|hasShiftedLetterHint"
latin:moreKeys="!text/more_keys_for_period"
latin:backgroundType="functional" /> latin:backgroundType="functional" />
</default> </default>
</switch> </switch>
......
...@@ -65,6 +65,11 @@ ...@@ -65,6 +65,11 @@
<!-- U+060C: "،" ARABIC COMMA --> <!-- U+060C: "،" ARABIC COMMA -->
<string name="keylabel_for_comma">&#x060C;</string> <string name="keylabel_for_comma">&#x060C;</string>
<string name="more_keys_for_comma">"\\,"</string> <string name="more_keys_for_comma">"\\,"</string>
<!-- U+0651: "ّ" ARABIC SHADDA -->
<string name="keyhintlabel_for_period">&#x0651;</string>
<string name="more_keys_for_period">!text/more_keys_for_arabic_diacritics</string>
<string name="keyhintlabel_for_tablet_period">&#x0651;</string>
<string name="more_keys_for_tablet_period">!text/more_keys_for_arabic_diacritics</string>
<string name="keylabel_for_symbols_question">&#x061F;</string> <string name="keylabel_for_symbols_question">&#x061F;</string>
<string name="keylabel_for_symbols_semicolon">&#x061B;</string> <string name="keylabel_for_symbols_semicolon">&#x061B;</string>
<!-- U+066A: "٪" ARABIC PERCENT SIGN --> <!-- U+066A: "٪" ARABIC PERCENT SIGN -->
...@@ -119,5 +124,4 @@ ...@@ -119,5 +124,4 @@
<!-- In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. --> <!-- In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. -->
<!-- Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. --> <!-- Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. -->
<string name="more_keys_for_arabic_diacritics">"!fixedColumnOrder!7,&#x20;&#x0655;|&#x0655;,&#x20;&#x0654;|&#x0654;,&#x20;&#x0652;|&#x0652;,&#x20;&#x064D;|&#x064D;,&#x20;&#x064C;|&#x064C;,&#x20;&#x064B;|&#x064B;,&#x20;&#x0651;|&#x0651;,&#x20;&#x0656;|&#x0656;,&#x20;&#x0670;|&#x0670;,&#x20;&#x0653;|&#x0653;,&#x20;&#x0650;|&#x0650;,&#x20;&#x064F;|&#x064F;,&#x20;&#x064E;|&#x064E;,&#x0640;&#x0640;&#x0640;|&#x0640;"</string> <string name="more_keys_for_arabic_diacritics">"!fixedColumnOrder!7,&#x20;&#x0655;|&#x0655;,&#x20;&#x0654;|&#x0654;,&#x20;&#x0652;|&#x0652;,&#x20;&#x064D;|&#x064D;,&#x20;&#x064C;|&#x064C;,&#x20;&#x064B;|&#x064B;,&#x20;&#x0651;|&#x0651;,&#x20;&#x0656;|&#x0656;,&#x20;&#x0670;|&#x0670;,&#x20;&#x0653;|&#x0653;,&#x20;&#x0650;|&#x0650;,&#x20;&#x064F;|&#x064F;,&#x20;&#x064E;|&#x064E;,&#x0640;&#x0640;&#x0640;|&#x0640;"</string>
<string name="keyhintlabel_for_arabic_diacritics">&#x0651;</string>
</resources> </resources>
...@@ -65,6 +65,11 @@ ...@@ -65,6 +65,11 @@
<!-- U+060C: "،" ARABIC COMMA --> <!-- U+060C: "،" ARABIC COMMA -->
<string name="keylabel_for_comma">&#x060C;</string> <string name="keylabel_for_comma">&#x060C;</string>
<string name="more_keys_for_comma">"\\,"</string> <string name="more_keys_for_comma">"\\,"</string>
<!-- U+064B: "ً" ARABIC FATHATAN -->
<string name="keyhintlabel_for_period">&#x064B;</string>
<string name="more_keys_for_period">!text/more_keys_for_arabic_diacritics</string>
<string name="keyhintlabel_for_tablet_period">&#x064B;</string>
<string name="more_keys_for_tablet_period">!text/more_keys_for_arabic_diacritics</string>
<string name="keylabel_for_symbols_question">&#x061F;</string> <string name="keylabel_for_symbols_question">&#x061F;</string>
<string name="keylabel_for_symbols_semicolon">&#x061B;</string> <string name="keylabel_for_symbols_semicolon">&#x061B;</string>
<!-- U+066A: "٪" ARABIC PERCENT SIGN --> <!-- U+066A: "٪" ARABIC PERCENT SIGN -->
...@@ -128,5 +133,4 @@ ...@@ -128,5 +133,4 @@
<!-- In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. --> <!-- In order to make Tatweel easily distinguishable from other punctuations, we use consecutive Tatweels only for its displayed label. -->
<!-- Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. --> <!-- Note: The space character is needed as a preceding letter to draw Arabic diacritics characters correctly. -->
<string name="more_keys_for_arabic_diacritics">"!fixedColumnOrder!7,&#x20;&#x0655;|&#x0655;,&#x20;&#x0652;|&#x0652;,&#x20;&#x0651;|&#x0651;,&#x20;&#x064C;|&#x064C;,&#x20;&#x064D;|&#x064D;,&#x20;&#x064B;|&#x064B;,&#x20;&#x0654;|&#x0654;,&#x20;&#x0656;|&#x0656;,&#x20;&#x0670;|&#x0670;,&#x20;&#x0653;|&#x0653;,&#x20;&#x064F;|&#x064F;,&#x20;&#x0650;|&#x0650;,&#x20;&#x064E;|&#x064E;,&#x0640;&#x0640;&#x0640;|&#x0640;"</string> <string name="more_keys_for_arabic_diacritics">"!fixedColumnOrder!7,&#x20;&#x0655;|&#x0655;,&#x20;&#x0652;|&#x0652;,&#x20;&#x0651;|&#x0651;,&#x20;&#x064C;|&#x064C;,&#x20;&#x064D;|&#x064D;,&#x20;&#x064B;|&#x064B;,&#x20;&#x0654;|&#x0654;,&#x20;&#x0656;|&#x0656;,&#x20;&#x0670;|&#x0670;,&#x20;&#x0653;|&#x0653;,&#x20;&#x064F;|&#x064F;,&#x20;&#x0650;|&#x0650;,&#x20;&#x064E;|&#x064E;,&#x0640;&#x0640;&#x0640;|&#x0640;"</string>
<string name="keyhintlabel_for_arabic_diacritics">&#x064B;</string>
</resources> </resources>
...@@ -37,4 +37,10 @@ ...@@ -37,4 +37,10 @@
<!-- TODO: Enable this when we have glyph for the following letter <!-- TODO: Enable this when we have glyph for the following letter
<string name="keylabel_for_currency">&#x058F;</string> <string name="keylabel_for_currency">&#x058F;</string>
--> -->
<!-- U+055D: "՝" ARMENIAN COMMA -->
<string name="keylabel_for_tablet_comma">&#x055D;</string>
<!-- U+0589: "։" ARMENIAN FULL STOP -->
<string name="keylabel_for_period">&#x0589;</string>
<string name="keylabel_for_tablet_period">&#x0589;</string>
<string name="more_keys_for_tablet_period">!text/more_keys_for_punctuation</string>
</resources> </resources>
...@@ -109,7 +109,6 @@ ...@@ -109,7 +109,6 @@
<string name="more_keys_for_less_than">!fixedColumnOrder!3,&#x2039;,&#x2264;,&#x00AB;</string> <string name="more_keys_for_less_than">!fixedColumnOrder!3,&#x2039;,&#x2264;,&#x00AB;</string>
<string name="more_keys_for_greater_than">!fixedColumnOrder!3,&#x203A;,&#x2265;,&#x00BB;</string> <string name="more_keys_for_greater_than">!fixedColumnOrder!3,&#x203A;,&#x2265;,&#x00BB;</string>
<string name="more_keys_for_arabic_diacritics"></string> <string name="more_keys_for_arabic_diacritics"></string>
<string name="keyhintlabel_for_arabic_diacritics"></string>
<string name="keylabel_for_symbols_1">1</string> <string name="keylabel_for_symbols_1">1</string>
<string name="keylabel_for_symbols_2">2</string> <string name="keylabel_for_symbols_2">2</string>
<string name="keylabel_for_symbols_3">3</string> <string name="keylabel_for_symbols_3">3</string>
...@@ -160,8 +159,20 @@ ...@@ -160,8 +159,20 @@
<!-- U+207F: "ⁿ" SUPERSCRIPT LATIN SMALL LETTER N <!-- U+207F: "ⁿ" SUPERSCRIPT LATIN SMALL LETTER N
U+2205: "∅" EMPTY SET --> U+2205: "∅" EMPTY SET -->
<string name="more_keys_for_symbols_0">&#x207F;,&#x2205;</string> <string name="more_keys_for_symbols_0">&#x207F;,&#x2205;</string>
<!-- Comma key -->
<string name="keylabel_for_comma">,</string> <string name="keylabel_for_comma">,</string>
<string name="more_keys_for_comma"></string> <string name="more_keys_for_comma"></string>
<string name="keylabel_for_tablet_comma">,</string>
<string name="keyhintlabel_for_tablet_comma"></string>
<string name="more_keys_for_tablet_comma"></string>
<!-- Period key -->
<string name="keylabel_for_period">.</string>
<string name="keyhintlabel_for_period"></string>
<string name="more_keys_for_period">!text/more_keys_for_punctuation</string>
<string name="keylabel_for_tablet_period">.</string>
<string name="keyhintlabel_for_tablet_period"></string>
<!-- U+2026: "…" HORIZONTAL ELLIPSIS -->
<string name="more_keys_for_tablet_period">&#x2026;</string>
<string name="keylabel_for_symbols_question">\?</string> <string name="keylabel_for_symbols_question">\?</string>
<string name="keylabel_for_symbols_semicolon">;</string> <string name="keylabel_for_symbols_semicolon">;</string>
<string name="keylabel_for_symbols_percent">%</string> <string name="keylabel_for_symbols_percent">%</string>
...@@ -172,12 +183,6 @@ ...@@ -172,12 +183,6 @@
<string name="more_keys_for_symbols_semicolon"></string> <string name="more_keys_for_symbols_semicolon"></string>
<!-- U+2030: "‰" PER MILLE SIGN --> <!-- U+2030: "‰" PER MILLE SIGN -->
<string name="more_keys_for_symbols_percent">&#x2030;</string> <string name="more_keys_for_symbols_percent">&#x2030;</string>
<string name="keylabel_for_tablet_comma">,</string>
<string name="keyhintlabel_for_tablet_comma"></string>
<string name="more_keys_for_tablet_comma"></string>
<string name="keyhintlabel_for_period"></string>
<!-- U+2026: "…" HORIZONTAL ELLIPSIS -->
<string name="more_keys_for_period">&#x2026;</string>
<string name="more_keys_for_q"></string> <string name="more_keys_for_q"></string>
<string name="more_keys_for_x"></string> <string name="more_keys_for_x"></string>
<string name="keylabel_for_q">q</string> <string name="keylabel_for_q">q</string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment