summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-21 16:39:31 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-21 16:39:31 +0800
commitb8c33fc248ff56b15bfc4f1e74ac1240670d7173 (patch)
tree309934e361227c6f81ba2f8c9c5187d20ad74f12 /scripts
parentdd2fc6f500ad59c1c42e8875608b3a20057bc374 (diff)
downloadlibpinyin-b8c33fc248ff56b15bfc4f1e74ac1240670d7173.tar.gz
libpinyin-b8c33fc248ff56b15bfc4f1e74ac1240670d7173.tar.xz
libpinyin-b8c33fc248ff56b15bfc4f1e74ac1240670d7173.zip
add chewing_table.h.in
Diffstat (limited to 'scripts')
-rw-r--r--scripts/chewing_table.h.in27
-rw-r--r--scripts/genbopomofoheader.py2
2 files changed, 28 insertions, 1 deletions
diff --git a/scripts/chewing_table.h.in b/scripts/chewing_table.h.in
new file mode 100644
index 0000000..de8247f
--- /dev/null
+++ b/scripts/chewing_table.h.in
@@ -0,0 +1,27 @@
+/* This file is generated by python scripts. Don't edit this file directly.
+ */
+
+#ifndef CHEWING_TABLE_H
+#define CHEWING_TABLE_H
+
+namespace pinyin{
+
+const chewing_scheme_item_t chewing_standard[] = {
+@STANDARD@
+};
+
+const chewing_scheme_item_t chewing_ginyieh[] = {
+@GINYIEH@
+};
+
+const chewing_scheme_item_t chewing_eten[] = {
+@ETEN@
+};
+
+const chewing_scheme_item_t chewing_ibm[] = {
+@IBM@
+};
+
+};
+
+#endif
diff --git a/scripts/genbopomofoheader.py b/scripts/genbopomofoheader.py
index 94caedc..a1ffabc 100644
--- a/scripts/genbopomofoheader.py
+++ b/scripts/genbopomofoheader.py
@@ -40,7 +40,7 @@ bopomofo_keyboard = {
"6","3","4","7",
),
#精業注音鍵盤
- 'GIN_YIEH':
+ 'GINYIEH':
(
"2","w","s","x","3","e","d","c","r","f","v","t","g","b","6","y","h","n","u","j","m",
"-","[","'","8","i","k",",","9","o","l",".","0","p",";","/","=",