diff options
author | 2011-02-18 17:50:58 +0900 | |
---|---|---|
committer | 2011-02-22 15:27:06 +0900 | |
commit | a5d58497018f465080f08fbbfed35de883bc8be3 (patch) | |
tree | bbddfeca6083af2cda1bc069de6abefcbfec53d1 /native/src/defines.h | |
parent | 050c0462dc2ada5a5afecec5b6745693c5066b85 (diff) | |
download | latinime-a5d58497018f465080f08fbbfed35de883bc8be3.tar.gz latinime-a5d58497018f465080f08fbbfed35de883bc8be3.tar.xz latinime-a5d58497018f465080f08fbbfed35de883bc8be3.zip |
Force autocorrection of matching words with different accents.
When entering a word without accents the user expects the system to
add accents automatically if there is no other matching word. This
patch ensures the accented version is promoted accordingly and
autocorrection really takes place.
Issue: 3400015
Change-Id: I8cd3db5bf131ec6844b26abecc1ecbd1d6269df4
Diffstat (limited to 'native/src/defines.h')
-rw-r--r-- | native/src/defines.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/native/src/defines.h b/native/src/defines.h index 7fa7e35e0..918028afe 100644 --- a/native/src/defines.h +++ b/native/src/defines.h @@ -100,6 +100,9 @@ static void prof_out(void) { #ifndef U_SHORT_MAX #define U_SHORT_MAX 1 << 16 #endif +#ifndef S_INT_MAX +#define S_INT_MAX ((1 << 31) - 1) +#endif // Define this to use mmap() for dictionary loading. Undefine to use malloc() instead of mmap(). // We measured and compared performance of both, and found mmap() is fairly good in terms of @@ -137,9 +140,6 @@ static void prof_out(void) { #define WORDS_WITH_TRANSPOSED_CHARACTERS_DEMOTION_RATE 60 #define FULL_MATCHED_WORDS_PROMOTION_RATE 120 -// This is used as a bare multiplier (not subject to /100) -#define FULL_MATCH_ACCENTS_OR_CAPITALIZATION_DIFFER_MULTIPLIER 2 - // 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. #define MAX_WORD_LENGTH_INTERNAL 48 |