aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-03-04 22:27:28 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-04 22:27:28 -0800
commita7dfbf8409914cf7cd6bf11ba860a1ad15a7ffd1 (patch)
tree6f6c525cfcf9ad337f9534a08e198852fc0d709d /native/src/defines.h
parent107e87675721a89e9322b6530e01a99836f291dc (diff)
parentf9a5bfa147b07f135e8da6f9b7305c31181fa5eb (diff)
downloadlatinime-a7dfbf8409914cf7cd6bf11ba860a1ad15a7ffd1.tar.gz
latinime-a7dfbf8409914cf7cd6bf11ba860a1ad15a7ffd1.tar.xz
latinime-a7dfbf8409914cf7cd6bf11ba860a1ad15a7ffd1.zip
am f9a5bfa1: Merge "Add the suggestion algorithm of words with space proximity" into honeycomb-mr1
* commit 'f9a5bfa147b07f135e8da6f9b7305c31181fa5eb': Add the suggestion algorithm of words with space proximity
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h3
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