diff options
author | Peng Wu <alexepico@gmail.com> | 2015-10-12 15:20:59 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-10-12 15:20:59 +0800 |
commit | fbc36eb1382314da72beab865e7c815846f93d05 (patch) | |
tree | 6a3fc8612da51de3796e307ab4428c1ae5be7676 /scripts2 | |
parent | 0bd18c59a46a6688075f1548f775cdfbdd720910 (diff) | |
download | libpinyin-fbc36eb1382314da72beab865e7c815846f93d05.tar.gz libpinyin-fbc36eb1382314da72beab865e7c815846f93d05.tar.xz libpinyin-fbc36eb1382314da72beab865e7c815846f93d05.zip |
use IS_ZHUYIN and ZHUYIN_INCOMPLETE
Diffstat (limited to 'scripts2')
-rw-r--r-- | scripts2/fullpinyintable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts2/fullpinyintable.py b/scripts2/fullpinyintable.py index 72cdbb8..a23f88f 100644 --- a/scripts2/fullpinyintable.py +++ b/scripts2/fullpinyintable.py @@ -103,7 +103,7 @@ def gen_pinyins(): for pinyin in pinyin_list: flags = [] if pinyin in PINYIN_ZHUYIN_MAP.keys(): - flags.append("IS_CHEWING") + flags.append("IS_ZHUYIN") if pinyin in PINYIN_LIST or \ pinyin in SHENGMU_LIST: flags.append("IS_PINYIN") @@ -112,7 +112,7 @@ def gen_pinyins(): zhuyin = PINYIN_ZHUYIN_MAP[pinyin] if zhuyin in chewing.CHEWING_ASCII_INITIAL_MAP and \ pinyin not in ZHUYIN_SPECIAL_INITIAL_SET_IN_PINYIN_FORM: - flags.append("CHEWING_INCOMPLETE") + flags.append("ZHUYIN_INCOMPLETE") yield pinyin, pinyin, zhuyin, flags, get_chewing(pinyin) @@ -198,7 +198,7 @@ def filter_pinyin_list(): luoma_pinyin_index.append((luoma, "IS_PINYIN")) if secondary: secondary_zhuyin_index.append((secondary, "IS_PINYIN")) - if "IS_CHEWING" in flags: + if "IS_ZHUYIN" in flags: zhuyin_index.append((zhuyin, flags)) |