diff options
author | 2010-12-09 22:08:33 +0900 | |
---|---|---|
committer | 2010-12-10 18:34:23 +0900 | |
commit | a3d78f606e8e764c22637299a58c27e195b4e1d3 (patch) | |
tree | db57c7e72882aa33f3a9dd3f03f4ef981bcc59e7 /native/src/defines.h | |
parent | 3f7eac0d2ce626b223c822765a08057c9f12d0cd (diff) | |
download | latinime-a3d78f606e8e764c22637299a58c27e195b4e1d3.tar.gz latinime-a3d78f606e8e764c22637299a58c27e195b4e1d3.tar.xz latinime-a3d78f606e8e764c22637299a58c27e195b4e1d3.zip |
Suggest words with transposed chars
Bug: 3193883
Change-Id: I884b669258bfc522bc04e14f22a7646164a4cac5
Diffstat (limited to 'native/src/defines.h')
-rw-r--r-- | native/src/defines.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/native/src/defines.h b/native/src/defines.h index 98e93b93d..52191beea 100644 --- a/native/src/defines.h +++ b/native/src/defines.h @@ -24,13 +24,17 @@ #define LOG_TAG "LatinIME: " #endif #define DEBUG_DICT true -#define DEBUG_SHOW_FOUND_WORD false -#define DEBUG_NODE true +#define DEBUG_DICT_FULL true +#define DEBUG_SHOW_FOUND_WORD DEBUG_DICT_FULL +#define DEBUG_NODE DEBUG_DICT_FULL +#define DEBUG_TRACE DEBUG_DICT_FULL #else // FLAG_DBG #define LOGI #define DEBUG_DICT false +#define DEBUG_DICT_FULL false #define DEBUG_SHOW_FOUND_WORD false #define DEBUG_NODE false +#define DEBUG_TRACE false #endif // FLAG_DBG #ifndef U_SHORT_MAX @@ -58,6 +62,12 @@ #define SUGGEST_WORDS_WITH_MISSING_CHARACTER true #define SUGGEST_WORDS_WITH_MISSING_SPACE_CHARACTER true #define SUGGEST_WORDS_WITH_EXCESSIVE_CHARACTER true +#define SUGGEST_WORDS_WITH_TRANSPOSED_CHARACTERS true + +#define WORDS_WITH_MISSING_CHARACTER_DEMOTION_RATE 75 +#define WORDS_WITH_MISSING_SPACE_CHARACTER_DEMOTION_RATE 80 +#define WORDS_WITH_EXCESSIVE_CHARACTER_DEMOTION_RATE 75 +#define WORDS_WITH_TRANSPOSED_CHARACTERS_DEMOTION_RATE 60 // This should be greater than or equal to MAX_WORD_LENGTH defined in BinaryDictionary.java // This is only used for the size of array. Not to be used in c functions. |