summaryrefslogtreecommitdiffstats
path: root/scripts2/generateheader.py
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-12-28 10:58:56 +0800
committerPeng Wu <alexepico@gmail.com>2017-12-28 10:58:56 +0800
commit1f2bafab941a38307b78fb2236e7aee74b8f0f89 (patch)
treec93ddd1d70f0473cd8a42f022a5b4e1dab7a8161 /scripts2/generateheader.py
parentc0f1489a9dc0fba1cb69082b196696c812340613 (diff)
downloadlibpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.tar.gz
libpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.tar.xz
libpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.zip
update scripts2 for valid zhuyin table
Diffstat (limited to 'scripts2/generateheader.py')
-rw-r--r--scripts2/generateheader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts2/generateheader.py b/scripts2/generateheader.py
index f91b843..59e7633 100644
--- a/scripts2/generateheader.py
+++ b/scripts2/generateheader.py
@@ -27,6 +27,7 @@ from fullpinyintable import gen_content_table, gen_pinyin_index, gen_luoma_pinyi
from specialtable import gen_divided_table, gen_resplit_table
from doublepinyintable import gen_shengmu_table, gen_yunmu_table, gen_fallback_table2, gen_fallback_table3
from bopomofotable import gen_chewing_symbols, gen_chewing_initials, gen_chewing_middles, gen_chewing_finals, gen_chewing_tones
+from zhuyin import gen_zhuyin_table
header = '''/* This file is generated by python scripts. Don't edit this file directly.
@@ -66,6 +67,8 @@ def get_table_content(tablename):
return gen_resplit_table()
if tablename == 'TABLE_INDEX':
return gen_table_index_for_chewing_key()
+ if tablename == 'VALID_ZHUYIN_TABLE':
+ return gen_zhuyin_table()
#double pinyin table
(scheme, part) = tablename.split('_', 1)