summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-04 14:01:40 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-04 14:01:40 +0800
commitdbd8fa467a1034c89d3c2ca9ab06228eae3b9cb9 (patch)
tree3a8ea36844c83771c6ca1f48810243fac63bc04d
parentd4f3216453a75c932533e43f551dd87f810d0f24 (diff)
downloadlibpinyin-dbd8fa467a1034c89d3c2ca9ab06228eae3b9cb9.zip
libpinyin-dbd8fa467a1034c89d3c2ca9ab06228eae3b9cb9.tar.gz
libpinyin-dbd8fa467a1034c89d3c2ca9ab06228eae3b9cb9.tar.xz
add back ng
-rw-r--r--scripts/pinyin.py2
-rw-r--r--src/storage/pinyin_parser_table.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/pinyin.py b/scripts/pinyin.py
index 146d05d..174fdde 100644
--- a/scripts/pinyin.py
+++ b/scripts/pinyin.py
@@ -73,7 +73,7 @@ PINYIN_DICT = {
"nan" : 211, "nang" : 212, "nao" : 213, "ne" : 214, "nei" : 215,
"nen" : 216, "neng" : 217, "ni" : 218, "nian" : 219, "niang" : 220,
"niao" : 221, "nie" : 222, "nin" : 223, "ning" : 224, "niu" : 225,
- # "ng" : 226,
+ "ng" : 226,
"nong" : 227, "nou" : 228, "nu" : 229, "nuan" : 230,
# "nue" : 231,
"nuo" : 232, "nv" : 233, "nve" : 234,
diff --git a/src/storage/pinyin_parser_table.h b/src/storage/pinyin_parser_table.h
index 6d152d5..7a84435 100644
--- a/src/storage/pinyin_parser_table.h
+++ b/src/storage/pinyin_parser_table.h
@@ -350,6 +350,7 @@ const pinyin_index_item_t pinyin_index[] = {
{"nemg", IS_PINYIN|PINYIN_CORRECT_MG_NG, 233},
{"nen", IS_CHEWING|IS_PINYIN, 232},
{"neng", IS_CHEWING|IS_PINYIN, 233},
+{"ng", IS_CHEWING|IS_PINYIN, 234},
{"ni", IS_CHEWING|IS_PINYIN, 235},
{"niagn", IS_PINYIN|PINYIN_CORRECT_GN_NG, 238},
{"niamg", IS_PINYIN|PINYIN_CORRECT_MG_NG, 238},
@@ -1099,7 +1100,7 @@ const chewing_index_item_t chewing_index[] = {
{"ㄩㄢ", IS_CHEWING|IS_PINYIN, 399},
{"ㄩㄣ", IS_CHEWING|IS_PINYIN, 401},
{"ㄩㄥ", IS_CHEWING|IS_PINYIN, 396},
-{"ㄫ", IS_CHEWING, 234}
+{"ㄫ", IS_CHEWING|IS_PINYIN, 234}
};
const content_table_item_t content_table[] = {