summaryrefslogtreecommitdiffstats
path: root/scripts/pinyin_parser_table.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pinyin_parser_table.h.in')
-rw-r--r--scripts/pinyin_parser_table.h.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/pinyin_parser_table.h.in b/scripts/pinyin_parser_table.h.in
new file mode 100644
index 0000000..2f98e0e
--- /dev/null
+++ b/scripts/pinyin_parser_table.h.in
@@ -0,0 +1,34 @@
+#ifndef PINYIN_PARSER_TABLE_H
+#define PINYIN_PARSER_TABLE_H
+
+namespace pinyin{
+
+const pinyin_index_item_t pinyin_index[] = {
+@PINYIN_INDEX@
+};
+
+const chewing_index_item_t chewing_index[] = {
+@BOPOMOFO_INDEX@
+};
+
+const content_table_item_t content_table[] = {
+@CONTENT_TABLE@
+};
+
+const divided_table_item_t divided_table[] = {
+@DIVIDED_TABLE@
+};
+
+const resplit_table_item_t resplit_table[] = {
+@RESPLIT_TABLE@
+};
+
+const gint chewing_key_table[CHEWING_NUMBER_OF_INITIALS *
+ CHEWING_NUMBER_OF_MIDDLES *
+ CHEWING_NUMBER_OF_FINALS] = {
+@TABLE_INDEX@
+};
+
+};
+
+#endif