diff options
author | Peng Wu <alexepico@gmail.com> | 2015-10-12 15:49:16 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-10-12 15:49:16 +0800 |
commit | 788fa3209ab79a217502f6d5ecf02dd2102eed94 (patch) | |
tree | cbfaf0d2c919049d5b8a3ad05f8bd791452cf532 /scripts2/fullpinyintable.py | |
parent | 9be1773d9d3ffa72fa6f5fa3fbc49e0a9e208bf0 (diff) | |
download | libpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.tar.gz libpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.tar.xz libpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.zip |
update python scripts2
Diffstat (limited to 'scripts2/fullpinyintable.py')
-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 a23f88f..8c7d4ae 100644 --- a/scripts2/fullpinyintable.py +++ b/scripts2/fullpinyintable.py @@ -209,14 +209,14 @@ def populate_more_zhuyin_index(): matches = itertools.chain(handle_rules(zhuyin, hsu_correct), handle_special_rules(zhuyin, hsu_correct_special)) for wrong in matches: - newflags = '|'.join((flags, 'HSU_CORRECT')) + newflags = '|'.join((flags, 'ZHUYIN_CORRECT_HSU')) hsu_zhuyin_index.append((wrong, newflags, correct)) # populate eten26 zhuyin index matches = itertools.chain(handle_rules(zhuyin, eten26_correct), handle_special_rules(zhuyin, eten26_correct_special)) for wrong in matches: - newflags = '|'.join((flags, 'ETEN26_CORRECT')) + newflags = '|'.join((flags, 'ZHUYIN_CORRECT_ETEN26')) eten26_zhuyin_index.append((wrong, newflags, correct)) for (zhuyin, flags) in zhuyin_index: @@ -232,7 +232,7 @@ def populate_more_zhuyin_index(): for (zhuyin, flags) in zhuyin_index: correct = zhuyin shuffle_zhuyin_index.append((zhuyin, flags, correct)) - newflags = '|'.join((flags, 'SHUFFLE_CORRECT')) + newflags = '|'.join((flags, 'ZHUYIN_CORRECT_SHUFFLE')) for shuffle in shuffle_all(zhuyin): assert shuffle not in [x[0] for x in shuffle_zhuyin_index] shuffle_zhuyin_index.append((shuffle, newflags, correct)) |