Rename keyboard XML files

* Slavic to East Slavic
* Serbian to South Slavic
* Scandinavian to Nordic

Bug: 6150183
Change-Id: I8f5641aa07b83cbb225f5fd73e351a6f8abe0784
main
Tadashi G. Takaoka 2012-03-12 14:50:03 +09:00
parent 2de0c4b754
commit 47141f7011
36 changed files with 81 additions and 41 deletions

View File

@ -388,6 +388,7 @@
<attr name="parentStyle" format="string" /> <attr name="parentStyle" format="string" />
</declare-styleable> </declare-styleable>
<!-- TODO: Should be removed. This is no longer required if InputMethodSubtype is supported. -->
<declare-styleable name="KeyboardSet"> <declare-styleable name="KeyboardSet">
<!-- Locale of the keyboard layouts --> <!-- Locale of the keyboard layouts -->
<attr name="keyboardLocale" format="string" /> <attr name="keyboardLocale" format="string" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="be"> latin:keyboardLocale="be">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_slavic" /> latin:elementKeyboard="@xml/kbd_east_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="da"> latin:keyboardLocale="da">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_scandinavian" /> latin:elementKeyboard="@xml/kbd_nordic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="et"> latin:keyboardLocale="et">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_scandinavian" /> latin:elementKeyboard="@xml/kbd_nordic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="fi"> latin:keyboardLocale="fi">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_scandinavian" /> latin:elementKeyboard="@xml/kbd_nordic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="ky"> latin:keyboardLocale="ky">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_slavic" /> latin:elementKeyboard="@xml/kbd_east_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="mk"> latin:keyboardLocale="mk">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_serbian" /> latin:elementKeyboard="@xml/kbd_south_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="nb"> latin:keyboardLocale="nb">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_scandinavian" /> latin:elementKeyboard="@xml/kbd_nordic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="ru"> latin:keyboardLocale="ru">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_slavic" /> latin:elementKeyboard="@xml/kbd_east_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="sr"> latin:keyboardLocale="sr">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_serbian" /> latin:elementKeyboard="@xml/kbd_south_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="sv"> latin:keyboardLocale="sv">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_scandinavian" /> latin:elementKeyboard="@xml/kbd_nordic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -27,7 +27,7 @@
latin:keyWidth="7.60%p" latin:keyWidth="7.60%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic1" /> latin:keyboardLayout="@xml/rowkeys_east_slavic1" />
<!-- U+044A: "ъ" CYRILLIC SMALL LETTER HARD SIGN --> <!-- U+044A: "ъ" CYRILLIC SMALL LETTER HARD SIGN -->
<Key <Key
latin:keyLabel="&#x044A;" /> latin:keyLabel="&#x044A;" />
@ -40,7 +40,7 @@
latin:keyWidth="7.60%p" latin:keyWidth="7.60%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic2" latin:keyboardLayout="@xml/rowkeys_east_slavic2"
latin:keyXPos="2.25%p" /> latin:keyXPos="2.25%p" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"
@ -53,7 +53,7 @@
<Key <Key
latin:keyStyle="shiftKeyStyle" /> latin:keyStyle="shiftKeyStyle" />
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic3" /> latin:keyboardLayout="@xml/rowkeys_east_slavic3" />
<include <include
latin:keyboardLayout="@xml/keys_comma_period" /> latin:keyboardLayout="@xml/keys_comma_period" />
<include <include

View File

@ -27,7 +27,7 @@
latin:keyWidth="7.9%p" latin:keyWidth="7.9%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian1" /> latin:keyboardLayout="@xml/rowkeys_nordic1" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyXPos="-10.0%p" latin:keyXPos="-10.0%p"
@ -37,7 +37,7 @@
latin:keyWidth="7.9%p" latin:keyWidth="7.9%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian2" latin:keyboardLayout="@xml/rowkeys_nordic2"
latin:keyXPos="3.5%p" /> latin:keyXPos="3.5%p" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"

View File

@ -27,7 +27,7 @@
latin:keyWidth="8.0%p" latin:keyWidth="8.0%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian1" /> latin:keyboardLayout="@xml/rowkeys_south_slavic1" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyXPos="-10.0%p" latin:keyXPos="-10.0%p"
@ -37,7 +37,7 @@
latin:keyWidth="7.9%p" latin:keyWidth="7.9%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian2" latin:keyboardLayout="@xml/rowkeys_south_slavic2"
latin:keyXPos="2.15%p" /> latin:keyXPos="2.15%p" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"
@ -51,7 +51,7 @@
latin:keyStyle="shiftKeyStyle" latin:keyStyle="shiftKeyStyle"
latin:keyWidth="8.0%p" /> latin:keyWidth="8.0%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian3" /> latin:keyboardLayout="@xml/rowkeys_south_slavic3" />
<include <include
latin:keyboardLayout="@xml/keys_comma_period" /> latin:keyboardLayout="@xml/keys_comma_period" />
<include <include

View File

@ -30,7 +30,7 @@
latin:keyStyle="tabKeyStyle" latin:keyStyle="tabKeyStyle"
latin:keyLabelFlags="alignLeft" /> latin:keyLabelFlags="alignLeft" />
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic1" /> latin:keyboardLayout="@xml/rowkeys_east_slavic1" />
<!-- U+044A: "ъ" CYRILLIC SMALL LETTER HARD SIGN --> <!-- U+044A: "ъ" CYRILLIC SMALL LETTER HARD SIGN -->
<Key <Key
latin:keyLabel="&#x044A;" /> latin:keyLabel="&#x044A;" />
@ -46,7 +46,7 @@
latin:keyLabelFlags="alignLeft" latin:keyLabelFlags="alignLeft"
latin:keyWidth="9.375%p" /> latin:keyWidth="9.375%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic2" /> latin:keyboardLayout="@xml/rowkeys_east_slavic2" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"
latin:keyXPos="-9.375%p" latin:keyXPos="-9.375%p"
@ -59,7 +59,7 @@
latin:keyStyle="shiftKeyStyle" latin:keyStyle="shiftKeyStyle"
latin:keyWidth="12.750%p" /> latin:keyWidth="12.750%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic3" /> latin:keyboardLayout="@xml/rowkeys_east_slavic3" />
<include <include
latin:keyboardLayout="@xml/keys_comma_period" /> latin:keyboardLayout="@xml/keys_comma_period" />
<Key <Key

View File

@ -31,7 +31,7 @@
latin:keyLabelFlags="alignLeft" latin:keyLabelFlags="alignLeft"
latin:keyWidth="7.500%p" /> latin:keyWidth="7.500%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian1" /> latin:keyboardLayout="@xml/rowkeys_nordic1" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyXPos="-11.500%p" latin:keyXPos="-11.500%p"
@ -45,7 +45,7 @@
latin:keyLabelFlags="alignLeft" latin:keyLabelFlags="alignLeft"
latin:keyWidth="9.375%p" /> latin:keyWidth="9.375%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian2" /> latin:keyboardLayout="@xml/rowkeys_nordic2" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"
latin:keyXPos="-9.375%p" latin:keyXPos="-9.375%p"

View File

@ -30,7 +30,7 @@
latin:keyStyle="tabKeyStyle" latin:keyStyle="tabKeyStyle"
latin:keyLabelFlags="alignLeft" /> latin:keyLabelFlags="alignLeft" />
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian1" /> latin:keyboardLayout="@xml/rowkeys_south_slavic1" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyXPos="-9.219%p" latin:keyXPos="-9.219%p"
@ -44,7 +44,7 @@
latin:keyLabelFlags="alignLeft" latin:keyLabelFlags="alignLeft"
latin:keyWidth="11.172%p" /> latin:keyWidth="11.172%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian2" /> latin:keyboardLayout="@xml/rowkeys_south_slavic2" />
<Key <Key
latin:keyStyle="enterKeyStyle" latin:keyStyle="enterKeyStyle"
latin:keyXPos="-15.704%p" latin:keyXPos="-15.704%p"
@ -57,7 +57,7 @@
latin:keyStyle="shiftKeyStyle" latin:keyStyle="shiftKeyStyle"
latin:keyWidth="13.829%p" /> latin:keyWidth="13.829%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian3" /> latin:keyboardLayout="@xml/rowkeys_south_slavic3" />
<include <include
latin:keyboardLayout="@xml/keys_comma_period" /> latin:keyboardLayout="@xml/keys_comma_period" />
</Row> </Row>

View File

@ -23,7 +23,7 @@
latin:keyboardLocale="uk"> latin:keyboardLocale="uk">
<Element <Element
latin:elementName="alphabet" latin:elementName="alphabet"
latin:elementKeyboard="@xml/kbd_slavic" /> latin:elementKeyboard="@xml/kbd_east_slavic" />
<Element <Element
latin:elementName="symbols" latin:elementName="symbols"
latin:elementKeyboard="@xml/kbd_symbols" /> latin:elementKeyboard="@xml/kbd_symbols" />

View File

@ -22,5 +22,5 @@
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
> >
<include <include
latin:keyboardLayout="@xml/rows_slavic" /> latin:keyboardLayout="@xml/rows_east_slavic" />
</Keyboard> </Keyboard>

View File

@ -22,5 +22,5 @@
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
> >
<include <include
latin:keyboardLayout="@xml/rows_serbian" /> latin:keyboardLayout="@xml/rows_nordic" />
</Keyboard> </Keyboard>

View File

@ -22,5 +22,5 @@
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin" xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
> >
<include <include
latin:keyboardLayout="@xml/rows_scandinavian" /> latin:keyboardLayout="@xml/rows_south_slavic" />
</Keyboard> </Keyboard>

View File

@ -20,9 +20,46 @@
<!-- The attributes in this XML file provide configuration information --> <!-- The attributes in this XML file provide configuration information -->
<!-- for the Input Method Manager. --> <!-- for the Input Method Manager. -->
<!-- Keyboard: en_US, en_GB, ar, be, bg, cs, da, de, de(QWERTY), el, es, es_US, et, fi, fr, fr_CA, <!-- Supported locales: name/layout
fr_CH, hr, hu, it, iw, ka, ky, lt, lv, mk, nb, nl, pl, pt, ro, ru, sk, sl, sr, sv, tr, uk, ar: Arabic/arabic
vi --> be: Belarusian/east_slavic
bg: Bulgarian/bulgarian
cs: Czech/qwertz
da: Danish/nordic
de: German/qwertz
de_ZZ: German (QWERTY)/qwerty
el: Greek/greek
en_US: English United States/qwerty
en_GB: English Great Britain/qwerty
es: Spanish/spanish
et: Estonian/nordic
fi: Finnish/nordic
fr: French/azerty
fr_CA: French Canada/qwerty
fr_CH: French Switzerland/qwertz
hr: Croatian/qwertz
hu: Hungarian/qwertz
it: Italian/qwerty
iw: Hebrew/hebrew
ka: Georgian/georgian
ky: Kyrgyz/east_slavic
lt: Lithuanian/qwerty
lv: Latvian/qwerty
mk: Macedonian/south_slavic
nb: Norwaian Bokmål/nordic
nl: Dutch/qwerty
pl: Polish/qwerty
pt: Portuguese/qwerty
ro: Romanian/qwerty
ru: Russian/east_slavic
sk: Slovak/qwerty
sl: Slovenian/qwerty
sr: Serbian/south_slavic
sv: Swedish/nordic
tr: Turkish/qwerty
uk: Ukrainian/east_slavic
vi: Vietnamese/qwerty
-->
<!-- TODO: use <lang>_keyboard icon instead of a common keyboard icon. --> <!-- TODO: use <lang>_keyboard icon instead of a common keyboard icon. -->
<!-- If IME doesn't have an applicable subtype, the first subtype will be used as a default <!-- If IME doesn't have an applicable subtype, the first subtype will be used as a default
subtype.--> subtype.-->

View File

@ -27,13 +27,13 @@
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic1" /> latin:keyboardLayout="@xml/rowkeys_east_slavic1" />
</Row> </Row>
<Row <Row
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic2" /> latin:keyboardLayout="@xml/rowkeys_east_slavic2" />
</Row> </Row>
<Row <Row
latin:keyWidth="8.5%p" latin:keyWidth="8.5%p"
@ -42,7 +42,7 @@
latin:keyStyle="shiftKeyStyle" latin:keyStyle="shiftKeyStyle"
latin:keyWidth="11.75%p" /> latin:keyWidth="11.75%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_slavic3" /> latin:keyboardLayout="@xml/rowkeys_east_slavic3" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" /> latin:keyWidth="fillRight" />

View File

@ -27,13 +27,13 @@
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian1" /> latin:keyboardLayout="@xml/rowkeys_nordic1" />
</Row> </Row>
<Row <Row
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_scandinavian2" /> latin:keyboardLayout="@xml/rowkeys_nordic2" />
</Row> </Row>
<Row <Row
latin:keyWidth="10%p" latin:keyWidth="10%p"

View File

@ -27,13 +27,13 @@
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian1" /> latin:keyboardLayout="@xml/rowkeys_south_slavic1" />
</Row> </Row>
<Row <Row
latin:keyWidth="9.091%p" latin:keyWidth="9.091%p"
> >
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian2" /> latin:keyboardLayout="@xml/rowkeys_south_slavic2" />
</Row> </Row>
<Row <Row
latin:keyWidth="8.5%p" latin:keyWidth="8.5%p"
@ -42,7 +42,7 @@
latin:keyStyle="shiftKeyStyle" latin:keyStyle="shiftKeyStyle"
latin:keyWidth="11.75%p" /> latin:keyWidth="11.75%p" />
<include <include
latin:keyboardLayout="@xml/rowkeys_serbian3" /> latin:keyboardLayout="@xml/rowkeys_south_slavic3" />
<Key <Key
latin:keyStyle="deleteKeyStyle" latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" /> latin:keyWidth="fillRight" />

View File

@ -379,6 +379,8 @@ public class KeyboardSet {
} }
} }
// TODO: Should be removed. This is no longer required if {@link InputMethodSubtype} is
// supported.
public static String parseKeyboardLocale(Resources res, int resId) public static String parseKeyboardLocale(Resources res, int resId)
throws XmlPullParserException, IOException { throws XmlPullParserException, IOException {
final XmlPullParser parser = res.getXml(resId); final XmlPullParser parser = res.getXml(resId);