key_styles_currency.xml revision 25906373ffe1b0e3e99b7412e9fd2a54f5d73345
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2011, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<merge xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin">
22    <switch>
23        <case latin:passwordInput="true">
24            <include latin:keyboardLayout="@xml/key_styles_currency_dollar" />
25        </case>
26        <!-- Countries using Euro currency, 23 countries as of November 2012.
27              1. Andorra (ca_AD, ca_ES)
28              2. Austria (de_AT)
29              3. Belgium (nl_BE, fr_BE, de_BE)
30              4. Cyprus (el_CY, tr_CY)
31              5. Estonia (et_EE)
32              6. Finland (fi_FI, sv_FI)
33              7. France (fr_FR)
34              8. Germany (de_DE)
35              9. Greece (el_GR)
36             10. Ireland (ga_IE, en_IE)
37             11. Italy (it_IT)
38             12. Kosovo (sq_XK, sr_XK)
39             13. Luxembourg (lb_LU, fr_LU, de_LU)
40             14. Malta (mt_MT, en_MT)
41             15. Monaco (fr_MO)
42             16. Montenegro (??_ME)
43             17. Netherlands (nl_NL)
44             18. Portugal (pt_PT)
45             19. San Marino (it_SM)
46             20. Slovakia (sk_SK)
47             21. Slovenia (sl_SI)
48             22. Spain (es_ES, ca_ES, eu_ES, gl_ES)
49             23. Vatican City (it_VA) -->
50        <case latin:countryCode="AD|AT|BE|CY|EE|FI|FR|DE|GR|IE|IT|XK|LU|MT|MO|ME|NL|PT|SM|SK|SI|ES|VA">
51            <include latin:keyboardLayout="@xml/key_styles_currency_euro" />
52        </case>
53        <!-- Note: Some subtype locale may not have country code, and it it supposed to indicate the
54             country where the language originally/mainly spoken. -->
55        <!-- Though Denmark, Sweden and Turkey don't use Euro as their currency, having the Euro
56             sign on the symbol keyboard might be useful.  Especially Danish krone (kr), Swedish
57             krona (kr) and Turkish lira (TL) can be represented by usual alphabet letters. -->
58        <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
59             its unicode, although there is no font glyph for it as of November 2012. -->
60        <!-- da: Denmark (da_DK)
61             de: Germany (de_DE)
62             es: Spain (es_ES)
63             fi: Finland (fi_FI)
64             fr: France(fr_FR)
65             it: Italy (it_IT)
66             nl: Netherlands (nl_NL)
67             sk: Slovakia (sk_SK)
68             sl: Slovenia (sl_SL)
69             sv: Sweden (sv_SV)
70             tr: Trukey (tr_TR) -->
71        <case latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|sv|tr">
72            <include latin:keyboardLayout="@xml/key_styles_currency_euro" />
73        </case>
74        <!-- ca: Catalan (Andorra, Spain)
75             et: Estonian (Estonia)
76             lb: Luxembougish (Luxembourg)
77             mt: Maltese (Malta) -->
78        <case latin:languageCode="ca|et|lb|mt">
79            <include latin:keyboardLayout="@xml/key_styles_currency_euro" />
80        </case>
81        <!-- fa: Persian (Rial and Afgahni)
82             hi: Hindi (Indian Rupee)
83             iw: Hebrew (New Sheqel)
84             lo: Lao (Kip)
85             mn: Mongolian (Tugrik)
86             ne: Nepali (Nepalese Rupee)
87             th: Thai (Baht)
88             uk: Ukrainian (Hryvnia)
89             vi: Vietnamese (Dong)  -->
90        <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
91             its unicode, although there is no font glyph for it as of November 2012. -->
92        <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for
93             its unicode, although there is no font glyph for it as of September 2013. -->
94        <!-- TODO: The currency sign of Russian Ruble was created in 2014 and assigned U+20BD for
95             its unicode, although there is no font glyph for it as of August 2014. -->
96        <case latin:languageCode="fa|hi|iw|lo|mn|ne|th|uk|vi">
97            <include latin:keyboardLayout="@xml/key_styles_currency_generic" />
98        </case>
99        <!-- si_LK: Sinhala (Sri Lanka) (Sri Lanka Rupee)
100             ta_LK: Tamil (Sri Lanka) (Sri Lanka Rupee) -->
101        <case latin:countryCode="LK">
102            <include latin:keyboardLayout="@xml/key_styles_currency_generic" />
103        </case>
104        <!-- bn_IN: Bengali (India) (Indian Rupee)
105             en_IN: English (India) (Indian Rupee)
106             kn_IN: Kannada (India) (Indian Rupee)
107             ml_IN: Malayalam (India) (Indian Rupee)
108             mr_IN: Marathi (India) (Indian Rupee)
109             ta_IN: Tamil (India) (Indian Rupee)
110             te_IN: Telugu (India) (Indian Rupee)
111         -->
112        <case latin:countryCode="IN">
113            <!-- U+20B9: "₹" INDIAN RUPEE SIGN
114                 U+00A3: "£" POUND SIGN
115                 U+20AC: "€" EURO SIGN
116                 U+00A2: "¢" CENT SIGN -->
117            <key-style
118                latin:styleName="currencyKeyStyle"
119                latin:keySpec="&#x20B9;"
120                latin:moreKeys="!text/morekeys_currency_generic" />
121            <key-style
122                latin:styleName="moreCurrency1KeyStyle"
123                latin:keySpec="&#x00A3;" />
124            <key-style
125                latin:styleName="moreCurrency2KeyStyle"
126                latin:keySpec="&#x20AC;" />
127            <key-style
128                latin:styleName="moreCurrency3KeyStyle"
129                latin:keySpec="$"
130                latin:moreKeys="&#x00A2;" />
131            <key-style
132                latin:styleName="moreCurrency4KeyStyle"
133                latin:keySpec="&#x00A2;" />
134        </case>
135        <!-- GB: United Kingdom (Pound) -->
136        <case latin:countryCode="GB">
137            <!-- U+00A3: "£" POUND SIGN
138                 U+20AC: "€" EURO SIGN
139                 U+00A5: "¥" YEN SIGN
140                 U+00A2: "¢" CENT SIGN
141                 U+20B1: "₱" PESO SIGN -->
142            <key-style
143                latin:styleName="currencyKeyStyle"
144                latin:keySpec="&#x00A3;"
145                latin:moreKeys="&#x00A2;,$,&#x20AC;,&#x00A5;,&#x20B1;" />
146            <key-style
147                latin:styleName="moreCurrency1KeyStyle"
148                latin:keySpec="&#x20AC;" />
149            <key-style
150                latin:styleName="moreCurrency2KeyStyle"
151                latin:keySpec="&#x00A5;" />
152            <key-style
153                latin:styleName="moreCurrency3KeyStyle"
154                latin:keySpec="$"
155                latin:moreKeys="&#x00A2;" />
156            <key-style
157                latin:styleName="moreCurrency4KeyStyle"
158                latin:keySpec="&#x00A2;" />
159        </case>
160        <!-- ar: Arabic (Dollar and Rial) -->
161        <default>
162            <include latin:keyboardLayout="@xml/key_styles_currency_dollar" />
163        </default>
164    </switch>
165</merge>
166