diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-08 16:35:56 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-08 16:35:56 +0800 |
commit | 9532617ce6542916b8eb5e30153f09aeeb5a54fa (patch) | |
tree | 508e4df120887338b20816481e074ad0eb5e9425 /scripts/pinyintable.py | |
parent | 3b030513e61763bd5dbf197517ed9be7bc070884 (diff) | |
download | libpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.tar.gz libpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.tar.xz libpinyin-9532617ce6542916b8eb5e30153f09aeeb5a54fa.zip |
add comments
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) |