summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-02-24 14:06:58 +0800
committerPeng Wu <alexepico@gmail.com>2012-02-24 14:06:58 +0800
commit798ff4f50da3fe48c7921bf725cd6685293aaf06 (patch)
treeeef43cbc2c4edbae8a48cff9526f5157e3cb2b88 /utils
parentcc9b104329e04e38ce1c38ba3c82550a1b040bfa (diff)
downloadlibpinyin-798ff4f50da3fe48c7921bf725cd6685293aaf06.tar.gz
libpinyin-798ff4f50da3fe48c7921bf725cd6685293aaf06.tar.xz
libpinyin-798ff4f50da3fe48c7921bf725cd6685293aaf06.zip
fixes gen_chewing_table.cpp
Diffstat (limited to 'utils')
-rw-r--r--utils/storage/gen_chewing_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/storage/gen_chewing_table.cpp b/utils/storage/gen_chewing_table.cpp
index d74be6a..308142f 100644
--- a/utils/storage/gen_chewing_table.cpp
+++ b/utils/storage/gen_chewing_table.cpp
@@ -172,7 +172,7 @@ void feed_line(const char * phrase, const char * pinyin, const guint32 freq) {
ChewingKeyRestVector key_rests = g_array_new
(FALSE, FALSE, sizeof(ChewingKeyRest));
- pinyin_option_t options = USE_TONE;
+ pinyin_option_t options = PINYIN_CORRECT_ALL | USE_TONE;
parser.parse(options, keys, key_rests, pinyin, strlen(pinyin));
assert(keys->len == key_rests->len);