aboutsummaryrefslogtreecommitdiffstats
path: root/java/res/xml/key_styles_currency.xml
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-01-27 23:31:30 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-01-28 01:07:29 +0900
commitd1630a3add1c38d365078ad12fde52dc1934f296 (patch)
tree8f66b76478c2eb4892bb4ba97a3b1dcdaf51c946 /java/res/xml/key_styles_currency.xml
parent344a767b33b32c8370bbb5bc575464d9c6548d9c (diff)
downloadlatinime-d1630a3add1c38d365078ad12fde52dc1934f296.tar.gz
latinime-d1630a3add1c38d365078ad12fde52dc1934f296.tar.xz
latinime-d1630a3add1c38d365078ad12fde52dc1934f296.zip
Rename keyboard XML resource files
* <Keyboard> XML file should be kbd_*.xml * <Row> XML file should be rows_*.xml or row_*.xml * <Key> XML file should be key_*.xml or keys_*.xml * <key-style> XML file should be key_styles_*.xml Change-Id: Ie57d5d78389c13d6c066ace4e3588518d1f25f13
Diffstat (limited to 'java/res/xml/key_styles_currency.xml')
-rw-r--r--java/res/xml/key_styles_currency.xml127
1 files changed, 127 insertions, 0 deletions
diff --git a/java/res/xml/key_styles_currency.xml b/java/res/xml/key_styles_currency.xml
new file mode 100644
index 000000000..3e4afdfb5
--- /dev/null
+++ b/java/res/xml/key_styles_currency.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2011, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<merge
+ xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
+>
+ <switch>
+ <case
+ latin:passwordInput="true"
+ >
+ <include
+ latin:keyboardLayout="@xml/key_styles_currency_dollar" />
+ </case>
+ <!-- Countries using Euro currency, 23 countries as for January 2011. -->
+ 1. Andorra (ca_AD, ca_ES)
+ 2. Austria (de_AT)
+ 3. Belgium (nl_BE, fr_BE, de_BE)
+ 4. Cyprus (el_CY, tr_CY)
+ 5. Estonia (et_EE)
+ 6. Finland (fi_FI, sv_FI)
+ 7. France (fr_FR)
+ 8. Germany (de_DE)
+ 9. Greece (el_GR)
+ 10. Ireland (ga_IE, en_IE)
+ 11. Italy (it_IT)
+ 12. Kosovo (??_XK) ??
+ 13. Luxembourg (lb_LU, fr_LU, de_LU)
+ 14. Malta (mt_MT, en_MT)
+ 15. Monaco (fr_MO)
+ 16. Montenegro (sla_ME)
+ 17. Netherlands (nl_NL)
+ 18. Portugal (pt_PT)
+ 19. San Marino (it_SM)
+ 20. Slovakia (sk_SK)
+ 21. Slovenia (sl_SI)
+ 22. Spain (es_ES, ca_ES)
+ 23. Vatican City (it_VA)
+ -->
+ <!-- Though Denmark and Turkey don't using Euro as their currencies, but having Euro sign on
+ the symbol keyboard might be useful. Especially Danish krone (kr) and Turkish lira
+ (TL) can be represented by usual alphabet letters. -->
+ <!-- Note: Some locales may not have country code, and it it supposed to indicate the
+ country where the language originally/mainly spoken. -->
+ <case
+ latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|pt_PT|tr"
+ >
+ <include
+ latin:keyboardLayout="@xml/key_styles_currency_euro" />
+ </case>
+ <case
+ latin:languageCode="ca|et|lb|mt|sla"
+ >
+ <include
+ latin:keyboardLayout="@xml/key_styles_currency_euro" />
+ </case>
+ <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"
+ >
+ <include
+ latin:keyboardLayout="@xml/key_styles_currency_euro" />
+ </case>
+ <case
+ latin:languageCode="iw"
+ >
+ <key-style
+ latin:styleName="currencyKeyStyle"
+ latin:keyLabel="₪"
+ latin:moreKeys="@string/more_keys_for_currency_general" />
+ <key-style
+ latin:styleName="moreCurrency1KeyStyle"
+ latin:keyLabel="£" />
+ <key-style
+ latin:styleName="moreCurrency2KeyStyle"
+ latin:keyLabel="€" />
+ <key-style
+ latin:styleName="moreCurrency3KeyStyle"
+ latin:keyLabel="$"
+ latin:moreKeys="¢" />
+ <key-style
+ latin:styleName="moreCurrency4KeyStyle"
+ latin:keyLabel="¢" />
+ </case>
+ <!-- United Kingdom -->
+ <case
+ latin:countryCode="GB"
+ >
+ <key-style
+ latin:styleName="currencyKeyStyle"
+ latin:keyLabel="£"
+ latin:moreKeys="@string/more_keys_for_currency_pound" />
+ <key-style
+ latin:styleName="moreCurrency1KeyStyle"
+ latin:keyLabel="€" />
+ <key-style
+ latin:styleName="moreCurrency2KeyStyle"
+ latin:keyLabel="¥" />
+ <key-style
+ latin:styleName="moreCurrency3KeyStyle"
+ latin:keyLabel="$"
+ latin:moreKeys="¢" />
+ <key-style
+ latin:styleName="moreCurrency4KeyStyle"
+ latin:keyLabel="¢" />
+ </case>
+ <default>
+ <include
+ latin:keyboardLayout="@xml/key_styles_currency_dollar" />
+ </default>
+ </switch>
+</merge>