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 public class NoLanguageCustomizer extends LayoutCustomizer { 24 public NoLanguageCustomizer(final Locale locale) { super(locale); } 25 26 @Override 27 public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) { 28 return builder 29 // U+0175: "" LATIN SMALL LETTER W WITH CIRCUMFLEX 30 .setMoreKeysOf("w", "\u0175") 31 // U+00E8: "" LATIN SMALL LETTER E WITH GRAVE 32 // U+00E9: "" LATIN SMALL LETTER E WITH ACUTE 33 // U+00EA: "" LATIN SMALL LETTER E WITH CIRCUMFLEX 34 // U+00EB: "" LATIN SMALL LETTER E WITH DIAERESIS 35 // U+0113: "" LATIN SMALL LETTER E WITH MACRON 36 // U+0115: "" LATIN SMALL LETTER E WITH BREVE 37 // U+0117: "" LATIN SMALL LETTER E WITH DOT ABOVE 38 // U+0119: "" LATIN SMALL LETTER E WITH OGONEK 39 // U+011B: "" LATIN SMALL LETTER E WITH CARON 40 .setMoreKeysOf("e", 41 "\u00E8", "\u00E9", "\u00EA", "\u00EB", "\u0113", "\u0115", "\u0117", 42 "\u0119", "\u011B") 43 // U+0155: "" LATIN SMALL LETTER R WITH ACUTE 44 // U+0157: "" LATIN SMALL LETTER R WITH CEDILLA 45 // U+0159: "" LATIN SMALL LETTER R WITH CARON 46 .setMoreKeysOf("r", "\u0155", "\u0157", "\u0159") 47 // U+00FE: "" LATIN SMALL LETTER THORN 48 // U+0163: "" LATIN SMALL LETTER T WITH CEDILLA 49 // U+0165: "" LATIN SMALL LETTER T WITH CARON 50 // U+0167: "" LATIN SMALL LETTER T WITH STROKE 51 .setMoreKeysOf("t", "\u00FE", "\u0163", "\u0165", "\u0167") 52 // U+00FD: "" LATIN SMALL LETTER Y WITH ACUTE 53 // U+0177: "" LATIN SMALL LETTER Y WITH CIRCUMFLEX 54 // U+00FF: "" LATIN SMALL LETTER Y WITH DIAERESIS 55 // U+0133: "" LATIN SMALL LIGATURE IJ 56 .setMoreKeysOf("y", "\u00FD", "\u0177", "\u00FF", "\u0133") 57 // U+00F9: "" LATIN SMALL LETTER U WITH GRAVE 58 // U+00FA: "" LATIN SMALL LETTER U WITH ACUTE 59 // U+00FB: "" LATIN SMALL LETTER U WITH CIRCUMFLEX 60 // U+00FC: "" LATIN SMALL LETTER U WITH DIAERESIS 61 // U+0169: "" LATIN SMALL LETTER U WITH TILDE 62 // U+016B: "" LATIN SMALL LETTER U WITH MACRON 63 // U+016D: "" LATIN SMALL LETTER U WITH BREVE 64 // U+016F: "" LATIN SMALL LETTER U WITH RING ABOVE 65 // U+0171: "" LATIN SMALL LETTER U WITH DOUBLE ACUTE 66 // U+0173: "" LATIN SMALL LETTER U WITH OGONEK 67 .setMoreKeysOf("u", 68 "\u00F9", "\u00FA", "\u00FB", "\u00FC", "\u0169", "\u016B", "\u016D", 69 "\u016F", "\u0171", "\u0173") 70 // U+00EC: "" LATIN SMALL LETTER I WITH GRAVE 71 // U+00ED: "" LATIN SMALL LETTER I WITH ACUTE 72 // U+00EE: "" LATIN SMALL LETTER I WITH CIRCUMFLEX 73 // U+00EF: "" LATIN SMALL LETTER I WITH DIAERESIS 74 // U+0129: "" LATIN SMALL LETTER I WITH TILDE 75 // U+012B: "" LATIN SMALL LETTER I WITH MACRON 76 // U+012D: "" LATIN SMALL LETTER I WITH BREVE 77 // U+012F: "" LATIN SMALL LETTER I WITH OGONEK 78 // U+0131: "" LATIN SMALL LETTER DOTLESS I 79 // U+0133: "" LATIN SMALL LIGATURE IJ 80 .setMoreKeysOf("i", 81 "\u00EC", "\u00ED", "\u00EE", "\u00EF", "\u0129", "\u012B", "\u012D", 82 "\u012F", "\u0131", "\u0133") 83 // U+00F2: "" LATIN SMALL LETTER O WITH GRAVE 84 // U+00F3: "" LATIN SMALL LETTER O WITH ACUTE 85 // U+00F4: "" LATIN SMALL LETTER O WITH CIRCUMFLEX 86 // U+00F5: "" LATIN SMALL LETTER O WITH TILDE 87 // U+00F6: "" LATIN SMALL LETTER O WITH DIAERESIS 88 // U+00F8: "" LATIN SMALL LETTER O WITH STROKE 89 // U+014D: "" LATIN SMALL LETTER O WITH MACRON 90 // U+014F: "" LATIN SMALL LETTER O WITH BREVE 91 // U+0151: "" LATIN SMALL LETTER O WITH DOUBLE ACUTE 92 // U+0153: "" LATIN SMALL LIGATURE OE 93 // U+00BA: "" MASCULINE ORDINAL INDICATOR 94 .setMoreKeysOf("o", 95 "\u00F2", "\u00F3", "\u00F4", "\u00F5", "\u00F6", "\u00F8", "\u014D", 96 "\u014F", "\u0151", "\u0153", "\u00BA") 97 // U+00E0: "" LATIN SMALL LETTER A WITH GRAVE 98 // U+00E1: "" LATIN SMALL LETTER A WITH ACUTE 99 // U+00E2: "" LATIN SMALL LETTER A WITH CIRCUMFLEX 100 // U+00E3: "" LATIN SMALL LETTER A WITH TILDE 101 // U+00E4: "" LATIN SMALL LETTER A WITH DIAERESIS 102 // U+00E5: "" LATIN SMALL LETTER A WITH RING ABOVE 103 // U+00E6: "" LATIN SMALL LETTER AE 104 // U+0101: "" LATIN SMALL LETTER A WITH MACRON 105 // U+0103: "" LATIN SMALL LETTER A WITH BREVE 106 // U+0105: "" LATIN SMALL LETTER A WITH OGONEK 107 // U+00AA: "" FEMININE ORDINAL INDICATOR 108 .setMoreKeysOf("a", 109 "\u00E0", "\u00E1", "\u00E2", "\u00E3", "\u00E4", "\u00E5", "\u00E6", 110 "\u0101", "\u0103", "\u0105", "\u00AA") 111 // U+00DF: "" LATIN SMALL LETTER SHARP S 112 // U+015B: "" LATIN SMALL LETTER S WITH ACUTE 113 // U+015D: "" LATIN SMALL LETTER S WITH CIRCUMFLEX 114 // U+015F: "" LATIN SMALL LETTER S WITH CEDILLA 115 // U+0161: "" LATIN SMALL LETTER S WITH CARON 116 // U+017F: "" LATIN SMALL LETTER LONG S 117 .setMoreKeysOf("s", "\u00DF", "\u015B", "\u015D", "\u015F", "\u0161", "\u017F") 118 // U+010F: "" LATIN SMALL LETTER D WITH CARON 119 // U+0111: "" LATIN SMALL LETTER D WITH STROKE 120 // U+00F0: "" LATIN SMALL LETTER ETH 121 .setMoreKeysOf("d", "\u010F", "\u0111", "\u00F0") 122 // U+011D: "" LATIN SMALL LETTER G WITH CIRCUMFLEX 123 // U+011F: "" LATIN SMALL LETTER G WITH BREVE 124 // U+0121: "" LATIN SMALL LETTER G WITH DOT ABOVE 125 // U+0123: "" LATIN SMALL LETTER G WITH CEDILLA 126 .setMoreKeysOf("g", "\u011D", "\u011F", "\u0121", "\u0123") 127 // U+0125: "" LATIN SMALL LETTER H WITH CIRCUMFLEX 128 .setMoreKeysOf("h", "\u0125") 129 // U+0135: "" LATIN SMALL LETTER J WITH CIRCUMFLEX 130 .setMoreKeysOf("j", "\u0135") 131 // U+0137: "" LATIN SMALL LETTER K WITH CEDILLA 132 // U+0138: "" LATIN SMALL LETTER KRA 133 .setMoreKeysOf("k", "\u0137", "\u0138") 134 // U+013A: "" LATIN SMALL LETTER L WITH ACUTE 135 // U+013C: "" LATIN SMALL LETTER L WITH CEDILLA 136 // U+013E: "" LATIN SMALL LETTER L WITH CARON 137 // U+0140: "" LATIN SMALL LETTER L WITH MIDDLE DOT 138 // U+0142: "" LATIN SMALL LETTER L WITH STROKE 139 .setMoreKeysOf("l", "\u013A", "\u013C", "\u013E", "\u0140", "\u0142") 140 // U+017A: "" LATIN SMALL LETTER Z WITH ACUTE 141 // U+017C: "" LATIN SMALL LETTER Z WITH DOT ABOVE 142 // U+017E: "" LATIN SMALL LETTER Z WITH CARON 143 .setMoreKeysOf("z", "\u017A", "\u017C", "\u017E") 144 // U+00E7: "" LATIN SMALL LETTER C WITH CEDILLA 145 // U+0107: "" LATIN SMALL LETTER C WITH ACUTE 146 // U+0109: "" LATIN SMALL LETTER C WITH CIRCUMFLEX 147 // U+010B: "" LATIN SMALL LETTER C WITH DOT ABOVE 148 // U+010D: "" LATIN SMALL LETTER C WITH CARON 149 .setMoreKeysOf("c", "\u00E7", "\u0107", "\u0109", "\u010B", "\u010D") 150 // U+00F1: "" LATIN SMALL LETTER N WITH TILDE 151 // U+0144: "" LATIN SMALL LETTER N WITH ACUTE 152 // U+0146: "" LATIN SMALL LETTER N WITH CEDILLA 153 // U+0148: "" LATIN SMALL LETTER N WITH CARON 154 // U+0149: "" LATIN SMALL LETTER N PRECEDED BY APOSTROPHE 155 // U+014B: "" LATIN SMALL LETTER ENG 156 .setMoreKeysOf("n", "\u00F1", "\u0144", "\u0146", "\u0148", "\u0149", "\u014B"); 157 } 158 } 159