diff options
author | 2011-03-04 06:06:45 -0800 | |
---|---|---|
committer | 2011-03-04 20:37:18 -0800 | |
commit | 817e517e463cb32726ff5a62196ac8744848e29b (patch) | |
tree | 2c8d41d8b9b633888ba13e4affaffe344b1a6e68 /native/src/defines.h | |
parent | d465e2aad1185bc9f2c27beb156b686184722094 (diff) | |
download | latinime-817e517e463cb32726ff5a62196ac8744848e29b.tar.gz latinime-817e517e463cb32726ff5a62196ac8744848e29b.tar.xz latinime-817e517e463cb32726ff5a62196ac8744848e29b.zip |
Add the suggestion algorithm of words with space proximity
Bug: 3311719
Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b
Diffstat (limited to 'native/src/defines.h')
-rw-r--r-- | native/src/defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/defines.h b/native/src/defines.h index 5d85b7c51..9534f8a87 100644 --- a/native/src/defines.h +++ b/native/src/defines.h @@ -129,10 +129,13 @@ static void prof_out(void) { #define DICTIONARY_HEADER_SIZE 2 #define NOT_VALID_WORD -99 +#define KEYCODE_SPACE ' ' + #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 SUGGEST_WORDS_WITH_SPACE_PROXIMITY true // The following "rate"s are used as a multiplier before dividing by 100, so they are in percent. #define WORDS_WITH_MISSING_CHARACTER_DEMOTION_RATE 75 |