summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-03-02 16:21:18 +0800
committerPeng Wu <alexepico@gmail.com>2012-03-12 13:01:49 +0800
commit808790b8b30471c3c52cc8bc0bd7de0230c0547f (patch)
treee30ef42cc43e37ebe9ee62766983634213b79606
parentba2b7875d9cd8fbed96ee30635cb3de03378454c (diff)
downloadlibpinyin-808790b8b30471c3c52cc8bc0bd7de0230c0547f.zip
libpinyin-808790b8b30471c3c52cc8bc0bd7de0230c0547f.tar.gz
libpinyin-808790b8b30471c3c52cc8bc0bd7de0230c0547f.tar.xz
fixes full pinyin parser
-rw-r--r--src/storage/pinyin_parser2.cpp2
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$".