diff options
author | Peng Wu <alexepico@gmail.com> | 2012-05-27 09:41:03 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-05-27 09:41:36 +0800 |
commit | 0cfa303cdce19eac3bff44ec9166960d2e3a895e (patch) | |
tree | 923641ca4422674c09f1cd29e85cddea9cd95a77 | |
parent | bd852126d97ef0363c38bf15d541e352c4ed9a4d (diff) | |
download | libpinyin-0cfa303cdce19eac3bff44ec9166960d2e3a895e.tar.gz libpinyin-0cfa303cdce19eac3bff44ec9166960d2e3a895e.tar.xz libpinyin-0cfa303cdce19eac3bff44ec9166960d2e3a895e.zip |
refine parse one key0.6.0
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 3a58b48..cebdf91 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -551,7 +551,6 @@ bool DoublePinyinParser2::parse_one_key(pinyin_option_t options, ChewingKey & key, const char *str, int len) const { options &= ~(PINYIN_CORRECT_ALL|PINYIN_AMB_ALL); - options |= PINYIN_CORRECT_UE_VE; if (1 == len) { if (!(options & PINYIN_INCOMPLETE)) @@ -575,6 +574,7 @@ bool DoublePinyinParser2::parse_one_key(pinyin_option_t options, ChewingTone tone = CHEWING_ZERO_TONE; options &= ~(PINYIN_INCOMPLETE|CHEWING_INCOMPLETE); + options |= PINYIN_CORRECT_UE_VE; /* parse tone */ if (3 == len) { |