diff options
Diffstat (limited to 'scripts/pinyintable.py')
-rw-r--r-- | scripts/pinyintable.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/pinyintable.py b/scripts/pinyintable.py index 94fef20..603159e 100644 --- a/scripts/pinyintable.py +++ b/scripts/pinyintable.py @@ -139,6 +139,7 @@ def gen_corrects(): flags = ['IS_PINYIN', 'PINYIN_CORRECT_{0}_{1}'.format(wrong.upper(), correct.upper())] for pinyin_key in pinyin_list: + #fixes partial pinyin instead of the whole pinyin if pinyin_key.endswith(correct) and pinyin_key != correct: chewing_key = bopomofo.PINYIN_BOPOMOFO_MAP[pinyin_key] new_pinyin_key = pinyin_key.replace(correct, wrong) |