diff options
author | 2012-05-31 15:04:58 +0900 | |
---|---|---|
committer | 2012-05-31 17:07:31 +0900 | |
commit | 67e3cc8488aeae6fbeec139a07c08491b0fc40e8 (patch) | |
tree | 4db59a1b2e525b69bbae8dd970cc83e6ff317faa /native/jni/src/defines.h | |
parent | a2cfb2e3b08df987f5a35971a471076d5a76d42a (diff) | |
download | latinime-67e3cc8488aeae6fbeec139a07c08491b0fc40e8.tar.gz latinime-67e3cc8488aeae6fbeec139a07c08491b0fc40e8.tar.xz latinime-67e3cc8488aeae6fbeec139a07c08491b0fc40e8.zip |
Enhance the safety net in multiple word suggestions
Bug: 6576793
Change-Id: I97100b482d3cf4e1b417c197b5d1e971a72b998d
Diffstat (limited to 'native/jni/src/defines.h')
-rw-r--r-- | native/jni/src/defines.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h index b61ebd23b..cd2fc634a 100644 --- a/native/jni/src/defines.h +++ b/native/jni/src/defines.h @@ -234,11 +234,12 @@ static inline void prof_out(void) { #define SUB_QUEUE_MAX_WORDS 1 #define SUB_QUEUE_MAX_COUNT 10 #define SUB_QUEUE_MIN_WORD_LENGTH 4 -#define MULTIPLE_WORDS_SUGGESTION_MAX_WORDS 10 +// TODO: Extend this limitation +#define MULTIPLE_WORDS_SUGGESTION_MAX_WORDS 5 // TODO: Remove this limitation #define MULTIPLE_WORDS_SUGGESTION_MAX_WORD_LENGTH 12 // TODO: Remove this limitation -#define MULTIPLE_WORDS_SUGGESTION_MAX_TOTAL_TRAVERSE_COUNT 110 +#define MULTIPLE_WORDS_SUGGESTION_MAX_TOTAL_TRAVERSE_COUNT 45 #define MULTIPLE_WORDS_DEMOTION_RATE 80 #define MIN_INPUT_LENGTH_FOR_THREE_OR_MORE_WORDS_CORRECTION 6 |