summaryrefslogtreecommitdiffstats
path: root/scripts2/templates
diff options
context:
space:
mode:
Diffstat (limited to 'scripts2/templates')
-rw-r--r--scripts2/templates/pinyin_parser_table.h.in8
-rw-r--r--scripts2/templates/special_table.h.in16
2 files changed, 16 insertions, 8 deletions
diff --git a/scripts2/templates/pinyin_parser_table.h.in b/scripts2/templates/pinyin_parser_table.h.in
index 9c48395..a244a55 100644
--- a/scripts2/templates/pinyin_parser_table.h.in
+++ b/scripts2/templates/pinyin_parser_table.h.in
@@ -31,14 +31,6 @@ 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] = {
diff --git a/scripts2/templates/special_table.h.in b/scripts2/templates/special_table.h.in
new file mode 100644
index 0000000..a273b62
--- /dev/null
+++ b/scripts2/templates/special_table.h.in
@@ -0,0 +1,16 @@
+#ifndef SPECIAL_TABLE_H
+#define SPECIAL_TABLE_H
+
+namespace pinyin{
+
+const divided_table_item_t divided_table[] = {
+@DIVIDED_TABLE@
+};
+
+const resplit_table_item_t resplit_table[] = {
+@RESPLIT_TABLE@
+};
+
+};
+
+#endif