summaryrefslogtreecommitdiffstats
path: root/scripts2
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-09-08 16:30:24 +0800
committerPeng Wu <alexepico@gmail.com>2015-09-08 16:30:24 +0800
commit5875bb62a662a9bbc1559bf85ccd4474741fdd62 (patch)
tree623cb0a90c3d2829c6059255c14e4a17f6794fef /scripts2
parentbfa488b1e2fdd91cf18e7fa9e45d45623a60b8ae (diff)
downloadlibpinyin-5875bb62a662a9bbc1559bf85ccd4474741fdd62.tar.gz
libpinyin-5875bb62a662a9bbc1559bf85ccd4474741fdd62.tar.xz
libpinyin-5875bb62a662a9bbc1559bf85ccd4474741fdd62.zip
import pinyin_parser_table.h.in
Diffstat (limited to 'scripts2')
-rw-r--r--scripts2/templates/pinyin_parser_table.h.in52
1 files changed, 52 insertions, 0 deletions
diff --git a/scripts2/templates/pinyin_parser_table.h.in b/scripts2/templates/pinyin_parser_table.h.in
new file mode 100644
index 0000000..33fc0ee
--- /dev/null
+++ b/scripts2/templates/pinyin_parser_table.h.in
@@ -0,0 +1,52 @@
+#ifndef PINYIN_PARSER_TABLE_H
+#define PINYIN_PARSER_TABLE_H
+
+namespace zhuyin{
+
+const pinyin_index_item_t hanyu_pinyin_index[] = {
+@PINYIN_INDEX@
+};
+
+const pinyin_index_item_t luoma_pinyin_index[] = {
+@LUOMA_PINYIN_INDEX@
+};
+
+const chewing_index_item_t bopomofo_index[] = {
+@ZHUYIN_INDEX@
+};
+
+const pinyin_index_item_t secondary_bopomofo_index[] = {
+@SECONDARY_ZHUYIN_INDEX@
+};
+
+const chewing_index_item_t hsu_bopomofo_index[] = {
+@HSU_ZHUYIN_INDEX@
+};
+
+const chewing_index_item_t eten26_bopomofo_index[] = {
+@ETEN26_ZHUYIN_INDEX@
+};
+
+const content_table_item_t content_table[] = {
+@CONTENT_TABLE@
+};
+
+#if 0
+const divided_table_item_t divided_table[] = {
+
+};
+
+const resplit_table_item_t resplit_table[] = {
+
+};
+#endif
+
+const gint chewing_key_table[CHEWING_NUMBER_OF_INITIALS *
+ CHEWING_NUMBER_OF_MIDDLES *
+ CHEWING_NUMBER_OF_FINALS] = {
+@TABLE_INDEX@
+};
+
+};
+
+#endif