add back ng
authorPeng Wu <alexepico@gmail.com>
Mon, 4 Feb 2013 06:01:40 +0000 (14:01 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 4 Feb 2013 06:01:40 +0000 (14:01 +0800)
scripts/pinyin.py
src/storage/pinyin_parser_table.h

index 146d05d..174fdde 100644 (file)
@@ -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,
index 6d152d5..7a84435 100644 (file)
@@ -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[] = {