diff options
author | Peng Wu <alexepico@gmail.com> | 2015-06-16 10:45:57 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-06-16 10:45:57 +0800 |
commit | a08ea7202399af9f077c23418554956cf83e489d (patch) | |
tree | 5249cfd1c916c7746725557de422457c3f3d5833 /utils/storage | |
parent | db2781ac9ffca8d2fa818af616b8da92c6eeb1f9 (diff) | |
download | libzhuyin-a08ea7202399af9f077c23418554956cf83e489d.tar.gz libzhuyin-a08ea7202399af9f077c23418554956cf83e489d.tar.xz libzhuyin-a08ea7202399af9f077c23418554956cf83e489d.zip |
fixes first tone
Diffstat (limited to 'utils/storage')
-rw-r--r-- | utils/storage/gen_zhuyin_table.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/storage/gen_zhuyin_table.cpp b/utils/storage/gen_zhuyin_table.cpp index 2620ed1..87bc591 100644 --- a/utils/storage/gen_zhuyin_table.cpp +++ b/utils/storage/gen_zhuyin_table.cpp @@ -188,7 +188,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 = USE_TONE | FORCE_TONE; parser.parse(options, keys, key_rests, pinyin, strlen(pinyin)); assert(keys->len == key_rests->len); @@ -308,7 +308,7 @@ void gen_phrase_file(const char * outputfile, int phrase_index){ ChewingKeyRest key_rest = g_array_index (key_rests, ChewingKeyRest, k); - //assert (CHEWING_ZERO_TONE != key.m_tone); + assert (CHEWING_ZERO_TONE != key.m_tone); pinyin = key.get_bopomofo_string(); g_array_append_val(pinyins, pinyin); } |