aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-10 23:08:29 +0900
committerJean Chalard <jchalard@google.com>2013-12-13 18:15:05 +0900
commit7b55cd3e2b4966150fa4c44dd43ebfeb77058a43 (patch)
tree1a5e2dbcc86543e4cd661763e6a057aff9b4da03 /java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java
parent2fa3693c264a4c150ac307d9bb7f6f8f18cc4ffc (diff)
downloadlatinime-7b55cd3e2b4966150fa4c44dd43ebfeb77058a43.tar.gz
latinime-7b55cd3e2b4966150fa4c44dd43ebfeb77058a43.tar.xz
latinime-7b55cd3e2b4966150fa4c44dd43ebfeb77058a43.zip
Remove flags from Java side.
This simplifies the code quite a bit. - GERMAN_UMLAUTS are now handled through a key-value attribute. The dictionary generator does not need to know about it any more. - FRENCH_LIGATURES are deprecated as we handle them with shortcuts now. - CONTAINS_BIGRAMS is deprecated. Bigram processing is always applied regardless of this flag. Bug: 11281748 Change-Id: If567e52e245a9342adc7f3104a0f7d8d782df8c1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java
index bbbb8e461..f8fa68f45 100644
--- a/java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/AbstractDictDecoder.java
@@ -58,12 +58,9 @@ public abstract class AbstractDictDecoder implements DictDecoder {
headerSize);
final FileHeader header = new FileHeader(headerSize,
- new FusionDictionary.DictionaryOptions(attributes,
- 0 != (optionsFlags & FormatSpec.GERMAN_UMLAUT_PROCESSING_FLAG),
- 0 != (optionsFlags & FormatSpec.FRENCH_LIGATURE_PROCESSING_FLAG)),
- new FormatOptions(version,
- 0 != (optionsFlags & FormatSpec.SUPPORTS_DYNAMIC_UPDATE),
- 0 != (optionsFlags & FormatSpec.CONTAINS_TIMESTAMP_FLAG)));
+ new FusionDictionary.DictionaryOptions(attributes),
+ new FormatOptions(version,
+ 0 != (optionsFlags & FormatSpec.CONTAINS_TIMESTAMP_FLAG)));
return header;
}