Home | History | Annotate | Download | only in xml
      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              mn: Mongolian (Tugrik)
     99              th: Thai (Baht)
    100              uk: Ukrainian (Hryvnia)
    101              vi: Vietnamese (Dong)  -->
    102         <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
    103              its unicode, although there is no font glyph for it as of November 2012. -->
    104         <case
    105             latin:languageCode="fa|hi|iw|mn|th|uk|vi"
    106         >
    107             <!-- U+00A3: "" POUND SIGN
    108                  U+20AC: "" EURO SIGN
    109                  U+00A2: "" CENT SIGN -->
    110             <key-style
    111                 latin:styleName="currencyKeyStyle"
    112                 latin:keyLabel="!text/keylabel_for_currency_generic"
    113                 latin:moreKeys="!text/more_keys_for_currency_generic" />
    114             <key-style
    115                 latin:styleName="moreCurrency1KeyStyle"
    116                 latin:keyLabel="&#x00A3;" />
    117             <key-style
    118                 latin:styleName="moreCurrency2KeyStyle"
    119                 latin:keyLabel="&#x20AC;" />
    120             <key-style
    121                 latin:styleName="moreCurrency3KeyStyle"
    122                 latin:keyLabel="$"
    123                 latin:moreKeys="&#x00A2;" />
    124             <key-style
    125                 latin:styleName="moreCurrency4KeyStyle"
    126                 latin:keyLabel="&#x00A2;" />
    127         </case>
    128         <!-- GB: United Kingdom (Pound) -->
    129         <case
    130             latin:countryCode="GB"
    131         >
    132             <!-- U+00A3: "" POUND SIGN
    133                  U+20AC: "" EURO SIGN
    134                  U+00A5: "" YEN SIGN
    135                  U+00A2: "" CENT SIGN
    136                  U+20B1: "" PESO SIGN -->
    137             <key-style
    138                 latin:styleName="currencyKeyStyle"
    139                 latin:keyLabel="&#x00A3;"
    140                 latin:moreKeys="&#x00A2;,$,&#x20AC;,&#x00A5;,&#x20B1;" />
    141             <key-style
    142                 latin:styleName="moreCurrency1KeyStyle"
    143                 latin:keyLabel="&#x20AC;" />
    144             <key-style
    145                 latin:styleName="moreCurrency2KeyStyle"
    146                 latin:keyLabel="&#x00A5;" />
    147             <key-style
    148                 latin:styleName="moreCurrency3KeyStyle"
    149                 latin:keyLabel="$"
    150                 latin:moreKeys="&#x00A2;" />
    151             <key-style
    152                 latin:styleName="moreCurrency4KeyStyle"
    153                 latin:keyLabel="&#x00A2;" />
    154         </case>
    155         <!-- ar: Arabic (Dollar and Rial) -->
    156         <default>
    157             <include
    158                 latin:keyboardLayout="@xml/key_styles_currency_dollar" />
    159         </default>
    160     </switch>
    161 </merge>
    162