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             hi_ZZ: Hinglish (Indian Rupee)
84             iw: Hebrew (New Sheqel)
85             lo: Lao (Kip)
86             mn: Mongolian (Tugrik)
87             ne: Nepali (Nepalese Rupee)
88             th: Thai (Baht)
89             uk: Ukrainian (Hryvnia)
90             vi: Vietnamese (Dong)  -->
91        <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
92             its unicode, although there is no font glyph for it as of November 2012. -->
93        <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for
94             its unicode, although there is no font glyph for it as of September 2013. -->
95        <!-- TODO: The currency sign of Russian Ruble was created in 2014 and assigned U+20BD for
96             its unicode, although there is no font glyph for it as of August 2014. -->
97        <case latin:languageCode="fa|hi|iw|lo|mn|ne|th|uk|vi">
98            <include latin:keyboardLayout="@xml/key_styles_currency_generic" />
99        </case>
100        <!-- si_LK: Sinhala (Sri Lanka) (Sri Lanka Rupee)
101             ta_LK: Tamil (Sri Lanka) (Sri Lanka Rupee)
102             bn_BD: Bengali (Bangladesh) (Taka) -->
103        <case latin:countryCode="LK|BD">
104            <include latin:keyboardLayout="@xml/key_styles_currency_generic" />
105        </case>
106        <!-- bn_IN: Bengali (India) (Indian Rupee)
107             en_IN: English (India) (Indian Rupee)
108             kn_IN: Kannada (India) (Indian Rupee)
109             ml_IN: Malayalam (India) (Indian Rupee)
110             mr_IN: Marathi (India) (Indian Rupee)
111             ta_IN: Tamil (India) (Indian Rupee)
112             te_IN: Telugu (India) (Indian Rupee)
113         -->
114        <case latin:countryCode="IN">
115            <!-- U+20B9: "₹" INDIAN RUPEE SIGN
116                 U+00A3: "£" POUND SIGN
117                 U+20AC: "€" EURO SIGN
118                 U+00A2: "¢" CENT SIGN -->
119            <key-style
120                latin:styleName="currencyKeyStyle"
121                latin:keySpec="&#x20B9;"
122                latin:moreKeys="!text/morekeys_currency_generic" />
123            <key-style
124                latin:styleName="moreCurrency1KeyStyle"
125                latin:keySpec="&#x00A3;" />
126            <key-style
127                latin:styleName="moreCurrency2KeyStyle"
128                latin:keySpec="&#x20AC;" />
129            <key-style
130                latin:styleName="moreCurrency3KeyStyle"
131                latin:keySpec="$"
132                latin:moreKeys="&#x00A2;" />
133            <key-style
134                latin:styleName="moreCurrency4KeyStyle"
135                latin:keySpec="&#x00A2;" />
136        </case>
137        <!-- GB: United Kingdom (Pound) -->
138        <case latin:countryCode="GB">
139            <!-- U+00A3: "£" POUND SIGN
140                 U+20AC: "€" EURO SIGN
141                 U+00A5: "¥" YEN SIGN
142                 U+00A2: "¢" CENT SIGN
143                 U+20B1: "₱" PESO SIGN -->
144            <key-style
145                latin:styleName="currencyKeyStyle"
146                latin:keySpec="&#x00A3;"
147                latin:moreKeys="&#x00A2;,$,&#x20AC;,&#x00A5;,&#x20B1;" />
148            <key-style
149                latin:styleName="moreCurrency1KeyStyle"
150                latin:keySpec="&#x20AC;" />
151            <key-style
152                latin:styleName="moreCurrency2KeyStyle"
153                latin:keySpec="&#x00A5;" />
154            <key-style
155                latin:styleName="moreCurrency3KeyStyle"
156                latin:keySpec="$"
157                latin:moreKeys="&#x00A2;" />
158            <key-style
159                latin:styleName="moreCurrency4KeyStyle"
160                latin:keySpec="&#x00A2;" />
161        </case>
162        <!-- ar: Arabic (Dollar and Rial) -->
163        <default>
164            <include latin:keyboardLayout="@xml/key_styles_currency_dollar" />
165        </default>
166    </switch>
167</merge>
168