diff options
author | 2010-12-10 01:38:51 -0800 | |
---|---|---|
committer | 2010-12-10 01:38:51 -0800 | |
commit | f6a6429e10817c80a7c00f0f2acae12a8e31cb15 (patch) | |
tree | 702540328aedc7eb1f81f3ab2a0f289f69203147 /native/src/defines.h | |
parent | e26ef1bccddc942fdaeada3409c8e8ff18a35008 (diff) | |
parent | a3d78f606e8e764c22637299a58c27e195b4e1d3 (diff) | |
download | latinime-f6a6429e10817c80a7c00f0f2acae12a8e31cb15.tar.gz latinime-f6a6429e10817c80a7c00f0f2acae12a8e31cb15.tar.xz latinime-f6a6429e10817c80a7c00f0f2acae12a8e31cb15.zip |
Merge "Suggest words with transposed chars"
Diffstat (limited to '')
-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. |