summaryrefslogtreecommitdiffstats
path: root/scripts/pinyintable.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pinyintable.py')
-rw-r--r--scripts/pinyintable.py4
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