blob: 561fffa90ac5f2082dce5e0f1cb881143bd633c6 [file] [log] [blame]
satok8fbd5522011-02-22 17:28:55 +09001/*
2 * Copyright (C) 2011 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
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090017#include <assert.h>
satok8fbd5522011-02-22 17:28:55 +090018#include <stdio.h>
satok552c3c22012-03-13 16:33:47 +090019#include <string>
satok8fbd5522011-02-22 17:28:55 +090020
satok817e5172011-03-04 06:06:45 -080021#define LOG_TAG "LatinIME: proximity_info.cpp"
22
satok552c3c22012-03-13 16:33:47 +090023#include "additional_proximity_chars.h"
satokd24df432011-07-14 15:43:42 +090024#include "dictionary.h"
satok8fbd5522011-02-22 17:28:55 +090025#include "proximity_info.h"
26
27namespace latinime {
Ken Wakasace9e52a2011-06-18 13:09:55 +090028
Yusuke Nojimade2f8422011-09-27 11:15:18 +090029inline void copyOrFillZero(void *to, const void *from, size_t size) {
30 if (from) {
31 memcpy(to, from, size);
32 } else {
33 memset(to, 0, size);
34 }
35}
36
satok552c3c22012-03-13 16:33:47 +090037ProximityInfo::ProximityInfo(const std::string localeStr, const int maxProximityCharsSize,
38 const int keyboardWidth, const int keyboardHeight, const int gridWidth,
39 const int gridHeight, const int mostCommonKeyWidth,
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090040 const uint32_t *proximityCharsArray, const int keyCount, const int32_t *keyXCoordinates,
41 const int32_t *keyYCoordinates, const int32_t *keyWidths, const int32_t *keyHeights,
Yusuke Nojimaad358352011-09-29 16:44:54 +090042 const int32_t *keyCharCodes, const float *sweetSpotCenterXs, const float *sweetSpotCenterYs,
43 const float *sweetSpotRadii)
satok817e5172011-03-04 06:06:45 -080044 : MAX_PROXIMITY_CHARS_SIZE(maxProximityCharsSize), KEYBOARD_WIDTH(keyboardWidth),
45 KEYBOARD_HEIGHT(keyboardHeight), GRID_WIDTH(gridWidth), GRID_HEIGHT(gridHeight),
satoka70ee6e2012-03-07 15:12:22 +090046 MOST_COMMON_KEY_WIDTH_SQUARE(mostCommonKeyWidth * mostCommonKeyWidth),
satok817e5172011-03-04 06:06:45 -080047 CELL_WIDTH((keyboardWidth + gridWidth - 1) / gridWidth),
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090048 CELL_HEIGHT((keyboardHeight + gridHeight - 1) / gridHeight),
Yusuke Nojima258bfe62011-09-28 12:59:43 +090049 KEY_COUNT(min(keyCount, MAX_KEY_COUNT_IN_A_KEYBOARD)),
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +090050 HAS_TOUCH_POSITION_CORRECTION_DATA(keyCount > 0 && keyXCoordinates && keyYCoordinates
51 && keyWidths && keyHeights && keyCharCodes && sweetSpotCenterXs
52 && sweetSpotCenterYs && sweetSpotRadii),
Tadashi G. Takaoka0e971482011-10-28 17:02:09 +090053 mInputXCoordinates(0), mInputYCoordinates(0),
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +090054 mTouchPositionCorrectionEnabled(false) {
Jean Chalard8c8ca592011-11-10 12:07:30 +090055 const int proximityGridLength = GRID_WIDTH * GRID_HEIGHT * MAX_PROXIMITY_CHARS_SIZE;
56 mProximityCharsArray = new uint32_t[proximityGridLength];
satok817e5172011-03-04 06:06:45 -080057 if (DEBUG_PROXIMITY_INFO) {
satok9fb6f472012-01-13 18:01:22 +090058 AKLOGI("Create proximity info array %d", proximityGridLength);
satok817e5172011-03-04 06:06:45 -080059 }
Jean Chalard8c8ca592011-11-10 12:07:30 +090060 memcpy(mProximityCharsArray, proximityCharsArray,
61 proximityGridLength * sizeof(mProximityCharsArray[0]));
62 const int normalizedSquaredDistancesLength =
63 MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH_INTERNAL;
64 mNormalizedSquaredDistances = new int[normalizedSquaredDistancesLength];
65 for (int i = 0; i < normalizedSquaredDistancesLength; ++i) {
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +090066 mNormalizedSquaredDistances[i] = NOT_A_DISTANCE;
67 }
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090068
Yusuke Nojimade2f8422011-09-27 11:15:18 +090069 copyOrFillZero(mKeyXCoordinates, keyXCoordinates, KEY_COUNT * sizeof(mKeyXCoordinates[0]));
70 copyOrFillZero(mKeyYCoordinates, keyYCoordinates, KEY_COUNT * sizeof(mKeyYCoordinates[0]));
71 copyOrFillZero(mKeyWidths, keyWidths, KEY_COUNT * sizeof(mKeyWidths[0]));
72 copyOrFillZero(mKeyHeights, keyHeights, KEY_COUNT * sizeof(mKeyHeights[0]));
73 copyOrFillZero(mKeyCharCodes, keyCharCodes, KEY_COUNT * sizeof(mKeyCharCodes[0]));
Yusuke Nojimaad358352011-09-29 16:44:54 +090074 copyOrFillZero(mSweetSpotCenterXs, sweetSpotCenterXs,
75 KEY_COUNT * sizeof(mSweetSpotCenterXs[0]));
76 copyOrFillZero(mSweetSpotCenterYs, sweetSpotCenterYs,
77 KEY_COUNT * sizeof(mSweetSpotCenterYs[0]));
78 copyOrFillZero(mSweetSpotRadii, sweetSpotRadii, KEY_COUNT * sizeof(mSweetSpotRadii[0]));
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090079
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090080 initializeCodeToKeyIndex();
81}
82
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090083// Build the reversed look up table from the char code to the index in mKeyXCoordinates,
84// mKeyYCoordinates, mKeyWidths, mKeyHeights, mKeyCharCodes.
85void ProximityInfo::initializeCodeToKeyIndex() {
Yusuke Nojimaad358352011-09-29 16:44:54 +090086 memset(mCodeToKeyIndex, -1, (MAX_CHAR_CODE + 1) * sizeof(mCodeToKeyIndex[0]));
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090087 for (int i = 0; i < KEY_COUNT; ++i) {
88 const int code = mKeyCharCodes[i];
Yusuke Nojimaad358352011-09-29 16:44:54 +090089 if (0 <= code && code <= MAX_CHAR_CODE) {
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090090 mCodeToKeyIndex[code] = i;
Yusuke Nojimaad358352011-09-29 16:44:54 +090091 }
Yusuke Nojima0e1f6562011-09-21 12:02:47 +090092 }
satok8fbd5522011-02-22 17:28:55 +090093}
94
95ProximityInfo::~ProximityInfo() {
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +090096 delete[] mNormalizedSquaredDistances;
satok8fbd5522011-02-22 17:28:55 +090097 delete[] mProximityCharsArray;
98}
satok817e5172011-03-04 06:06:45 -080099
100inline int ProximityInfo::getStartIndexFromCoordinates(const int x, const int y) const {
satok3c4bb772011-03-04 22:50:19 -0800101 return ((y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH))
satok817e5172011-03-04 06:06:45 -0800102 * MAX_PROXIMITY_CHARS_SIZE;
satok8fbd5522011-02-22 17:28:55 +0900103}
satok817e5172011-03-04 06:06:45 -0800104
105bool ProximityInfo::hasSpaceProximity(const int x, const int y) const {
satok744dab62011-12-15 22:29:05 +0900106 if (x < 0 || y < 0) {
107 if (DEBUG_DICT) {
satok9fb6f472012-01-13 18:01:22 +0900108 AKLOGI("HasSpaceProximity: Illegal coordinates (%d, %d)", x, y);
satok1a6da632011-12-16 23:15:06 +0900109 assert(false);
satok744dab62011-12-15 22:29:05 +0900110 }
111 return false;
112 }
113
satok817e5172011-03-04 06:06:45 -0800114 const int startIndex = getStartIndexFromCoordinates(x, y);
115 if (DEBUG_PROXIMITY_INFO) {
satok9fb6f472012-01-13 18:01:22 +0900116 AKLOGI("hasSpaceProximity: index %d, %d, %d", startIndex, x, y);
satok817e5172011-03-04 06:06:45 -0800117 }
118 for (int i = 0; i < MAX_PROXIMITY_CHARS_SIZE; ++i) {
119 if (DEBUG_PROXIMITY_INFO) {
satok9fb6f472012-01-13 18:01:22 +0900120 AKLOGI("Index: %d", mProximityCharsArray[startIndex + i]);
satok817e5172011-03-04 06:06:45 -0800121 }
122 if (mProximityCharsArray[startIndex + i] == KEYCODE_SPACE) {
123 return true;
124 }
125 }
126 return false;
127}
Ken Wakasace9e52a2011-06-18 13:09:55 +0900128
satoka70ee6e2012-03-07 15:12:22 +0900129bool ProximityInfo::isOnKey(const int keyId, const int x, const int y) {
130 const int left = mKeyXCoordinates[keyId];
131 const int top = mKeyYCoordinates[keyId];
132 const int right = left + mKeyWidths[keyId] + 1;
133 const int bottom = top + mKeyHeights[keyId];
134 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom;
135}
136
137int ProximityInfo::squaredDistanceToEdge(const int keyId, const int x, const int y) {
138 const int left = mKeyXCoordinates[keyId];
139 const int top = mKeyYCoordinates[keyId];
140 const int right = left + mKeyWidths[keyId] + 1;
141 const int bottom = top + mKeyHeights[keyId];
142 const int edgeX = x < left ? left : (x > right ? right : x);
143 const int edgeY = y < top ? top : (y > bottom ? bottom : y);
144 const int dx = x - edgeX;
145 const int dy = y - edgeY;
146 return dx * dx + dy * dy;
147}
148
149void ProximityInfo::calculateNearbyKeyCodes(
150 const int x, const int y, const uint32_t primaryKey, int *inputCodes) {
151 int insertPos = 0;
152 inputCodes[insertPos++] = primaryKey;
153 const int startIndex = getStartIndexFromCoordinates(x, y);
154 for (int i = 0; i < MAX_PROXIMITY_CHARS_SIZE; ++i) {
155 const uint32_t c = mProximityCharsArray[startIndex + i];
156 if (c < KEYCODE_SPACE || c == primaryKey) {
157 continue;
158 }
159 for (int j = 0; j < KEY_COUNT; ++j) {
160 const bool onKey = isOnKey(j, x, y);
161 const int distance = squaredDistanceToEdge(j, x, y);
162 if (onKey || distance < MOST_COMMON_KEY_WIDTH_SQUARE) {
163 inputCodes[insertPos++] = c;
164 }
165 }
166 }
167 // TODO: calculate additional chars
168}
169
satok1d7eaf82011-07-13 10:32:02 +0900170// TODO: Calculate nearby codes here.
Yusuke Nojima258bfe62011-09-28 12:59:43 +0900171void ProximityInfo::setInputParams(const int* inputCodes, const int inputLength,
172 const int* xCoordinates, const int* yCoordinates) {
satok1d7eaf82011-07-13 10:32:02 +0900173 mInputCodes = inputCodes;
Yusuke Nojima258bfe62011-09-28 12:59:43 +0900174 mInputXCoordinates = xCoordinates;
175 mInputYCoordinates = yCoordinates;
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900176 mTouchPositionCorrectionEnabled =
177 HAS_TOUCH_POSITION_CORRECTION_DATA && xCoordinates && yCoordinates;
satok1d7eaf82011-07-13 10:32:02 +0900178 mInputLength = inputLength;
satok0cedd2b2011-08-12 01:05:27 +0900179 for (int i = 0; i < inputLength; ++i) {
180 mPrimaryInputWord[i] = getPrimaryCharAt(i);
181 }
182 mPrimaryInputWord[inputLength] = 0;
Yusuke Nojimac25c7cc2011-10-03 16:44:29 +0900183 for (int i = 0; i < mInputLength; ++i) {
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900184 const int *proximityChars = getProximityCharsAt(i);
185 for (int j = 0; j < MAX_PROXIMITY_CHARS_SIZE && proximityChars[j] > 0; ++j) {
186 const int currentChar = proximityChars[j];
187 const int keyIndex = getKeyIndex(currentChar);
188 const float squaredDistance = calculateNormalizedSquaredDistance(keyIndex, i);
189 if (squaredDistance >= 0.0f) {
190 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] =
191 (int)(squaredDistance * NORMALIZED_SQUARED_DISTANCE_SCALING_FACTOR);
192 } else {
193 mNormalizedSquaredDistances[i * MAX_PROXIMITY_CHARS_SIZE + j] = (j == 0)
194 ? EQUIVALENT_CHAR_WITHOUT_DISTANCE_INFO
195 : PROXIMITY_CHAR_WITHOUT_DISTANCE_INFO;
196 }
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900197 }
Yusuke Nojimac25c7cc2011-10-03 16:44:29 +0900198 }
satok1d7eaf82011-07-13 10:32:02 +0900199}
200
Yusuke Nojima16717152011-10-04 17:04:07 +0900201inline float square(const float x) { return x * x; }
202
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900203float ProximityInfo::calculateNormalizedSquaredDistance(
204 const int keyIndex, const int inputIndex) const {
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900205 static const float NOT_A_DISTANCE_FLOAT = -1.0f;
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900206 if (keyIndex == NOT_A_INDEX) {
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900207 return NOT_A_DISTANCE_FLOAT;
Yusuke Nojimac25c7cc2011-10-03 16:44:29 +0900208 }
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900209 if (!hasSweetSpotData(keyIndex)) {
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900210 return NOT_A_DISTANCE_FLOAT;
Yusuke Nojima16717152011-10-04 17:04:07 +0900211 }
Jean Chalard0bfe3592012-01-25 18:11:26 +0900212 if (NOT_A_COORDINATE == mInputXCoordinates[inputIndex]) {
213 return NOT_A_DISTANCE_FLOAT;
214 }
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900215 const float squaredDistance = calculateSquaredDistanceFromSweetSpotCenter(keyIndex, inputIndex);
216 const float squaredRadius = square(mSweetSpotRadii[keyIndex]);
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900217 return squaredDistance / squaredRadius;
Yusuke Nojima16717152011-10-04 17:04:07 +0900218}
219
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900220int ProximityInfo::getKeyIndex(const int c) const {
221 if (KEY_COUNT == 0 || !mInputXCoordinates || !mInputYCoordinates) {
222 // We do not have the coordinate data
223 return NOT_A_INDEX;
224 }
Tadashi G. Takaoka6e3cb272011-11-11 14:26:13 +0900225 const unsigned short baseLowerC = toBaseLowerCase(c);
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900226 if (baseLowerC > MAX_CHAR_CODE) {
227 return NOT_A_INDEX;
228 }
229 return mCodeToKeyIndex[baseLowerC];
230}
231
Yusuke Nojimac25c7cc2011-10-03 16:44:29 +0900232float ProximityInfo::calculateSquaredDistanceFromSweetSpotCenter(
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900233 const int keyIndex, const int inputIndex) const {
Yusuke Nojimac25c7cc2011-10-03 16:44:29 +0900234 const float sweetSpotCenterX = mSweetSpotCenterXs[keyIndex];
235 const float sweetSpotCenterY = mSweetSpotCenterYs[keyIndex];
236 const float inputX = (float)mInputXCoordinates[inputIndex];
237 const float inputY = (float)mInputYCoordinates[inputIndex];
238 return square(inputX - sweetSpotCenterX) + square(inputY - sweetSpotCenterY);
239}
240
satokd24df432011-07-14 15:43:42 +0900241inline const int* ProximityInfo::getProximityCharsAt(const int index) const {
satok1d7eaf82011-07-13 10:32:02 +0900242 return mInputCodes + (index * MAX_PROXIMITY_CHARS_SIZE);
243}
244
satokd24df432011-07-14 15:43:42 +0900245unsigned short ProximityInfo::getPrimaryCharAt(const int index) const {
246 return getProximityCharsAt(index)[0];
247}
248
satok2df30602011-07-15 13:49:00 +0900249inline bool ProximityInfo::existsCharInProximityAt(const int index, const int c) const {
satokd24df432011-07-14 15:43:42 +0900250 const int *chars = getProximityCharsAt(index);
251 int i = 0;
252 while (chars[i] > 0 && i < MAX_PROXIMITY_CHARS_SIZE) {
253 if (chars[i++] == c) {
254 return true;
255 }
256 }
257 return false;
258}
259
260bool ProximityInfo::existsAdjacentProximityChars(const int index) const {
261 if (index < 0 || index >= mInputLength) return false;
262 const int currentChar = getPrimaryCharAt(index);
263 const int leftIndex = index - 1;
264 if (leftIndex >= 0 && existsCharInProximityAt(leftIndex, currentChar)) {
265 return true;
266 }
267 const int rightIndex = index + 1;
268 if (rightIndex < mInputLength && existsCharInProximityAt(rightIndex, currentChar)) {
269 return true;
270 }
271 return false;
272}
273
274// In the following function, c is the current character of the dictionary word
275// currently examined.
276// currentChars is an array containing the keys close to the character the
277// user actually typed at the same position. We want to see if c is in it: if so,
278// then the word contains at that position a character close to what the user
279// typed.
280// What the user typed is actually the first character of the array.
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900281// proximityIndex is a pointer to the variable where getMatchedProximityId returns
282// the index of c in the proximity chars of the input index.
satokd24df432011-07-14 15:43:42 +0900283// Notice : accented characters do not have a proximity list, so they are alone
284// in their list. The non-accented version of the character should be considered
285// "close", but not the other keys close to the non-accented version.
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900286ProximityInfo::ProximityType ProximityInfo::getMatchedProximityId(const int index,
287 const unsigned short c, const bool checkProximityChars, int *proximityIndex) const {
satokd24df432011-07-14 15:43:42 +0900288 const int *currentChars = getProximityCharsAt(index);
Yusuke Nojima258bfe62011-09-28 12:59:43 +0900289 const int firstChar = currentChars[0];
Tadashi G. Takaoka6e3cb272011-11-11 14:26:13 +0900290 const unsigned short baseLowerC = toBaseLowerCase(c);
satokd24df432011-07-14 15:43:42 +0900291
292 // The first char in the array is what user typed. If it matches right away,
293 // that means the user typed that same char for this pos.
Yusuke Nojima258bfe62011-09-28 12:59:43 +0900294 if (firstChar == baseLowerC || firstChar == c) {
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900295 return EQUIVALENT_CHAR;
Yusuke Nojima258bfe62011-09-28 12:59:43 +0900296 }
satokd24df432011-07-14 15:43:42 +0900297
satok985312e2011-08-05 21:21:01 +0900298 if (!checkProximityChars) return UNRELATED_CHAR;
satokd24df432011-07-14 15:43:42 +0900299
300 // If the non-accented, lowercased version of that first character matches c,
301 // then we have a non-accented version of the accented character the user
302 // typed. Treat it as a close char.
Tadashi G. Takaoka6e3cb272011-11-11 14:26:13 +0900303 if (toBaseLowerCase(firstChar) == baseLowerC)
satokd24df432011-07-14 15:43:42 +0900304 return NEAR_PROXIMITY_CHAR;
305
306 // Not an exact nor an accent-alike match: search the list of close keys
307 int j = 1;
satoke05b3f42012-01-31 17:15:43 +0900308 while (j < MAX_PROXIMITY_CHARS_SIZE
309 && currentChars[j] > ADDITIONAL_PROXIMITY_CHAR_DELIMITER_CODE) {
satokd24df432011-07-14 15:43:42 +0900310 const bool matched = (currentChars[j] == baseLowerC || currentChars[j] == c);
Yusuke Nojimaa4c1f1c2011-10-06 19:12:20 +0900311 if (matched) {
312 if (proximityIndex) {
313 *proximityIndex = j;
314 }
315 return NEAR_PROXIMITY_CHAR;
316 }
satokd24df432011-07-14 15:43:42 +0900317 ++j;
318 }
satoke05b3f42012-01-31 17:15:43 +0900319 if (j < MAX_PROXIMITY_CHARS_SIZE
320 && currentChars[j] == ADDITIONAL_PROXIMITY_CHAR_DELIMITER_CODE) {
321 ++j;
322 while (j < MAX_PROXIMITY_CHARS_SIZE
323 && currentChars[j] > ADDITIONAL_PROXIMITY_CHAR_DELIMITER_CODE) {
324 const bool matched = (currentChars[j] == baseLowerC || currentChars[j] == c);
325 if (matched) {
326 if (proximityIndex) {
327 *proximityIndex = j;
328 }
329 return ADDITIONAL_PROXIMITY_CHAR;
330 }
331 ++j;
332 }
333 }
satokd24df432011-07-14 15:43:42 +0900334
335 // Was not included, signal this as an unrelated character.
336 return UNRELATED_CHAR;
337}
338
satok1d7eaf82011-07-13 10:32:02 +0900339bool ProximityInfo::sameAsTyped(const unsigned short *word, int length) const {
340 if (length != mInputLength) {
341 return false;
342 }
343 const int *inputCodes = mInputCodes;
344 while (length--) {
345 if ((unsigned int) *inputCodes != (unsigned int) *word) {
346 return false;
347 }
348 inputCodes += MAX_PROXIMITY_CHARS_SIZE;
349 word++;
350 }
351 return true;
352}
353
Yusuke Nojimae4ba8222011-10-05 14:55:07 +0900354const int ProximityInfo::NORMALIZED_SQUARED_DISTANCE_SCALING_FACTOR_LOG_2;
355const int ProximityInfo::NORMALIZED_SQUARED_DISTANCE_SCALING_FACTOR;
Yusuke Nojima0e1f6562011-09-21 12:02:47 +0900356const int ProximityInfo::MAX_KEY_COUNT_IN_A_KEYBOARD;
Yusuke Nojimaad358352011-09-29 16:44:54 +0900357const int ProximityInfo::MAX_CHAR_CODE;
Yusuke Nojima0e1f6562011-09-21 12:02:47 +0900358
Ken Wakasace9e52a2011-06-18 13:09:55 +0900359} // namespace latinime