diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-01-18 14:50:21 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-01-18 14:50:21 +0800 |
commit | 722857195c111dbe41dc240747e73720999d5017 (patch) | |
tree | fe8ad183e07a8490845a68573d424f0e0090fae1 /scripts | |
parent | abf357f7fb4db64b0487ebd1e1fff83670d27a16 (diff) | |
download | ibus-libpinyin-722857195c111dbe41dc240747e73720999d5017.tar.gz |
Use lve, nve to replace lue, nue
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genpytable.py | 5 | ||||
-rw-r--r-- | scripts/pydict.py | 10 |
2 files changed, 8 insertions, 7 deletions
diff --git a/scripts/genpytable.py b/scripts/genpytable.py index bb60cc5..8abb2e1 100644 --- a/scripts/genpytable.py +++ b/scripts/genpytable.py @@ -21,7 +21,8 @@ auto_correct = [ ("iu", "iou"), ("ui", "uei"), ("un", "uen"), - ("ue", "ve")] + ("ue", "ve"), + ("ve", "ue")] fuzzy_shengmu = [ ("c", "ch"), @@ -104,7 +105,7 @@ def get_pinyin(): yield p, s, y, len(p), [] for s in shengmu_list: - yield s, s, "", len(s), ["PINYIN_SIMPLE_PINYIN"] + yield s, s, "", len(s), ["PINYIN_INCOMPLETE_PINYIN"] for c, w in auto_correct: flag = "PINYIN_CORRECT_%s_TO_%s" % (w.upper(), c.upper()) diff --git a/scripts/pydict.py b/scripts/pydict.py index f864030..029d421 100644 --- a/scripts/pydict.py +++ b/scripts/pydict.py @@ -61,9 +61,9 @@ PINYIN_DICT = { "li" : 171, "lia" : 172, "lian" : 173, "liang" : 174, "liao" : 175, "lie" : 176, "lin" : 177, "ling" : 178, "liu" : 179, "lo" : 180, - "long" : 181, "lou" : 182, "lu" : 183, "luan" : 184, "lue" : 185, - "lun" : 186, "luo" : 187, "lv" : 188, - # "lve" : 189, + "long" : 181, "lou" : 182, "lu" : 183, "luan" : 184, + # "lue" : 185, + "lun" : 186, "luo" : 187, "lv" : 188, "lve" : 189, "ma" : 190, "mai" : 191, "man" : 192, "mang" : 193, "mao" : 194, "me" : 195, "mei" : 196, "men" : 197, "meng" : 198, "mi" : 199, "mian" : 200, @@ -74,8 +74,8 @@ PINYIN_DICT = { "niao" : 221, "nie" : 222, "nin" : 223, "ning" : 224, "niu" : 225, # "ng" : 226, "nong" : 227, "nou" : 228, "nu" : 229, "nuan" : 230, - "nue" : 231, "nuo" : 232, "nv" : 233, - # "nve" : 234, + # "nue" : 231, + "nuo" : 232, "nv" : 233, "nve" : 234, "o" : 235, "ou" : 236, "pa" : 237, "pai" : 238, "pan" : 239, "pang" : 240, "pao" : 241, "pei" : 242, "pen" : 243, "peng" : 244, "pi" : 245, |