summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/chewing_table.h.in27
-rw-r--r--scripts/genbopomofoheader.py2
-rw-r--r--src/storage/pinyin_parser2.h5
3 files changed, 33 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",";","/","=",
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h
index a19ddf2..3832bd3 100644
--- a/src/storage/pinyin_parser2.h
+++ b/src/storage/pinyin_parser2.h
@@ -68,6 +68,11 @@ typedef struct {
const char * m_yunmus[2];
} double_pinyin_scheme_yunmu_item_t;
+typedef struct {
+ const char m_input;
+ const char * m_chewing;
+} chewing_scheme_item_t;
+
typedef GArray * ChewingKeyVector;
typedef GArray * ChewingKeyRestVector;
typedef GArray * ParseValueVector;