diff options
author | Peng Wu <alexepico@gmail.com> | 2021-05-20 07:58:33 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2021-05-20 07:58:33 +0800 |
commit | 2bbde69defa7239dc6171002e7d359951be9736d (patch) | |
tree | 8926a085ba5ed3db61bdc10752085c9bfb17922e /src | |
parent | a4bee4593faad577c85fa2d7296da480966bd8a7 (diff) | |
download | libpinyin-2bbde69defa7239dc6171002e7d359951be9736d.tar.gz libpinyin-2bbde69defa7239dc6171002e7d359951be9736d.tar.xz libpinyin-2bbde69defa7239dc6171002e7d359951be9736d.zip |
Improve pinyin_remember_user_input function for incomplete pinyin
Diffstat (limited to 'src')
-rw-r--r-- | src/pinyin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index bfa1993..19b3f0d 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -3156,12 +3156,14 @@ static bool _remember_phrase_recur(pinyin_instance_t * instance, newstart, phrase, count); } +#if 0 /* meet in-complete pinyin */ if (CHEWING_ZERO_MIDDLE == key.m_middle && CHEWING_ZERO_FINAL == key.m_final) { assert(CHEWING_ZERO_TONE == key.m_tone); return false; } +#endif /* check pronunciation */ if (cached_keys->len >= phrase_length) |