Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 074e9812 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Add Tamil keyboard"

parents 63ccbf1c b5696b4f
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2014, 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">
    <include latin:keyboardLayout="@xml/key_styles_common" />
    <Row
        latin:keyWidth="8.182%p"
        latin:keyLabelFlags="fontNormal|autoXScale"
    >
        <include latin:keyboardLayout="@xml/rowkeys_tamil1" />
        <Key
            latin:keyStyle="deleteKeyStyle"
            latin:keyWidth="fillRight" />
    </Row>
    <Row
        latin:keyWidth="8.182%p"
        latin:keyLabelFlags="fontNormal|autoXScale"
    >
        <include latin:keyboardLayout="@xml/rowkeys_tamil2" />
        <Key
            latin:keyStyle="enterKeyStyle"
            latin:keyWidth="fillRight" />
    </Row>
    <Row
        latin:keyWidth="8.182%p"
        latin:keyLabelFlags="fontNormal|autoXScale"
    >
        <include latin:keyboardLayout="@xml/rowkeys_tamil3" />
        <include latin:keyboardLayout="@xml/keys_exclamation_question" />
    </Row>
    <include latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2014, 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.
*/
-->

<Keyboard
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
>
    <include
        latin:keyboardLayout="@xml/rows_tamil" />
</Keyboard>
+33 −54
Original line number Diff line number Diff line
@@ -18,15 +18,10 @@
*/
-->

<merge
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
>
<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 latin:passwordInput="true">
            <include latin:keyboardLayout="@xml/key_styles_currency_dollar" />
        </case>
        <!-- Countries using Euro currency, 23 countries as of November 2012.
              1. Andorra (ca_AD, ca_ES)
@@ -52,11 +47,8 @@
             21. Slovenia (sl_SI)
             22. Spain (es_ES, ca_ES, eu_ES, gl_ES)
             23. Vatican City (it_VA) -->
        <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 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>
        <!-- Note: Some subtype locale may not have country code, and it it supposed to indicate the
             country where the language originally/mainly spoken. -->
@@ -76,33 +68,37 @@
             sl: Slovenia (sl_SL)
             sv: Sweden (sv_SV)
             tr: Trukey (tr_TR) -->
        <case
            latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|sv|tr"
        >
            <include
                latin:keyboardLayout="@xml/key_styles_currency_euro" />
        <case latin:localeCode="da|de|es|el|fi|fr|it|nl|sk|sl|sv|tr">
            <include latin:keyboardLayout="@xml/key_styles_currency_euro" />
        </case>
        <!-- ca: Catalan (Andorra, Spain)
             et: Estonian (Estonia)
             lb: Luxembougish (Luxembourg)
             mt: Maltese (Malta) -->
        <case
            latin:languageCode="ca|et|lb|mt"
        >
            <include
                latin:keyboardLayout="@xml/key_styles_currency_euro" />
        <case latin:languageCode="ca|et|lb|mt">
            <include latin:keyboardLayout="@xml/key_styles_currency_euro" />
        </case>
        <!-- IN: India (Rupee) -->
        <case
            latin:countryCode="IN"
        >
            <!-- U+20B9: "₹" INDIAN RUPEE SIGN
                 U+00A3: "£" POUND SIGN
        <!-- fa: Persian (Rial and Afgahni)
             hi: Hindi (Indian Rupee)
             iw: Hebrew (New Sheqel)
             lo: Lao (Kip)
             mn: Mongolian (Tugrik)
             ne: Nepali (Nepalese Rupee)
             ta_IN: Tamil (Tamil Rupee)
             th: Thai (Baht)
             uk: Ukrainian (Hryvnia)
             vi: Vietnamese (Dong)  -->
        <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
             its unicode, although there is no font glyph for it as of November 2012. -->
        <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for
             its unicode, although there is no font glyph for it as of September 2013. -->
        <case latin:languageCode="fa|hi|iw|lo|mn|ne|ta|th|uk|vi">
            <!-- U+00A3: "£" POUND SIGN
                 U+20AC: "€" EURO SIGN
                 U+00A2: "¢" CENT SIGN -->
            <key-style
                latin:styleName="currencyKeyStyle"
                latin:keySpec="&#x20B9;"
                latin:keySpec="!text/keyspec_currency"
                latin:moreKeys="!text/morekeys_currency" />
            <key-style
                latin:styleName="moreCurrency1KeyStyle"
@@ -118,29 +114,15 @@
                latin:styleName="moreCurrency4KeyStyle"
                latin:keySpec="&#x00A2;" />
        </case>
        <!-- bn: Bengali (Bangladesh Taka)
             fa: Persian (Rial and Afgahni)
             hi: Hindi (Indian Rupee)
             iw: Hebrew (New Sheqel)
             lo: Lao (Kip)
             mn: Mongolian (Tugrik)
             ne: Nepali (Nepalese Rupee)
             th: Thai (Baht)
             uk: Ukrainian (Hryvnia)
             vi: Vietnamese (Dong)  -->
        <!-- TODO: The currency sign of Turkish Lira was created in 2012 and assigned U+20BA for
             its unicode, although there is no font glyph for it as of November 2012. -->
        <!-- TODO: The currency sign of Armenian Dram was created in 2012 and assigned U+058F for
             its unicode, although there is no font glyph for it as of September 2013. -->
        <case
            latin:languageCode="bn|fa|hi|iw|lo|mn|ne|th|uk|vi"
        >
            <!-- U+00A3: "£" POUND SIGN
        <!-- IN: India (Rupee) -->
        <case latin:countryCode="IN">
            <!-- U+20B9: "₹" INDIAN RUPEE SIGN
                 U+00A3: "£" POUND SIGN
                 U+20AC: "€" EURO SIGN
                 U+00A2: "¢" CENT SIGN -->
            <key-style
                latin:styleName="currencyKeyStyle"
                latin:keySpec="!text/keyspec_currency"
                latin:keySpec="&#x20B9;"
                latin:moreKeys="!text/morekeys_currency" />
            <key-style
                latin:styleName="moreCurrency1KeyStyle"
@@ -157,9 +139,7 @@
                latin:keySpec="&#x00A2;" />
        </case>
        <!-- GB: United Kingdom (Pound) -->
        <case
            latin:countryCode="GB"
        >
        <case latin:countryCode="GB">
            <!-- U+00A3: "£" POUND SIGN
                 U+20AC: "€" EURO SIGN
                 U+00A5: "¥" YEN SIGN
@@ -185,8 +165,7 @@
        </case>
        <!-- ar: Arabic (Dollar and Rial) -->
        <default>
            <include
                latin:keyboardLayout="@xml/key_styles_currency_dollar" />
            <include latin:keyboardLayout="@xml/key_styles_currency_dollar" />
        </default>
    </switch>
</merge>
+42 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2014, 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.
*/
-->

<KeyboardLayoutSet
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin">
    <Element
        latin:elementName="alphabet"
        latin:elementKeyboard="@xml/kbd_tamil"
        latin:enableProximityCharsCorrection="true" />
    <Element
        latin:elementName="symbols"
        latin:elementKeyboard="@xml/kbd_symbols" />
    <Element
        latin:elementName="symbolsShifted"
        latin:elementKeyboard="@xml/kbd_symbols_shift" />
    <Element
        latin:elementName="phone"
        latin:elementKeyboard="@xml/kbd_phone" />
    <Element
        latin:elementName="phoneSymbols"
        latin:elementKeyboard="@xml/kbd_phone_symbols" />
    <Element
        latin:elementName="number"
        latin:elementKeyboard="@xml/kbd_number" />
</KeyboardLayoutSet>
+11 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@
    (sr-Latn: Serbian/qwerty) # not yet implemented.
    sv: Swedish/nordic
    sw: Swahili/qwerty
    (ta: Tamil/tamil) # This is a preliminary keyboard layout.
    th: Thai/thai
    tl: Tagalog/spanish
    tr: Turkish/qwerty
@@ -666,6 +667,16 @@
            android:imeSubtypeExtraValue="KeyboardLayoutSet=qwerty,AsciiCapable,EmojiCapable"
            android:isAsciiCapable="true"
    />
    <!-- TODO: This tamil keyboard is a preliminary layout.
               This isn't based on the final specification. -->
    <subtype android:icon="@drawable/ic_ime_switcher_dark"
            android:label="@string/subtype_generic"
            android:subtypeId="0x67acea2a"
            android:imeSubtypeLocale="ta_IN"
            android:imeSubtypeMode="keyboard"
            android:imeSubtypeExtraValue="KeyboardLayoutSet=tamil,EmojiCapable"
            android:isAsciiCapable="false"
    />
    <subtype android:icon="@drawable/ic_ime_switcher_dark"
            android:label="@string/subtype_generic"
            android:subtypeId="0x1f94d5d4"
Loading