diff options
author | Peng Wu <alexepico@gmail.com> | 2013-09-10 16:20:40 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-09-10 16:20:40 +0800 |
commit | 6a27e581954819bdfe9b5730ed6aef0ad27239fe (patch) | |
tree | bd26fe55a00dd03b2410f611c5e5aa69cc07a4bf | |
parent | df2837d24720377aa807ae02daf6f72d4b73d6ee (diff) | |
download | libzhuyin-6a27e581954819bdfe9b5730ed6aef0ad27239fe.tar.gz libzhuyin-6a27e581954819bdfe9b5730ed6aef0ad27239fe.tar.xz libzhuyin-6a27e581954819bdfe9b5730ed6aef0ad27239fe.zip |
update scripts
-rw-r--r-- | scripts/genpinyinheader.py | 5 | ||||
-rw-r--r-- | scripts/pinyin_parser_table.h.in | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/genpinyinheader.py b/scripts/genpinyinheader.py index 4f1a1b8..d784781 100644 --- a/scripts/genpinyinheader.py +++ b/scripts/genpinyinheader.py @@ -24,6 +24,7 @@ from utils import expand_file from genpinyintable import gen_content_table, \ gen_hanyu_pinyin_index, gen_luoma_pinyin_index, \ gen_bopomofo_index, gen_secondary_bopomofo_index, \ + gen_hsu_bopomofo_index, gen_eten26_bopomofo_index, \ gen_chewing_key_table def get_table_content(tablename): @@ -37,6 +38,10 @@ def get_table_content(tablename): return gen_bopomofo_index() if tablename == 'SECONDARY_BOPOMOFO_INDEX': return gen_secondary_bopomofo_index() + if tablename == 'HSU_BOPOMOFO_INDEX': + return gen_hsu_bopomofo_index() + if tablename == 'ETEN26_BOPOMOFO_INDEX': + return gen_eten26_bopomofo_index() if tablename == 'DIVIDED_TABLE': return '' if tablename == 'RESPLIT_TABLE': diff --git a/scripts/pinyin_parser_table.h.in b/scripts/pinyin_parser_table.h.in index a722dab..57f06cd 100644 --- a/scripts/pinyin_parser_table.h.in +++ b/scripts/pinyin_parser_table.h.in @@ -19,6 +19,14 @@ const pinyin_index_item_t secondary_bopomofo_index[] = { @SECONDARY_BOPOMOFO_INDEX@ }; +const chewing_index_item_t hsu_bopomofo_index[] = { +@HSU_BOPOMOFO_INDEX@ +}; + +const chewing_index_item_t eten26_bopomofo_index[] = { +@ETEN26_BOPOMOFO_INDEX@ +}; + const content_table_item_t content_table[] = { @CONTENT_TABLE@ }; |