diff options
author | 2012-10-22 17:00:39 +0900 | |
---|---|---|
committer | 2012-10-23 15:06:25 +0900 | |
commit | 9bb4eebf48f3e15bcdfe37d73f26693bd4eaf0f4 (patch) | |
tree | b5139321ea01ba58550eabe4561eb15cc5a15e80 /java/src | |
parent | cbb3252731fbc937f202fad30a38a9e0434d89e3 (diff) | |
download | latinime-9bb4eebf48f3e15bcdfe37d73f26693bd4eaf0f4.tar.gz latinime-9bb4eebf48f3e15bcdfe37d73f26693bd4eaf0f4.tar.xz latinime-9bb4eebf48f3e15bcdfe37d73f26693bd4eaf0f4.zip |
Add reader and writer for the combined dict format.
This introduces a new textual format for the dictionary that combines
words, bigrams and shortcuts to avoid complexity. It is also extensible
to n-grams to fool-prof for the future, and easier to read than XML.
Bug: 7388540
Change-Id: I942bbad51bd0c905a5a54c278667563fd6dd66ec
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java index bed31a7d1..b0b65edb6 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java +++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java @@ -149,13 +149,7 @@ public final class BinaryDictionaryFileDumper { final Uri.Builder wordListUriBuilder = getProviderUriBuilder(id); final String finalFileName = BinaryDictionaryGetter.getCacheFileName(id, locale, context); - String tempFileName; - try { - tempFileName = BinaryDictionaryGetter.getTempFileName(id, context); - } catch (IOException e) { - Log.e(TAG, "Can't open the temporary file", e); - return null; - } + final String tempFileName = BinaryDictionaryGetter.getTempFileName(id, context); for (int mode = MODE_MIN; mode <= MODE_MAX; ++mode) { InputStream originalSourceStream = null; |