summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-25 15:22:38 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-25 15:23:18 +0800
commitbd852126d97ef0363c38bf15d541e352c4ed9a4d (patch)
tree5aa0ee15383daff43e7e5bde961428c65901929e
parentd4e6757839343449d9db719a13460783873bf85f (diff)
downloadlibpinyin-bd852126d97ef0363c38bf15d541e352c4ed9a4d.tar.gz
libpinyin-bd852126d97ef0363c38bf15d541e352c4ed9a4d.tar.xz
libpinyin-bd852126d97ef0363c38bf15d541e352c4ed9a4d.zip
fixes parse one key in double pinyin parser
-rw-r--r--src/storage/pinyin_parser2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
index 385e62a..3a58b48 100644
--- a/src/storage/pinyin_parser2.cpp
+++ b/src/storage/pinyin_parser2.cpp
@@ -551,6 +551,7 @@ 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))