diff options
author | Peng Wu <alexepico@gmail.com> | 2012-03-02 16:21:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-03-02 16:21:18 +0800 |
commit | 536b587a1a5c2aa273026890cec64881e58e5cc5 (patch) | |
tree | 5d23770797501a572ada7206f7b31cd39413255c /src/storage/pinyin_parser2.cpp | |
parent | 739f11026505d654eebd67ff5f128c844f454919 (diff) | |
download | libpinyin-536b587a1a5c2aa273026890cec64881e58e5cc5.tar.gz libpinyin-536b587a1a5c2aa273026890cec64881e58e5cc5.tar.xz libpinyin-536b587a1a5c2aa273026890cec64881e58e5cc5.zip |
fixes full pinyin parser
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index f3b6240..385e62a 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -389,6 +389,7 @@ int FullPinyinParser2::parse (pinyin_option_t options, ChewingKeyVector & keys, if (value.m_parsed_len == nextstep->m_parsed_len && value.m_num_keys == nextstep->m_num_keys) { +#if 0 /* prefer the complete pinyin with shengmu * over without shengmu, * ex: "kaneiji" -> "ka'nei'ji". @@ -410,6 +411,7 @@ int FullPinyinParser2::parse (pinyin_option_t options, ChewingKeyVector & keys, nextstep->m_key.m_middle == CHEWING_ZERO_MIDDLE && nextstep->m_key.m_final == CHEWING_ZERO_FINAL)) *nextstep = value; +#endif /* prefer the 'a' at the end of clause, * ex: "zheyanga$" -> "zhe'yang'a$". |