1 /* 2 * Copyright (C) 2012 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 #include "additional_proximity_chars.h" 18 19 namespace latinime { 20 // TODO: Stop using hardcoded additional proximity characters. 21 // TODO: Have proximity character informations in each language's binary dictionary. 22 const char *AdditionalProximityChars::LOCALE_EN_US = "en"; 23 24 const int AdditionalProximityChars::EN_US_ADDITIONAL_A[EN_US_ADDITIONAL_A_SIZE] = { 25 'e', 'i', 'o', 'u' 26 }; 27 28 const int AdditionalProximityChars::EN_US_ADDITIONAL_E[EN_US_ADDITIONAL_E_SIZE] = { 29 'a', 'i', 'o', 'u' 30 }; 31 32 const int AdditionalProximityChars::EN_US_ADDITIONAL_I[EN_US_ADDITIONAL_I_SIZE] = { 33 'a', 'e', 'o', 'u' 34 }; 35 36 const int AdditionalProximityChars::EN_US_ADDITIONAL_O[EN_US_ADDITIONAL_O_SIZE] = { 37 'a', 'e', 'i', 'u' 38 }; 39 40 const int AdditionalProximityChars::EN_US_ADDITIONAL_U[EN_US_ADDITIONAL_U_SIZE] = { 41 'a', 'e', 'i', 'o' 42 }; 43 } // namespace latinime 44