From 798ff4f50da3fe48c7921bf725cd6685293aaf06 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 24 Feb 2012 14:06:58 +0800 Subject: fixes gen_chewing_table.cpp --- utils/storage/gen_chewing_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit