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 22 xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" 23 > 24 <switch> 25 <case 26 latin:passwordInput="true" 27 > 28 <include 29 latin:keyboardLayout="@xml/key_styles_currency_dollar" /> 30 </case> 31 <!-- Countries using Euro currency, 23 countries as of November 2012. 32 1. Andorra (ca_AD, ca_ES) 33 2. Austria (de_AT) 34 3. Belgium (nl_BE, fr_BE, de_BE) 35 4. Cyprus (el_CY, tr_CY) 36 5. Estonia (et_EE) 37 6. Finland (fi_FI, sv_FI) 38 7. France (fr_FR) 39 8. Germany (de_DE) 40 9. Greece (el_GR) 41 10. Ireland (ga_IE, en_IE) 42 11. Italy (it_IT) 43 12. Kosovo (sq_XK, sr_XK) 44 13. Luxembourg (lb_LU, fr_LU, de_LU) 45 14. Malta (mt_MT, en_MT) 46 15. Monaco (fr_MO) 47 16. Montenegro (??_ME) 48 17. Netherlands (nl_NL) 49 18. Portugal (pt_PT) 50 19. San Marino (it_SM) 51 20. Slovakia (sk_SK) 52 21. Slovenia (sl_SI) 53 22. Spain (es_ES, ca_ES) 54 23. Vatican City (it_VA) --> 55 <case 56 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" 57 > 58 <include 59 latin:keyboardLayout="@xml/key_styles_currency_euro" /> 60 </case> 61 <!-- Note: Some subtype locale may not have country code, and it it supposed to indicate the 62 country where the language originally/mainly spoken. --> 63 <!-- Though Denmark, Sweden and Turkey don't use Euro as their currency, having the Euro 64 sign on the symbol keyboard might be useful. Especially Danish krone (kr), Swedish 65 krona (kr) and Turkish lira (TL) can be represented by usual alphabet letters. --> 66 <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for 67 its unicode, although there is no font glyph for it as of November 2012. --> 68 <!-- da: Denmark (da_DK) 69 de: Germany (de_DE) 70 es: Spain (es_ES) 71 fi: Finland (fi_FI) 72 fr: France(fr_FR) 73 it: Italy (it_IT) 74 nl: Netherlands (nl_NL) 75 sk: Slovakia (sk_SK) 76 sl: Slovenia (sl_SL) 77 sv: Sweden (sv_SV) 78 tr: Trukey (tr_TR) --> 79 <case 80 latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|sv|tr" 81 > 82 <include 83 latin:keyboardLayout="@xml/key_styles_currency_euro" /> 84 </case> 85 <!-- ca: Catalan (Andorra, Spain) 86 et: Estonian (Estonia) 87 lb: Luxembougish (Luxembourg) 88 mt: Maltese (Malta) --> 89 <case 90 latin:languageCode="ca|et|lb|mt" 91 > 92 <include 93 latin:keyboardLayout="@xml/key_styles_currency_euro" /> 94 </case> 95 <!-- fa: Persian (Rial and Afgahni) 96 hi: Hindi (Indian Rupee) 97 iw: Hebrew (New Sheqel) 98 lo: Lao (Kip) 99 mn: Mongolian (Tugrik) 100 ne: Nepali (Nepalese Rupee) 101 th: Thai (Baht) 102 uk: Ukrainian (Hryvnia) 103 vi: Vietnamese (Dong) --> 104 <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for 105 its unicode, although there is no font glyph for it as of November 2012. --> 106 <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for 107 its unicode, although there is no font glyph for it as of September 2013. --> 108 <case 109 latin:languageCode="fa|hi|iw|lo|mn|ne|th|uk|vi" 110 > 111 <!-- U+00A3: "" POUND SIGN 112 U+20AC: "" EURO SIGN 113 U+00A2: "" CENT SIGN --> 114 <key-style 115 latin:styleName="currencyKeyStyle" 116 latin:keyLabel="!text/keylabel_for_currency" 117 latin:moreKeys="!text/more_keys_for_currency" /> 118 <key-style 119 latin:styleName="moreCurrency1KeyStyle" 120 latin:keyLabel="£" /> 121 <key-style 122 latin:styleName="moreCurrency2KeyStyle" 123 latin:keyLabel="€" /> 124 <key-style 125 latin:styleName="moreCurrency3KeyStyle" 126 latin:keyLabel="$" 127 latin:moreKeys="¢" /> 128 <key-style 129 latin:styleName="moreCurrency4KeyStyle" 130 latin:keyLabel="¢" /> 131 </case> 132 <!-- GB: United Kingdom (Pound) --> 133 <case 134 latin:countryCode="GB" 135 > 136 <!-- U+00A3: "" POUND SIGN 137 U+20AC: "" EURO SIGN 138 U+00A5: "" YEN SIGN 139 U+00A2: "" CENT SIGN 140 U+20B1: "" PESO SIGN --> 141 <key-style 142 latin:styleName="currencyKeyStyle" 143 latin:keyLabel="£" 144 latin:moreKeys="¢,$,€,¥,₱" /> 145 <key-style 146 latin:styleName="moreCurrency1KeyStyle" 147 latin:keyLabel="€" /> 148 <key-style 149 latin:styleName="moreCurrency2KeyStyle" 150 latin:keyLabel="¥" /> 151 <key-style 152 latin:styleName="moreCurrency3KeyStyle" 153 latin:keyLabel="$" 154 latin:moreKeys="¢" /> 155 <key-style 156 latin:styleName="moreCurrency4KeyStyle" 157 latin:keyLabel="¢" /> 158 </case> 159 <!-- ar: Arabic (Dollar and Rial) --> 160 <default> 161 <include 162 latin:keyboardLayout="@xml/key_styles_currency_dollar" /> 163 </default> 164 </switch> 165 </merge> 166