diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-02 14:59:28 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-02 14:59:28 +0800 |
commit | ccb963c2cea6c30d6879c69c48062ee1f4ddf443 (patch) | |
tree | fa628e745fe7d57014befb646d658c2ce9c60212 /scripts/pinyintable.py | |
parent | 880b6876320b98e7d9a17aa3029c1ae35c9d0809 (diff) | |
download | libpinyin-ccb963c2cea6c30d6879c69c48062ee1f4ddf443.tar.gz libpinyin-ccb963c2cea6c30d6879c69c48062ee1f4ddf443.tar.xz libpinyin-ccb963c2cea6c30d6879c69c48062ee1f4ddf443.zip |
write gen special table
Diffstat (limited to 'scripts/pinyintable.py')
-rw-r--r-- | scripts/pinyintable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pinyintable.py b/scripts/pinyintable.py index 979f9b7..94fef20 100644 --- a/scripts/pinyintable.py +++ b/scripts/pinyintable.py @@ -27,7 +27,7 @@ from correct import * pinyin_list = sorted(bopomofo.PINYIN_BOPOMOFO_MAP.keys()) -shengmu_list = sorted(pinyin.SHENGMU_DICT.keys()) +shengmu_list = sorted(pinyin.SHENGMU_LIST) def check_pinyin_chewing_map(): @@ -128,7 +128,7 @@ def gen_shengmu(): chewing_key = get_shengmu_chewing(shengmu) chewing_initial = chewing_key[0] if chewing_initial in chewing.ASCII_CHEWING_INITIAL_MAP: - chewing_key = chewing.ASCII_CHEWING_INITIAL_MAP[chewing_key] + chewing_initial = chewing.ASCII_CHEWING_INITIAL_MAP[chewing_initial] yield shengmu, shengmu, chewing_initial, \ flags, chewing_key |