summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-10-21 13:18:26 +0800
committerPeng Wu <alexepico@gmail.com>2011-10-21 13:18:26 +0800
commitb4cbe2df994564efa1d7b0e6d2e76c59deaa12ab (patch)
tree5615ea4ce2eaef5b6eea2ba1483a96c836dba43d
parentc1a2c8e0902f456e38c35168b5487ef2bb66d79d (diff)
downloadlibpinyin-b4cbe2df994564efa1d7b0e6d2e76c59deaa12ab.tar.gz
libpinyin-b4cbe2df994564efa1d7b0e6d2e76c59deaa12ab.tar.xz
libpinyin-b4cbe2df994564efa1d7b0e6d2e76c59deaa12ab.zip
add 'ng'
-rw-r--r--scripts/bopomofo.py1
-rw-r--r--scripts/chewing.py80
2 files changed, 41 insertions, 40 deletions
diff --git a/scripts/bopomofo.py b/scripts/bopomofo.py
index 6e32f9d..dd53ea1 100644
--- a/scripts/bopomofo.py
+++ b/scripts/bopomofo.py
@@ -465,6 +465,7 @@ BOPOMOFO_PINYIN_MAP = {
"ㄩㄢ" : "yuan",
"ㄩㄣ" : "yun",
"ㄩㄥ" : "yong",
+ "ㄫ" : "ng",
}
PINYIN_BOPOMOFO_MAP = dict([(v, k) for k, v in BOPOMOFO_PINYIN_MAP.items()])
diff --git a/scripts/chewing.py b/scripts/chewing.py
index 16ff97b..716f874 100644
--- a/scripts/chewing.py
+++ b/scripts/chewing.py
@@ -21,53 +21,53 @@
ASCII_CHEWING_SHENGMU_MAP = {
- "CHEWING_B":"ㄅ",
- "CHEWING_C":"ㄘ",
- "CHEWING_CH":"ㄔ",
- "CHEWING_D":"ㄉ",
- "CHEWING_F":"ㄈ",
- "CHEWING_H":"ㄏ",
- "CHEWING_G":"ㄍ",
- "CHEWING_K":"ㄎ",
- "CHEWING_J":"ㄐ",
- "CHEWING_M":"ㄇ",
- "CHEWING_N":"ㄋ",
- "CHEWING_L":"ㄌ",
- "CHEWING_R":"ㄖ",
- "CHEWING_P":"ㄆ",
- "CHEWING_Q":"ㄑ",
- "CHEWING_S":"ㄙ",
- "CHEWING_SH":"ㄕ",
- "CHEWING_T":"ㄊ",
- "CHEWING_X":"ㄒ",
- "CHEWING_Z":"ㄗ",
- "CHEWING_ZH":"ㄓ",
+ "CHEWING_B" : "ㄅ",
+ "CHEWING_C" : "ㄘ",
+ "CHEWING_CH" : "ㄔ",
+ "CHEWING_D" : "ㄉ",
+ "CHEWING_F" : "ㄈ",
+ "CHEWING_H" : "ㄏ",
+ "CHEWING_G" : "ㄍ",
+ "CHEWING_K" : "ㄎ",
+ "CHEWING_J" : "ㄐ",
+ "CHEWING_M" : "ㄇ",
+ "CHEWING_N" : "ㄋ",
+ "CHEWING_L" : "ㄌ",
+ "CHEWING_R" : "ㄖ",
+ "CHEWING_P" : "ㄆ",
+ "CHEWING_Q" : "ㄑ",
+ "CHEWING_S" : "ㄙ",
+ "CHEWING_SH" : "ㄕ",
+ "CHEWING_T" : "ㄊ",
+ "CHEWING_X" : "ㄒ",
+ "CHEWING_Z" : "ㄗ",
+ "CHEWING_ZH" : "ㄓ",
}
-CHEWING_ASCII_SHENGMU_MAP = dict([(v, k) for k, v in ASCII_CHEWING_SHENGMU_MAP])
+CHEWING_ASCII_SHENGMU_MAP = dict([(v, k) for k, v in ASCII_CHEWING_SHENGMU_MAP.items()])
ASCII_CHEWING_MIDDLE_MAP = {
- "CHEWING_I":"ㄧ",
- "CHEWING_U":"ㄨ",
- "CHEWING_V":"ㄩ",
+ "CHEWING_I" : "ㄧ",
+ "CHEWING_U" : "ㄨ",
+ "CHEWING_V" : "ㄩ",
}
-CHEWING_ASCII_MIDDLE_MAP = dict([(v, k) for k, v in ASCII_CHEWING_MIDDLE_MAP])
+CHEWING_ASCII_MIDDLE_MAP = dict([(v, k) for k, v in ASCII_CHEWING_MIDDLE_MAP.items()])
ASCII_CHEWING_YUNMU_MAP = {
- "CHEWING_A":"ㄚ",
- "CHEWING_AI":"ㄞ",
- "CHEWING_AN":"ㄢ",
- "CHEWING_ANG":"ㄤ",
- "CHEWING_AO":"ㄠ",
- "CHEWING_E":"ㄜ",
- "CHEWING_EI":"ㄟ",
- "CHEWING_EN":"ㄣ",
- "CHEWING_ENG":"ㄥ",
- "CHEWING_ER":"ㄦ",
- "CHEWING_NG":"ㄫ",
- "CHEWING_O":"ㄛ",
- "CHEWING_OU":"ㄡ",
+ "CHEWING_A" : "ㄚ",
+ "CHEWING_AI" : "ㄞ",
+ "CHEWING_AN" : "ㄢ",
+ "CHEWING_ANG" : "ㄤ",
+ "CHEWING_AO" : "ㄠ",
+ "CHEWING_E" : "ㄜ",
+ "CHEWING_EI" : "ㄟ",
+ "CHEWING_EN" : "ㄣ",
+ "CHEWING_ENG" : "ㄥ",
+ "CHEWING_ER" : "ㄦ",
+ "CHEWING_NG" : "ㄫ",
+ "CHEWING_O" : "ㄛ",
+ "CHEWING_OU" : "ㄡ",
}
-CHEWING_ASCII_YUNMU_MAP = dict([(v, k) for k, v in ASCII_CHEWING_YUNMU_MAP])
+CHEWING_ASCII_YUNMU_MAP = dict([(v, k) for k, v in ASCII_CHEWING_YUNMU_MAP.items()])