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 17 package com.android.inputmethod.keyboard.layout.customizer; 18 19 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder; 20 21 import java.util.Locale; 22 23 /** 24 * Turkic languages layout customizer. 25 */ 26 public class TurkicCustomizer extends LayoutCustomizer { 27 public TurkicCustomizer(final Locale locale) { super(locale); } 28 29 @Override 30 public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) { 31 return builder 32 // U+0259: "" LATIN SMALL LETTER SCHWA 33 // U+00E9: "" LATIN SMALL LETTER E WITH ACUTE 34 .setMoreKeysOf("e", "\u0259", "\u00E9") 35 // U+00FD: "" LATIN SMALL LETTER Y WITH ACUTE 36 .setMoreKeysOf("y", "\u00FD") 37 // U+00FC: "" LATIN SMALL LETTER U WITH DIAERESIS 38 // U+00FB: "" LATIN SMALL LETTER U WITH CIRCUMFLEX 39 // U+00F9: "" LATIN SMALL LETTER U WITH GRAVE 40 // U+00FA: "" LATIN SMALL LETTER U WITH ACUTE 41 // U+016B: "" LATIN SMALL LETTER U WITH MACRON 42 .setMoreKeysOf("u", "\u00FC", "\u00FB", "\u00F9", "\u00FA", "\u016B") 43 // U+0131: "" LATIN SMALL LETTER DOTLESS I 44 // U+00EE: "" LATIN SMALL LETTER I WITH CIRCUMFLEX 45 // U+00EF: "" LATIN SMALL LETTER I WITH DIAERESIS 46 // U+00EC: "" LATIN SMALL LETTER I WITH GRAVE 47 // U+00ED: "" LATIN SMALL LETTER I WITH ACUTE 48 // U+012F: "" LATIN SMALL LETTER I WITH OGONEK 49 // U+012B: "" LATIN SMALL LETTER I WITH MACRON 50 .setMoreKeysOf("i", 51 "\u0131", "\u00EE", "\u00EF", "\u00EC", "\u00ED", "\u012F", "\u012B") 52 // U+00F6: "" LATIN SMALL LETTER O WITH DIAERESIS 53 // U+00F4: "" LATIN SMALL LETTER O WITH CIRCUMFLEX 54 // U+0153: "" LATIN SMALL LIGATURE OE 55 // U+00F2: "" LATIN SMALL LETTER O WITH GRAVE 56 // U+00F3: "" LATIN SMALL LETTER O WITH ACUTE 57 // U+00F5: "" LATIN SMALL LETTER O WITH TILDE 58 // U+00F8: "" LATIN SMALL LETTER O WITH STROKE 59 // U+014D: "" LATIN SMALL LETTER O WITH MACRON 60 .setMoreKeysOf("o", 61 "\u00F6", "\u00F4", "\u0153", "\u00F2", "\u00F3", "\u00F5", "\u00F8", 62 "\u014D") 63 // U+00E2: "" LATIN SMALL LETTER A WITH CIRCUMFLEX 64 // U+00E4: "" LATIN SMALL LETTER A WITH DIAERESIS 65 // U+00E1: "" LATIN SMALL LETTER A WITH ACUTE 66 .setMoreKeysOf("a", "\u00E2", "\u00E4", "\u00E1") 67 // U+015F: "" LATIN SMALL LETTER S WITH CEDILLA 68 // U+00DF: "" LATIN SMALL LETTER SHARP S 69 // U+015B: "" LATIN SMALL LETTER S WITH ACUTE 70 // U+0161: "" LATIN SMALL LETTER S WITH CARON 71 .setMoreKeysOf("s", "\u015F", "\u00DF", "\u015B", "\u0161") 72 // U+011F: "" LATIN SMALL LETTER G WITH BREVE 73 .setMoreKeysOf("g", "\u011F") 74 // U+017E: "" LATIN SMALL LETTER Z WITH CARON 75 .setMoreKeysOf("z", "\u017E") 76 // U+00E7: "" LATIN SMALL LETTER C WITH CEDILLA 77 // U+0107: "" LATIN SMALL LETTER C WITH ACUTE 78 // U+010D: "" LATIN SMALL LETTER C WITH CARON 79 .setMoreKeysOf("c", "\u00E7", "\u0107", "\u010D") 80 // U+0148: "" LATIN SMALL LETTER N WITH CARON 81 // U+00F1: "" LATIN SMALL LETTER N WITH TILDE 82 .setMoreKeysOf("n", "\u0148", "\u00F1"); 83 } 84 } 85