summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-21 18:16:12 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-21 18:16:12 +0800
commit6f509d855cf5f19971130e97651be01b37ad0532 (patch)
treeb615e710a6a02ee5baeac6abb988cdb475744919
parent932126ad426803596f17a7ad320c8ded1ea8b2d7 (diff)
downloadlibpinyin-6f509d855cf5f19971130e97651be01b37ad0532.tar.gz
libpinyin-6f509d855cf5f19971130e97651be01b37ad0532.tar.xz
libpinyin-6f509d855cf5f19971130e97651be01b37ad0532.zip
re-factor tables
-rw-r--r--scripts/chewing_table.h.in9
-rw-r--r--scripts/pinyin_parser_table.h.in9
-rw-r--r--src/storage/chewing_table.h9
-rw-r--r--src/storage/pinyin_parser_table.h9
4 files changed, 18 insertions, 18 deletions
diff --git a/scripts/chewing_table.h.in b/scripts/chewing_table.h.in
index 16a05b7..8780b17 100644
--- a/scripts/chewing_table.h.in
+++ b/scripts/chewing_table.h.in
@@ -36,6 +36,15 @@ const chewing_tone_item_t chewing_ibm_tones[] = {
@IBM_TONES@
};
+const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
+"",
+"ˉ",
+"ˊ",
+"ˇ",
+"ˋ",
+"˙"
+};
+
};
#endif
diff --git a/scripts/pinyin_parser_table.h.in b/scripts/pinyin_parser_table.h.in
index 17f5615..2f98e0e 100644
--- a/scripts/pinyin_parser_table.h.in
+++ b/scripts/pinyin_parser_table.h.in
@@ -29,15 +29,6 @@ const gint chewing_key_table[CHEWING_NUMBER_OF_INITIALS *
@TABLE_INDEX@
};
-const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
-"",
-"ˉ",
-"ˊ",
-"ˇ",
-"ˋ",
-"˙"
-};
-
};
#endif
diff --git a/src/storage/chewing_table.h b/src/storage/chewing_table.h
index e82ceb7..56ceba0 100644
--- a/src/storage/chewing_table.h
+++ b/src/storage/chewing_table.h
@@ -207,6 +207,15 @@ const chewing_tone_item_t chewing_ibm_tones[] = {
{'\0', 0}
};
+const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
+"",
+"ˉ",
+"ˊ",
+"ˇ",
+"ˋ",
+"˙"
+};
+
};
#endif
diff --git a/src/storage/pinyin_parser_table.h b/src/storage/pinyin_parser_table.h
index 9abe2f1..f633604 100644
--- a/src/storage/pinyin_parser_table.h
+++ b/src/storage/pinyin_parser_table.h
@@ -3388,15 +3388,6 @@ const gint chewing_key_table[CHEWING_NUMBER_OF_INITIALS *
-1 /* ChewingKey(CHEWING_ZH, CHEWING_V, PINYIN_ING) */
};
-const char * chewing_tone_table[CHEWING_NUMBER_OF_TONES] = {
-"",
-"ˉ",
-"ˊ",
-"ˇ",
-"ˋ",
-"˙"
-};
-
};
#endif