From 788fa3209ab79a217502f6d5ecf02dd2102eed94 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 12 Oct 2015 15:49:16 +0800 Subject: update python scripts2 --- scripts2/fullpinyintable.py | 6 +++--- scripts2/templates/zhuyin_table.h.in | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts2') 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)) diff --git a/scripts2/templates/zhuyin_table.h.in b/scripts2/templates/zhuyin_table.h.in index 4c613fc..833e7f0 100644 --- a/scripts2/templates/zhuyin_table.h.in +++ b/scripts2/templates/zhuyin_table.h.in @@ -1,7 +1,7 @@ #ifndef CHEWING_TABLE_H #define CHEWING_TABLE_H -namespace zhuyin{ +namespace pinyin{ const chewing_symbol_item_t chewing_standard_symbols[] = { @STANDARD_SYMBOLS@ -- cgit