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 for January 2011. -->
     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 (??_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 (sla_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         -->
     56         <!-- Though Denmark and Turkey don't using Euro as their currencies, but having Euro sign on
     57              the symbol keyboard might be useful.  Especially Danish krone (kr) and Turkish lira
     58              (TL) can be represented by usual alphabet letters. -->
     59         <!-- Note: Some locales may not have country code, and it it supposed to indicate the
     60              country where the language originally/mainly spoken. -->
     61         <case
     62             latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|pt_PT|tr"
     63         >
     64             <include
     65                 latin:keyboardLayout="@xml/key_styles_currency_euro" />
     66         </case>
     67         <case
     68             latin:languageCode="ca|et|lb|mt|sla"
     69         >
     70             <include
     71                 latin:keyboardLayout="@xml/key_styles_currency_euro" />
     72         </case>
     73         <case
     74             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"
     75         >
     76             <include
     77                 latin:keyboardLayout="@xml/key_styles_currency_euro" />
     78         </case>
     79         <case
     80             latin:languageCode="iw"
     81         >
     82             <!-- U+20AA: "" NEW SHEQEL SIGN
     83                  U+00A3: "" POUND SIGN
     84                  U+20AC: "" EURO SIGN
     85                  U+00A2: "" CENT SIGN -->
     86             <key-style
     87                 latin:styleName="currencyKeyStyle"
     88                 latin:keyLabel="&#x20AA;"
     89                 latin:moreKeys="!text/more_keys_for_currency_general" />
     90             <key-style
     91                 latin:styleName="moreCurrency1KeyStyle"
     92                 latin:keyLabel="&#x00A3;" />
     93             <key-style
     94                 latin:styleName="moreCurrency2KeyStyle"
     95                 latin:keyLabel="&#x20AC;" />
     96             <key-style
     97                 latin:styleName="moreCurrency3KeyStyle"
     98                 latin:keyLabel="$"
     99                 latin:moreKeys="&#x00A2;" />
    100             <key-style
    101                 latin:styleName="moreCurrency4KeyStyle"
    102                 latin:keyLabel="&#x00A2;" />
    103         </case>
    104         <case
    105             latin:languageCode="fa"
    106         >
    107             <!-- U+FDFC: "" RIAL SIGN
    108                  U+060B: "" AFGHANI SIGN
    109                  U+00A3: "" POUND SIGN
    110                  U+20AC: "" EURO SIGN
    111                  U+00A2: "" CENT SIGN -->
    112             <!-- TODO: DroidSansArabic lacks the glyph of U+FCDC: RIAL SIGN -->
    113             <key-style
    114                 latin:styleName="currencyKeyStyle"
    115                 latin:keyLabel="&#xFDFC;"
    116                 latin:moreKeys="!text/more_keys_for_currency_general,&#x060B;" />
    117             <key-style
    118                 latin:styleName="moreCurrency1KeyStyle"
    119                 latin:keyLabel="&#x00A3;" />
    120             <key-style
    121                 latin:styleName="moreCurrency2KeyStyle"
    122                 latin:keyLabel="&#x20AC;" />
    123             <key-style
    124                 latin:styleName="moreCurrency3KeyStyle"
    125                 latin:keyLabel="$"
    126                 latin:moreKeys="&#x00A2;" />
    127             <key-style
    128                 latin:styleName="moreCurrency4KeyStyle"
    129                 latin:keyLabel="&#x00A2;" />
    130         </case>
    131         <!-- United Kingdom -->
    132         <case
    133             latin:countryCode="GB"
    134         >
    135             <!-- U+00A3: "" POUND SIGN
    136                  U+20AC: "" EURO SIGN
    137                  U+00A5: "" YEN SIGN
    138                  U+00A2: "" CENT SIGN -->
    139             <key-style
    140                 latin:styleName="currencyKeyStyle"
    141                 latin:keyLabel="&#x00A3;"
    142                 latin:moreKeys="!text/more_keys_for_currency_pound" />
    143             <key-style
    144                 latin:styleName="moreCurrency1KeyStyle"
    145                 latin:keyLabel="&#x20AC;" />
    146             <key-style
    147                 latin:styleName="moreCurrency2KeyStyle"
    148                 latin:keyLabel="&#x00A5;" />
    149             <key-style
    150                 latin:styleName="moreCurrency3KeyStyle"
    151                 latin:keyLabel="$"
    152                 latin:moreKeys="&#x00A2;" />
    153             <key-style
    154                 latin:styleName="moreCurrency4KeyStyle"
    155                 latin:keyLabel="&#x00A2;" />
    156         </case>
    157         <default>
    158             <include
    159                 latin:keyboardLayout="@xml/key_styles_currency_dollar" />
    160         </default>
    161     </switch>
    162 </merge>
    163