summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-09-10 13:52:03 +0800
committerPeng Wu <alexepico@gmail.com>2015-09-10 13:52:03 +0800
commitf10e7058309e99efe02807ff92974c8a8f13d84a (patch)
treeb00b800fd4e738e15d42ca153920387814d8eb5b
parent20b4caeecc909ea45e1aaed05a1654b2ae02d5cd (diff)
downloadlibpinyin-f10e7058309e99efe02807ff92974c8a8f13d84a.tar.gz
libpinyin-f10e7058309e99efe02807ff92974c8a8f13d84a.tar.xz
libpinyin-f10e7058309e99efe02807ff92974c8a8f13d84a.zip
update filter_pinyin_list function
-rw-r--r--scripts2/fullpinyintable.py10
1 files changed, 5 insertions, 5 deletions
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))