1/* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.inputmethod.keyboard.layout.customizer; 18 19import com.android.inputmethod.keyboard.layout.expected.ExpectedKey; 20import com.android.inputmethod.latin.common.Constants; 21 22import java.util.Locale; 23 24public class TamilCustomizer extends LayoutCustomizer { 25 public TamilCustomizer(final Locale locale) { super(locale); } 26 27 @Override 28 public ExpectedKey getAlphabetKey() { return TAMIL_ALPHABET_KEY; } 29 30 @Override 31 public ExpectedKey[] getLeftShiftKeys(final boolean isPhone) { 32 return EMPTY_KEYS; 33 } 34 35 @Override 36 public ExpectedKey[] getRightShiftKeys(final boolean isPhone) { 37 return isPhone ? EMPTY_KEYS : EXCLAMATION_AND_QUESTION_MARKS; 38 } 39 40 // U+0BA4: "த" TAMIL LETTER TA 41 // U+0BAE/U+0BBF: "மி" TAMIL LETTER MA/TAMIL VOWEL SIGN I 42 // U+0BB4/U+0BCD: "ழ்" TAMIL LETTER LLLA/TAMIL SIGN VIRAMA 43 private static final ExpectedKey TAMIL_ALPHABET_KEY = key( 44 "\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD", Constants.CODE_SWITCH_ALPHA_SYMBOL); 45} 46