Skip to content
Snippets Groups Projects
Commit d5f32b38 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Add Telugu keyboard

Bug: 10028759
Change-Id: Id1bf030a9928124ead695aa7bf76db48ca58de4b
parent 03aa084c
No related branches found
No related tags found
No related merge requests found
Showing
with 774 additions and 86 deletions
...@@ -24,9 +24,10 @@ ...@@ -24,9 +24,10 @@
<switch> <switch>
<!-- fa: Perisan <!-- fa: Perisan
kn: Kannada kn: Kannada
ne: Nepali --> ne: Nepali
te: Telugu -->
<case <case
latin:languageCode="fa|kn|ne" latin:languageCode="fa|kn|ne|te"
latin:languageSwitchKeyEnabled="true" latin:languageSwitchKeyEnabled="true"
> >
<Key <Key
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
latin:keyStyle="zwnjKeyStyle" /> latin:keyStyle="zwnjKeyStyle" />
</case> </case>
<case <case
latin:languageCode="fa|kn|ne" latin:languageCode="fa|kn|ne|te"
latin:languageSwitchKeyEnabled="false" latin:languageSwitchKeyEnabled="false"
> >
<Key <Key
......
<?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_telugu1" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="8.182%p"
latin:keyLabelFlags="fontNormal|autoXScale"
>
<include latin:keyboardLayout="@xml/rowkeys_telugu2" />
<Key
latin:keyStyle="enterKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<Row
latin:keyWidth="8.182%p"
latin:keyLabelFlags="fontNormal|autoXScale"
>
<include latin:keyboardLayout="@xml/rowkeys_telugu3" />
<include latin:keyboardLayout="@xml/keys_exclamation_question" />
</Row>
<include latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
<?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_telugu" />
</Keyboard>
...@@ -24,9 +24,10 @@ ...@@ -24,9 +24,10 @@
<switch> <switch>
<!-- fa: Perisan <!-- fa: Perisan
kn: Kannada kn: Kannada
ne: Nepali --> ne: Nepali
te: Telugu -->
<case <case
latin:languageCode="fa|kn|ne" latin:languageCode="fa|kn|ne|te"
latin:languageSwitchKeyEnabled="true" latin:languageSwitchKeyEnabled="true"
> >
<Key <Key
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
latin:keyStyle="zwnjKeyStyle" /> latin:keyStyle="zwnjKeyStyle" />
</case> </case>
<case <case
latin:languageCode="fa|kn|ne" latin:languageCode="fa|kn|ne|te"
latin:languageSwitchKeyEnabled="false" latin:languageSwitchKeyEnabled="false"
> >
<Key <Key
......
<?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_telugu"
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>
...@@ -91,7 +91,8 @@ ...@@ -91,7 +91,8 @@
(sr-Latn: Serbian/qwerty) # not yet implemented. (sr-Latn: Serbian/qwerty) # not yet implemented.
sv: Swedish/nordic sv: Swedish/nordic
sw: Swahili/qwerty sw: Swahili/qwerty
(ta: Tamil/tamil) # This is a preliminary keyboard layout. (ta_IN: Tamil (India)/tamil) # This is a preliminary keyboard layout.
(te_IN: Telugu (India)/telugu) # This is a preliminary keyboard layout.
th: Thai/thai th: Thai/thai
tl: Tagalog/spanish tl: Tagalog/spanish
tr: Turkish/qwerty tr: Turkish/qwerty
...@@ -699,6 +700,16 @@ ...@@ -699,6 +700,16 @@
android:imeSubtypeExtraValue="KeyboardLayoutSet=tamil,EmojiCapable" android:imeSubtypeExtraValue="KeyboardLayoutSet=tamil,EmojiCapable"
android:isAsciiCapable="false" android:isAsciiCapable="false"
/> />
<!-- TODO: This telugu 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="0x1e177389"
android:imeSubtypeLocale="te_IN"
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="KeyboardLayoutSet=telugu,EmojiCapable"
android:isAsciiCapable="false"
/>
<subtype android:icon="@drawable/ic_ime_switcher_dark" <subtype android:icon="@drawable/ic_ime_switcher_dark"
android:label="@string/subtype_generic" android:label="@string/subtype_generic"
android:subtypeId="0x1f94d5d4" android:subtypeId="0x1f94d5d4"
......
<?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">
<!-- U+0C4C: "ౌ" TELUGU VOWEL SIGN AU
U+0C14: "ఔ" TELUGU LETTER AU -->
<Key
latin:keySpec="&#x0C4C;"
latin:moreKeys="&#x0C14;,%"
latin:keyHintLabel="1"
latin:additionalMoreKeys="1" />
<!-- U+0C48: "ై" TELUGU VOWEL SIGN AI
U+0C10: "ఐ" TELUGU LETTER AI -->
<Key
latin:keySpec="&#x0C48;"
latin:moreKeys="&#x0C10;,%"
latin:keyHintLabel="2"
latin:additionalMoreKeys="2" />
<!-- U+0C3E: "ా" TELUGU VOWEL SIGN AA
U+0C06: "ఆ" TELUGU LETTER AA -->
<Key
latin:keySpec="&#x0C3E;"
latin:moreKeys="&#x0C06;,%"
latin:keyHintLabel="3"
latin:additionalMoreKeys="3" />
<!-- U+0C40: "ీ" TELUGU VOWEL SIGN II
U+0C08: "ఈ" TELUGU LETTER II -->
<Key
latin:keySpec="&#x0C40;"
latin:moreKeys="&#x0C08;,%"
latin:keyHintLabel="4"
latin:additionalMoreKeys="4" />
<!-- U+0C42: "ూ" TELUGU VOWEL SIGN UU
U+0C0A: "ఊ" TELUGU LETTER UU -->
<Key
latin:keySpec="&#x0C42;"
latin:moreKeys="&#x0C0A;,%"
latin:keyHintLabel="5"
latin:additionalMoreKeys="5" />
<!-- U+0C2C: "బ" TELUGU LETTER BA
U+0C2D: "భ" TELUGU LETTER BHA -->
<Key
latin:keySpec="&#x0C2C;"
latin:moreKeys="&#x0C2D;,%"
latin:keyHintLabel="6"
latin:additionalMoreKeys="6" />
<!-- U+0C39: "హ" TELUGU LETTER HA
U+0C03: "ః" TELUGU SIGN VISARGA -->
<Key
latin:keySpec="&#x0C39;"
latin:moreKeys="&#x0C03;,%"
latin:keyHintLabel="7"
latin:additionalMoreKeys="7" />
<!-- U+0C17: "గ" TELUGU LETTER GA
U+0C18: "ఘ" TELUGU LETTER GHA -->
<Key
latin:keySpec="&#x0C17;"
latin:moreKeys="&#x0C18;,%"
latin:keyHintLabel="8"
latin:additionalMoreKeys="8" />
<!-- U+0C26: "ద" TELUGU LETTER DA
U+0C27: "ధ" TELUGU LETTER DHA -->
<Key
latin:keySpec="&#x0C26;"
latin:moreKeys="&#x0C27;,%"
latin:keyHintLabel="9"
latin:additionalMoreKeys="9" />
<!-- U+0C1C: "జ" TELUGU LETTER JA
U+0C1D: "ఝ" TELUGU LETTER JHA -->
<Key
latin:keySpec="&#x0C1C;"
latin:moreKeys="&#x0C1D;,%"
latin:keyHintLabel="0"
latin:additionalMoreKeys="0" />
<!-- U+0C21: "డ" TELUGU LETTER DDA
U+0C22: "ఢ" TELUGU LETTER DDHA -->
<Key
latin:keySpec="&#x0C21;"
latin:moreKeys="&#x0C22;" />
</merge>
<?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">
<!-- U+0C4B: "ో" TELUGU VOWEL SIGN OO
U+0C13: "ఓ" TELUGU LETTER OO -->
<Key
latin:keySpec="&#x0C4B;"
latin:moreKeys="&#x0C13;" />
<!-- U+0C47: "ే" TELUGU VOWEL SIGN EE
U+0C0F: "ఏ" TELUGU LETTER EE -->
<Key
latin:keySpec="&#x0C47;"
latin:moreKeys="&#x0C0F;" />
<!-- U+0C4D: "్" TELUGU SIGN VIRAMA
U+0C05: "అ" TELUGU LETTER A -->
<Key
latin:keySpec="&#x0C4D;"
latin:moreKeys="&#x0C05;" />
<!-- U+0C3F: "ి" TELUGU VOWEL SIGN I
U+0C07: "ఇ" TELUGU LETTER I -->
<Key
latin:keySpec="&#x0C3F;"
latin:moreKeys="&#x0C07;" />
<!-- U+0C41: "ు" TELUGU VOWEL SIGN U
U+0C09: "ఉ" TELUGU LETTER U -->
<Key
latin:keySpec="&#x0C41;"
latin:moreKeys="&#x0C09;" />
<!-- U+0C2A: "ప" TELUGU LETTER PA
U+0C2B: "ఫ" TELUGU LETTER PHA -->
<Key
latin:keySpec="&#x0C2A;"
latin:moreKeys="&#x0C2B;" />
<!-- U+0C30: "ర" TELUGU LETTER RA
U+0C31: "ఱ" TELUGU LETTER RRA
U+0C43: "ృ" TELUGU VOWEL SIGN VOCALIC R -->
<Key
latin:keySpec="&#x0C30;"
latin:moreKeys="&#x0C31;,&#x0C43;" />
<!-- U+0C15: "క" TELUGU LETTER KA
U+0C16: "ఖ" TELUGU LETTER KHA -->
<Key
latin:keySpec="&#x0C15;"
latin:moreKeys="&#x0C16;" />
<!-- U+0C24: "త" TELUGU LETTER TA
U+0C25: "థ" TELUGU LETTER THA -->
<Key
latin:keySpec="&#x0C24;"
latin:moreKeys="&#x0C25;" />
<!-- U+0C1A: "చ" TELUGU LETTER CA
U+0C1B: "ఛ" TELUGU LETTER CHA -->
<Key
latin:keySpec="&#x0C1A;"
latin:moreKeys="&#x0C1B;" />
<!-- U+0C1F: "ట" TELUGU LETTER TTA
U+0C20: "ఠ" TELUGU LETTER TTHA -->
<Key
latin:keySpec="&#x0C1F;"
latin:moreKeys="&#x0C20;" />
</merge>
<?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">
<!-- U+0C46: "ె" TELUGU VOWEL SIGN E
U+0C12: "ఒ" TELUGU LETTER O -->
<Key
latin:keySpec="&#x0C46;"
latin:moreKeys="&#x0C12;" />
<!-- U+0C02: "ం" TELUGU SIGN ANUSVARA
U+0C0E: "ఎ" TELUGU LETTER E -->
<Key
latin:keySpec="&#x0C02;"
latin:moreKeys="&#x0C0E;" />
<!-- U+0C2E: "మ" TELUGU LETTER MA -->
<Key latin:keySpec="&#x0C2E;" />
<!-- U+0C28: "న" TELUGU LETTER NA
U+0C23: "ణ" TELUGU LETTER NNA
U+0C19: "ఙ" TELUGU LETTER NGA -->
<Key
latin:keySpec="&#x0C28;"
latin:moreKeys="&#x0C23;,&#x0C19;" />
<!-- U+0C35: "వ" TELUGU LETTER VA -->
<Key latin:keySpec="&#x0C35;" />
<!-- U+0C32: "ల" TELUGU LETTER LA
U+0C33: "ళ" TELUGU LETTER LLA -->
<Key
latin:keySpec="&#x0C32;"
latin:moreKeys="&#x0C33;" />
<!-- U+0C38: "స" TELUGU LETTER SA
U+0C36: "శ" TELUGU LETTER SHA -->
<Key
latin:keySpec="&#x0C38;"
latin:moreKeys="&#x0C36;" />
<!-- U+0C0B: "ఋ" TELUGU LETTER VOCALIC R
U+0C4D/U+0C30: "్ర" TELUGU SIGN VIRAMA/TELUGU LETTER RA -->
<Key
latin:keySpec="&#x0C0B;"
latin:moreKeys="&#x0C4D;&#x0C30;" />
<!-- U+0C37: "ష" TELUGU LETTER SSA
U+0C15/U+0C4D/U+0C37: "క్ష" TELUGU LETTER KA/TELUGU SIGN VIRAMA/TELUGU LETTER SSA -->
<Key
latin:keySpec="&#x0C37;"
latin:moreKeys="&#x0C15;&#x0C4D;&#x0C37;" />
<!-- U+0C2F: "య" TELUGU LETTER YA
U+0C1C/U+0C4D/U+0C1E: "జ్ఞ" TELUGU LETTER JA/TELUGU SIGN VIRAMA/TELUGU LETTER NYA -->
<Key
latin:keySpec="&#x0C2F;"
latin:moreKeys="&#x0C1C;&#x0C4D;&#x0C1E;" />
</merge>
<?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="9.091%p"
latin:keyLabelFlags="fontNormal|autoXScale"
>
<include latin:keyboardLayout="@xml/rowkeys_telugu1" />
</Row>
<Row
latin:keyWidth="9.091%p"
latin:keyLabelFlags="fontNormal|autoXScale"
>
<include latin:keyboardLayout="@xml/rowkeys_telugu2" />
</Row>
<Row
latin:keyWidth="9.091%p"
latin:keyLabelFlags="fontNormal|autoXScale"
>
<include latin:keyboardLayout="@xml/rowkeys_telugu3" />
<Key
latin:keyStyle="deleteKeyStyle"
latin:keyWidth="fillRight" />
</Row>
<include latin:keyboardLayout="@xml/row_qwerty4" />
</merge>
\ No newline at end of file
...@@ -25,7 +25,7 @@ import java.util.ArrayList; ...@@ -25,7 +25,7 @@ import java.util.ArrayList;
@SmallTest @SmallTest
public class KeyboardLayoutSetSubtypesCountTests extends KeyboardLayoutSetTestsBase { public class KeyboardLayoutSetSubtypesCountTests extends KeyboardLayoutSetTestsBase {
private static final int NUMBER_OF_SUBTYPES = 76; private static final int NUMBER_OF_SUBTYPES = 77;
private static final int NUMBER_OF_ASCII_CAPABLE_SUBTYPES = 45; private static final int NUMBER_OF_ASCII_CAPABLE_SUBTYPES = 45;
private static final int NUMBER_OF_PREDEFINED_ADDITIONAL_SUBTYPES = 2; private static final int NUMBER_OF_PREDEFINED_ADDITIONAL_SUBTYPES = 2;
......
/*
* Copyright (C) 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.
*/
package com.android.inputmethod.keyboard.layout;
import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
import com.android.inputmethod.latin.Constants;
import java.util.Locale;
/**
* The Telugu keyboard.
*/
public final class Telugu extends LayoutBase {
private static final String LAYOUT_NAME = "telugu";
public Telugu(final LayoutCustomizer customizer) {
super(customizer, Symbols.class, SymbolsShifted.class);
}
@Override
public String getName() { return LAYOUT_NAME; }
public static class TeluguCustomizer extends LayoutCustomizer {
public TeluguCustomizer(final Locale locale) { super(locale); }
@Override
public ExpectedKey getAlphabetKey() { return TELUGU_ALPHABET_KEY; }
@Override
public ExpectedKey getCurrencyKey() { return CURRENCY_RUPEE; }
@Override
public ExpectedKey[] getOtherCurrencyKeys() {
return SymbolsShifted.CURRENCIES_OTHER_GENERIC;
}
@Override
public ExpectedKey[] getLeftShiftKeys(final boolean isPhone) {
return EMPTY_KEYS;
}
@Override
public ExpectedKey[] getRightShiftKeys(final boolean isPhone) {
return isPhone ? EMPTY_KEYS : EXCLAMATION_AND_QUESTION_MARKS;
}
@Override
public ExpectedKey[] getSpaceKeys(final boolean isPhone) {
return joinKeys(LANGUAGE_SWITCH_KEY, SPACE_KEY, key(ZWNJ_KEY, ZWJ_KEY));
}
// U+0C24/U+0C46: "తె" TELUGU LETTER TA/TELUGU VOWEL SIGN E
// U+0C32/U+0C41: "లు" TELUGU LETTER LA/TELUGU VOWEL SIGN U
// U+0C17/U+0C41: "గు" TELUGU LETTER GA/TELUGU VOWEL SIGN U
private static final ExpectedKey TELUGU_ALPHABET_KEY = key(
"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41", Constants.CODE_SWITCH_ALPHA_SYMBOL);
// U+20B9: "₹" INDIAN RUPEE SIGN
private static final ExpectedKey CURRENCY_RUPEE = key("\u20B9",
Symbols.CURRENCY_GENERIC_MORE_KEYS);
}
@Override
ExpectedKey[][] getCommonAlphabetLayout(boolean isPhone) { return ALPHABET_COMMON; }
@Override
ExpectedKey[][] getCommonAlphabetShiftLayout(boolean isPhone, final int elementId) {
return null;
}
private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder()
.setKeysOfRow(1,
// U+0C4C: "ౌ" TELUGU VOWEL SIGN AU
// U+0C14: "ఔ" TELUGU LETTER AU
key("\u0C4C", joinMoreKeys("\u0C14", "1")),
// U+0C48: "ై" TELUGU VOWEL SIGN AI
// U+0C10: "ఐ" TELUGU LETTER AI
key("\u0C48", joinMoreKeys("\u0C10", "2")),
// U+0C3E: "ా" TELUGU VOWEL SIGN AA
// U+0C06: "ఆ" TELUGU LETTER AA
key("\u0C3E", joinMoreKeys("\u0C06", "3")),
// U+0C40: "ీ" TELUGU VOWEL SIGN II
// U+0C08: "ఈ" TELUGU LETTER II
key("\u0C40", joinMoreKeys("\u0C08", "4")),
// U+0C42: "ూ" TELUGU VOWEL SIGN UU
// U+0C0A: "ఊ" TELUGU LETTER UU
key("\u0C42", joinMoreKeys("\u0C0A", "5")),
// U+0C2C: "బ" TELUGU LETTER BA
// U+0C2D: "భ" TELUGU LETTER BHA
key("\u0C2C", joinMoreKeys("\u0C2D", "6")),
// U+0C39: "హ" TELUGU LETTER HA
// U+0C03: "ః" TELUGU SIGN VISARGA
key("\u0C39", joinMoreKeys("\u0C03", "7")),
// U+0C17: "గ" TELUGU LETTER GA
// U+0C18: "ఘ" TELUGU LETTER GHA
key("\u0C17", joinMoreKeys("\u0C18", "8")),
// U+0C26: "ద" TELUGU LETTER DA
// U+0C27: "ధ" TELUGU LETTER DHA
key("\u0C26", joinMoreKeys("\u0C27", "9")),
// U+0C1C: "జ" TELUGU LETTER JA
// U+0C1D: "ఝ" TELUGU LETTER JHA
key("\u0C1C", joinMoreKeys("\u0C1D", "0")),
// U+0C21: "డ" TELUGU LETTER DDA
// U+0C22: "ఢ" TELUGU LETTER DDHA
key("\u0C21", moreKey("\u0C22")))
.setKeysOfRow(2,
// U+0C4B: "ో" TELUGU VOWEL SIGN OO
// U+0C13: "ఓ" TELUGU LETTER OO
key("\u0C4B", moreKey("\u0C13")),
// U+0C47: "ే" TELUGU VOWEL SIGN EE
// U+0C0F: "ఏ" TELUGU LETTER EE
key("\u0C47", moreKey("\u0C0F")),
// U+0C4D: "్" TELUGU SIGN VIRAMA
// U+0C05: "అ" TELUGU LETTER A
key("\u0C4D", moreKey("\u0C05")),
// U+0C3F: "ి" TELUGU VOWEL SIGN I
// U+0C07: "ఇ" TELUGU LETTER I
key("\u0C3F", moreKey("\u0C07")),
// U+0C41: "ు" TELUGU VOWEL SIGN U
// U+0C09: "ఉ" TELUGU LETTER U
key("\u0C41", moreKey("\u0C09")),
// U+0C2A: "ప" TELUGU LETTER PA
// U+0C2B: "ఫ" TELUGU LETTER PHA
key("\u0C2A", moreKey("\u0C2B")),
// U+0C30: "ర" TELUGU LETTER RA
// U+0C31: "ఱ" TELUGU LETTER RRA
// U+0C43: "ృ" TELUGU VOWEL SIGN VOCALIC R
key("\u0C30", joinMoreKeys("\u0C31", "\u0C43")),
// U+0C15: "క" TELUGU LETTER KA
// U+0C16: "ఖ" TELUGU LETTER KHA
key("\u0C15", moreKey("\u0C16")),
// U+0C24: "త" TELUGU LETTER TA
// U+0C25: "థ" TELUGU LETTER THA
key("\u0C24", moreKey("\u0C25")),
// U+0C1A: "చ" TELUGU LETTER CA
// U+0C1B: "ఛ" TELUGU LETTER CHA
key("\u0C1A", moreKey("\u0C1B")),
// U+0C1F: "ట" TELUGU LETTER TTA
// U+0C20: "ఠ" TELUGU LETTER TTHA
key("\u0C1F", moreKey("\u0C20")))
.setKeysOfRow(3,
// U+0C46: "ె" TELUGU VOWEL SIGN E
// U+0C12: "ఒ" TELUGU LETTER O
key("\u0C46", moreKey("\u0C12")),
// U+0C02: "ం" TELUGU SIGN ANUSVARA
// U+0C0E: "ఎ" TELUGU LETTER E
key("\u0C02", moreKey("\u0C0E")),
// U+0C2E: "మ" TELUGU LETTER MA
"\u0C2E",
// U+0C28: "న" TELUGU LETTER NA
// U+0C23: "ణ" TELUGU LETTER NNA
// U+0C19: "ఙ" TELUGU LETTER NGA
key("\u0C28", joinMoreKeys("\u0C23", "\u0C19")),
// U+0C35: "వ" TELUGU LETTER VA
"\u0C35",
// U+0C32: "ల" TELUGU LETTER LA
// U+0C33: "ళ" TELUGU LETTER LLA
key("\u0C32", moreKey("\u0C33")),
// U+0C38: "స" TELUGU LETTER SA
// U+0C36: "శ" TELUGU LETTER SHA
key("\u0C38", moreKey("\u0C36")),
// U+0C0B: "ఋ" TELUGU LETTER VOCALIC R
// U+0C4D/U+0C30: "్ర" TELUGU SIGN VIRAMA/TELUGU LETTER RA
key("\u0C0B", moreKey("\u0C4D\u0C30")),
// U+0C37: "ష" TELUGU LETTER SSA
// U+0C15/U+0C4D/U+0C37:
// "క్ష" TELUGU LETTER KA/TELUGU SIGN VIRAMA/TELUGU LETTER SSA
key("\u0C37", moreKey("\u0C15\u0C4D\u0C37")),
// U+0C2F: "య" TELUGU LETTER YA
// U+0C1C/U+0C4D/U+0C1E:
// "జ్ఞ" TELUGU LETTER JA/TELUGU SIGN VIRAMA/TELUGU LETTER NYA
key("\u0C2F", moreKey("\u0C1C\u0C4D\u0C1E")))
.build();
}
/*
* Copyright (C) 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.
*/
package com.android.inputmethod.keyboard.layout.tests;
import android.test.suitebuilder.annotation.SmallTest;
import com.android.inputmethod.keyboard.layout.LayoutBase;
import com.android.inputmethod.keyboard.layout.Telugu;
import com.android.inputmethod.keyboard.layout.Telugu.TeluguCustomizer;
import java.util.Locale;
/**
* te_IN: Telugu (India)/telugu
*/
@SmallTest
public final class TestsTeluguIN extends LayoutTestsBase {
private static final Locale LOCALE = new Locale("te", "IN");
private static final LayoutBase LAYOUT = new Telugu(new TeluguCustomizer(LOCALE));
@Override
LayoutBase getLayout() { return LAYOUT; }
}
<?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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for "switch to alphabetic" key.
U+0C24/U+0C46: "తె" TELUGU LETTER TA/TELUGU VOWEL SIGN E
U+0C32/U+0C41: "లు" TELUGU LETTER LA/TELUGU VOWEL SIGN U
U+0C17/U+0C41: "గు" TELUGU LETTER GA/TELUGU VOWEL SIGN U -->
<string name="keylabel_to_alpha">&#x0C24;&#x0C46;&#x0C32;&#x0C41;&#x0C17;&#x0C41;</string>
<!-- U+20B9: "₹" INDIAN RUPEE SIGN -->
<string name="keyspec_currency">&#x20B9;</string>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment