• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/kbd_currency_dollar_key_styles" />
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/kbd_currency_euro_key_styles" />
66        </case>
67        <case
68            latin:languageCode="ca|et|lb|mt|sla"
69        >
70            <include
71                latin:keyboardLayout="@xml/kbd_currency_euro_key_styles" />
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/kbd_currency_euro_key_styles" />
78        </case>
79        <case
80            latin:languageCode="iw"
81        >
82            <key-style
83                latin:styleName="currencyKeyStyle"
84                latin:keyLabel="₪"
85                latin:moreKeys="@string/more_keys_for_currency_general" />
86            <key-style
87                latin:styleName="moreCurrency1KeyStyle"
88                latin:keyLabel="£" />
89            <key-style
90                latin:styleName="moreCurrency2KeyStyle"
91                latin:keyLabel="€" />
92            <key-style
93                latin:styleName="moreCurrency3KeyStyle"
94                latin:keyLabel="$"
95                latin:moreKeys="¢" />
96            <key-style
97                latin:styleName="moreCurrency4KeyStyle"
98                latin:keyLabel="¢" />
99        </case>
100        <!-- United Kingdom -->
101        <case
102            latin:countryCode="GB"
103        >
104            <key-style
105                latin:styleName="currencyKeyStyle"
106                latin:keyLabel="£"
107                latin:moreKeys="@string/more_keys_for_currency_pound" />
108            <key-style
109                latin:styleName="moreCurrency1KeyStyle"
110                latin:keyLabel="€" />
111            <key-style
112                latin:styleName="moreCurrency2KeyStyle"
113                latin:keyLabel="¥" />
114            <key-style
115                latin:styleName="moreCurrency3KeyStyle"
116                latin:keyLabel="$"
117                latin:moreKeys="¢" />
118            <key-style
119                latin:styleName="moreCurrency4KeyStyle"
120                latin:keyLabel="¢" />
121        </case>
122        <default>
123            <include
124                latin:keyboardLayout="@xml/kbd_currency_dollar_key_styles" />
125        </default>
126    </switch>
127</merge>
128