summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_key.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-11 15:49:31 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-11 15:54:27 +0800
commit7bc654629866b4363263f84498d6a96254691001 (patch)
tree4f3c6388c06abba2a9172fb4086182357a270890 /src/storage/chewing_key.h
parent881cb28569082bdaa5be92ab991dcf28577636dd (diff)
downloadlibpinyin-7bc654629866b4363263f84498d6a96254691001.tar.gz
libpinyin-7bc654629866b4363263f84498d6a96254691001.tar.xz
libpinyin-7bc654629866b4363263f84498d6a96254691001.zip
add pinyin parser class definition
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r--src/storage/chewing_key.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h
index 8234a4f..57dd06e 100644
--- a/src/storage/chewing_key.h
+++ b/src/storage/chewing_key.h
@@ -120,10 +120,39 @@ enum ChewingTone
CHEWING_NUMBER_OF_TONES = CHEWING_LAST_TONE + 1
};
+/**
+ * @brief enums of Shuang Pin Schemes.
+ */
+enum DoublePinyinScheme
+{
+ DOUBLE_PINYIN_ZRM = 1,
+ DOUBLE_PINYIN_MS = 2,
+ DOUBLE_PINYIN_ZIGUANG = 3,
+ DOUBLE_PINYIN_ABC = 4,
+ DOUBLE_PINYIN_PYJJ = 6,
+ DOUBLE_PINYIN_XHE = 7,
+ DOUBLE_PINYIN_CUSTOMIZED = 30, /* for user's keyboard */
+ DOUBLE_PINYIN_DEFAULT = DOUBLE_PINYIN_MS
+};
+
+/**
+ * @brief enums of ZhuYin Schemes.
+ */
+enum ChewingScheme
+{
+ CHEWING_STANDARD = 1,
+ CHEWING_HSU = 2,
+ CHEWING_IBM = 3,
+ CHEWING_GIN_YIEH = 4,
+ CHEWING_ET = 5,
+ CHEWING_ET26 = 6,
+ CHEWING_DEFAULT = CHEWING_STANDARD
+};
+
/** Note: The parsed pinyins are stored in the following two
* GArrays to speed up chewing table lookup.
- * As the chewing table only contains information of struct ChewingKey.
+ * As the chewing large table only contains information of struct ChewingKey.
*/
struct ChewingKey