diff options
author | Peng Wu <alexepico@gmail.com> | 2015-08-13 10:42:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-08-13 10:42:32 +0800 |
commit | 96731e989225b3963ba9747c2124cd4cce906456 (patch) | |
tree | 220da8d7cb070f7bccc4707c7509afe6784b5a31 /src/storage/pinyin_parser2.cpp | |
parent | d82b8cf16a23487c45dca0d54915206f973c248d (diff) | |
download | libzhuyin-96731e989225b3963ba9747c2124cd4cce906456.tar.gz libzhuyin-96731e989225b3963ba9747c2124cd4cce906456.tar.xz libzhuyin-96731e989225b3963ba9747c2124cd4cce906456.zip |
fixes ChewingDiscreteParser21.0.91
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index a3bb735..433631b 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -768,14 +768,14 @@ bool ChewingDiscreteParser2::parse_one_key(pinyin_option_t options, if (search_chewing_tones(m_tone_table, str[index], &tone)) { index ++; } - - /* check the force tone option. */ - if (options & FORCE_TONE && CHEWING_ZERO_TONE == tone) { - return false; - } } probe: + /* check the force tone option. */ + if (options & FORCE_TONE && CHEWING_ZERO_TONE == tone) { + return false; + } + gchar * chewing = g_strconcat(initial, middle, final, NULL); /* search the chewing in the chewing index table. */ |