summaryrefslogtreecommitdiffstats
path: root/scripts2
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-12 15:49:16 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-12 15:49:16 +0800
commit788fa3209ab79a217502f6d5ecf02dd2102eed94 (patch)
treecbfaf0d2c919049d5b8a3ad05f8bd791452cf532 /scripts2
parent9be1773d9d3ffa72fa6f5fa3fbc49e0a9e208bf0 (diff)
downloadlibpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.tar.gz
libpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.tar.xz
libpinyin-788fa3209ab79a217502f6d5ecf02dd2102eed94.zip
update python scripts2
Diffstat (limited to 'scripts2')
-rw-r--r--scripts2/fullpinyintable.py6
-rw-r--r--scripts2/templates/zhuyin_table.h.in2
2 files changed, 4 insertions, 4 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))
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@