From f10e7058309e99efe02807ff92974c8a8f13d84a Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 10 Sep 2015 13:52:03 +0800 Subject: update filter_pinyin_list function --- scripts2/fullpinyintable.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts2') diff --git a/scripts2/fullpinyintable.py b/scripts2/fullpinyintable.py index 0c923d2..72cdbb8 100644 --- a/scripts2/fullpinyintable.py +++ b/scripts2/fullpinyintable.py @@ -175,19 +175,19 @@ eten26_zhuyin_index = [] def filter_pinyin_list(): for (correct, wrong, zhuyin, flags, chewing_key) in gen_pinyin_list(): - (luoma, second) = (None, None) + (luoma, secondary) = (None, None) if zhuyin in ZHUYIN_LUOMA_PINYIN_MAP: luoma = ZHUYIN_LUOMA_PINYIN_MAP[zhuyin] if zhuyin in ZHUYIN_SECONDARY_ZHUYIN_MAP: - second = ZHUYIN_SECONDARY_ZHUYIN_MAP[zhuyin] + secondary = ZHUYIN_SECONDARY_ZHUYIN_MAP[zhuyin] flags = '|'.join(flags) chewing_key = "ChewingKey({0})".format(', '.join(chewing_key)) #correct = correct.replace("v", "ΓΌ") - content_table.append((correct, zhuyin, luoma, second, chewing_key)) + content_table.append((correct, zhuyin, luoma, secondary, chewing_key)) if "IS_PINYIN" in flags: pinyin_index.append((wrong, flags, correct)) @@ -196,8 +196,8 @@ def filter_pinyin_list(): continue if luoma: luoma_pinyin_index.append((luoma, "IS_PINYIN")) - if second: - secondary_zhuyin_index.append((second, "IS_PINYIN")) + if secondary: + secondary_zhuyin_index.append((secondary, "IS_PINYIN")) if "IS_CHEWING" in flags: zhuyin_index.append((zhuyin, flags)) -- cgit