summaryrefslogtreecommitdiffstats
path: root/scripts2/templates
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/templates
parentc0f1489a9dc0fba1cb69082b196696c812340613 (diff)
downloadlibpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.tar.gz
libpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.tar.xz
libpinyin-1f2bafab941a38307b78fb2236e7aee74b8f0f89.zip
update scripts2 for valid zhuyin table
Diffstat (limited to 'scripts2/templates')
-rw-r--r--scripts2/templates/zhuyin_table.h.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts2/templates/zhuyin_table.h.in b/scripts2/templates/zhuyin_table.h.in
index 9760d4f..f9fc9fa 100644
--- a/scripts2/templates/zhuyin_table.h.in
+++ b/scripts2/templates/zhuyin_table.h.in
@@ -107,7 +107,14 @@ const zhuyin_tone_item_t chewing_dachen_cp26_tones[] = {
@DACHEN-CP26_TONES@
};
-static const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
+const bool valid_zhuyin_table[CHEWING_NUMBER_OF_INITIALS *
+ CHEWING_NUMBER_OF_MIDDLES *
+ CHEWING_NUMBER_OF_FINALS *
+ CHEWING_NUMBER_OF_TONES] = {
+@VALID_ZHUYIN_TABLE@
+};
+
+const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
"",
" ",
"ˊ",