aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dicttool/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-10-31 02:33:54 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-31 02:33:55 -0700
commit1b67a2bd8bf27a34e4ddbdf5c886c5dddc77f1ea (patch)
tree53e6362e8f6123927dad754109ab2d14f18c9e0f /tools/dicttool/src
parent0b900f5e6485007bd9191c89dcde548fe62e5a93 (diff)
parent8f18c261cdcb317b870d287defe838b97a540a59 (diff)
downloadlatinime-1b67a2bd8bf27a34e4ddbdf5c886c5dddc77f1ea.tar.gz
latinime-1b67a2bd8bf27a34e4ddbdf5c886c5dddc77f1ea.tar.xz
latinime-1b67a2bd8bf27a34e4ddbdf5c886c5dddc77f1ea.zip
Merge "Use spaces instead of tabs in the combined format."
Diffstat (limited to 'tools/dicttool/src')
-rw-r--r--tools/dicttool/src/com/android/inputmethod/latin/dicttool/CombinedInputOutput.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dicttool/src/com/android/inputmethod/latin/dicttool/CombinedInputOutput.java b/tools/dicttool/src/com/android/inputmethod/latin/dicttool/CombinedInputOutput.java
index c295eb384..092ee767f 100644
--- a/tools/dicttool/src/com/android/inputmethod/latin/dicttool/CombinedInputOutput.java
+++ b/tools/dicttool/src/com/android/inputmethod/latin/dicttool/CombinedInputOutput.java
@@ -227,18 +227,18 @@ public class CombinedInputOutput {
}
destination.write("\n");
for (Word word : set) {
- destination.write("\t" + WORD_TAG + "=" + word.mWord + ","
+ destination.write(" " + WORD_TAG + "=" + word.mWord + ","
+ FREQUENCY_TAG + "=" + word.mFrequency
+ (word.mIsNotAWord ? "," + NOT_A_WORD_TAG + "=true\n" : "\n"));
if (null != word.mShortcutTargets) {
for (WeightedString target : word.mShortcutTargets) {
- destination.write("\t\t" + SHORTCUT_TAG + "=" + target.mWord + ","
+ destination.write(" " + SHORTCUT_TAG + "=" + target.mWord + ","
+ FREQUENCY_TAG + "=" + target.mFrequency + "\n");
}
}
if (null != word.mBigrams) {
for (WeightedString bigram : word.mBigrams) {
- destination.write("\t\t" + BIGRAM_TAG + "=" + bigram.mWord + ","
+ destination.write(" " + BIGRAM_TAG + "=" + bigram.mWord + ","
+ FREQUENCY_TAG + "=" + bigram.mFrequency + "\n");
}
}