summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-21 17:04:53 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-21 17:04:53 +0800
commit8ac98651bc12bb8cea38ca8bdb91f4187d0f8e99 (patch)
treede6142a9ff673104e24e3041f3150524b22d573c
parent66edb5757ba36adf5d31d29affd78881d186ae36 (diff)
downloadlibpinyin-8ac98651bc12bb8cea38ca8bdb91f4187d0f8e99.tar.gz
libpinyin-8ac98651bc12bb8cea38ca8bdb91f4187d0f8e99.tar.xz
libpinyin-8ac98651bc12bb8cea38ca8bdb91f4187d0f8e99.zip
add chewing_table.h
-rw-r--r--scripts/Makefile.data1
-rw-r--r--src/storage/chewing_table.h187
2 files changed, 188 insertions, 0 deletions
diff --git a/scripts/Makefile.data b/scripts/Makefile.data
index 21a4dda..9c9f823 100644
--- a/scripts/Makefile.data
+++ b/scripts/Makefile.data
@@ -10,6 +10,7 @@ pinyins.txt:
update-header:
python3 genpinyinheader.py > ../src/storage/pinyin_parser_table.h
python3 gendoublepinyinheader.py > ../src/storage/double_pinyin_table.h
+ python3 genbopomofoheader.py > ../src/storage/chewing_table.h
.PHONY: pinyins.txt
diff --git a/src/storage/chewing_table.h b/src/storage/chewing_table.h
new file mode 100644
index 0000000..2eb706b
--- /dev/null
+++ b/src/storage/chewing_table.h
@@ -0,0 +1,187 @@
+/* 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[] = {
+{',' , "ㄝ"},
+{'-' , "ㄦ"},
+{'.' , "ㄡ"},
+{'/' , "ㄥ"},
+{'0' , "ㄢ"},
+{'1' , "ㄅ"},
+{'2' , "ㄉ"},
+{'3' , "ˇ"},
+{'4' , "ˋ"},
+{'5' , "ㄓ"},
+{'6' , "ˊ"},
+{'7' , "˙"},
+{'8' , "ㄚ"},
+{'9' , "ㄞ"},
+{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},
+{'z' , "ˋ"}
+};
+
+const chewing_scheme_item_t chewing_eten[] = {
+{''' , "ㄘ"},
+{',' , "ㄓ"},
+{'-' , "ㄥ"},
+{'.' , "ㄔ"},
+{'/' , "ㄕ"},
+{'0' , "ㄤ"},
+{'1' , "˙"},
+{'2' , "ˊ"},
+{'3' , "ˇ"},
+{'4' , "ˋ"},
+{'7' , "ㄑ"},
+{'8' , "ㄢ"},
+{'9' , "ㄣ"},
+{';' , "ㄗ"},
+{'=' , "ㄦ"},
+{'a' , "ㄚ"},
+{'b' , "ㄅ"},
+{'c' , "ㄒ"},
+{'d' , "ㄉ"},
+{'e' , "ㄧ"},
+{'f' , "ㄈ"},
+{'g' , "ㄐ"},
+{'h' , "ㄏ"},
+{'i' , "ㄞ"},
+{'j' , "ㄖ"},
+{'k' , "ㄎ"},
+{'l' , "ㄌ"},
+{'m' , "ㄇ"},
+{'n' , "ㄋ"},
+{'o' , "ㄛ"},
+{'p' , "ㄆ"},
+{'q' , "ㄟ"},
+{'r' , "ㄜ"},
+{'s' , "ㄙ"},
+{'t' , "ㄊ"},
+{'u' , "ㄩ"},
+{'v' , "ㄍ"},
+{'w' , "ㄝ"},
+{'x' , "ㄨ"},
+{'y' , "ㄡ"},
+{'z' , "ㄠ"}
+};
+
+const chewing_scheme_item_t chewing_ibm[] = {
+{',' , "ˇ"},
+{'-' , "ㄏ"},
+{'.' , "ˋ"},
+{'/' , "˙"},
+{'0' , "ㄎ"},
+{'1' , "ㄅ"},
+{'2' , "ㄆ"},
+{'3' , "ㄇ"},
+{'4' , "ㄈ"},
+{'5' , "ㄉ"},
+{'6' , "ㄊ"},
+{'7' , "ㄋ"},
+{'8' , "ㄌ"},
+{'9' , "ㄍ"},
+{';' , "ㄠ"},
+{'a' , "ㄧ"},
+{'b' , "ㄥ"},
+{'c' , "ㄣ"},
+{'d' , "ㄩ"},
+{'e' , "ㄒ"},
+{'f' , "ㄚ"},
+{'g' , "ㄛ"},
+{'h' , "ㄜ"},
+{'i'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