From ccb963c2cea6c30d6879c69c48062ee1f4ddf443 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 2 Nov 2011 14:59:28 +0800 Subject: write gen special table --- scripts/pinyintable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/pinyintable.py') 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 -- cgit