接着,把英文字母组成的拼音转化为民国拼音。(好像也叫做仓颉拼音的。现在主要是台巴子在用。) Function PY(EPinYin) P = EPinYin P = Replace(P, "iang", ChrW(12583) & ChrW(12580)) P = Replace(P, "yang", ChrW(12583) & ChrW(12580)) P = Replace(P, "iong", ChrW(12585) & ChrW(12581)) P = Replace(P, "yong", ChrW(12585) & ChrW(12581)) P = Replace(P, "yuan", ChrW(12585) & ChrW(12578)) P = Replace(P, "juan", ChrW(12560) & ChrW(12585) & ChrW(12578)) P = Replace(P, "quan", ChrW(12561) & ChrW(12585) & ChrW(12578)) P = Replace(P, "xuan", ChrW(12562) & ChrW(12585) & ChrW(12578)) P = Replace(P, "ang", ChrW(12580)) P = Replace(P, "eng", ChrW(12581)) P = Replace(P, "ong", ChrW(12584) & ChrW(12581)) P = Replace(P, "iao", ChrW(12583) & ChrW(12576)) P = Replace(P, "yao", ChrW(12583) & ChrW(12576)) P = Replace(P, "iou", ChrW(12583) & ChrW(12577)) P = Replace(P, "you", ChrW(12583) & ChrW(12577)) P = Replace(P, "ian", ChrW(12583) & ChrW(12578)) P = Replace(P, "yan", ChrW(12583) & ChrW(12578)) P = Replace(P, "ing", ChrW(12583) & ChrW(12581)) P = Replace(P, "yue", ChrW(12585) & ChrW(12573)) P = Replace(P, "yun", ChrW(12585) & ChrW(12579)) P = Replace(P, "jue", ChrW(12560) & ChrW(12585) & ChrW(12573)) P = Replace(P, "que", ChrW(12561) & ChrW(12585) & ChrW(12573)) P = Replace(P, "xue", ChrW(12562) & ChrW(12585) & ChrW(12573)) P = Replace(P, "jun", ChrW(12560) & ChrW(12585) & ChrW(12579)) P = Replace(P, "qun", ChrW(12561) & ChrW(12585) & ChrW(12579)) P = Replace(P, "xun", ChrW(12562) & ChrW(12585) & ChrW(12579)) P = Replace(P, "wu", ChrW(12584)) P = Replace(P, "ui", ChrW(12584) & ChrW(12575)) P = Replace(P, "ve", ChrW(12585) & ChrW(12573)) P = Replace(P, "vn", ChrW(12585) & ChrW(12579)) P = Replace(P, "ya", ChrW(12583) & ChrW(12570)) P = Replace(P, "ye", ChrW(12583) & ChrW(12573)) P = Replace(P, "yu", ChrW(12585)) P = Replace(P, "ju", ChrW(12560) & ChrW(12585)) P = Replace(P, "qu", ChrW(12561) & ChrW(12585)) P = Replace(P, "xu", ChrW(12562) & ChrW(12585)) P = Replace(P, "ia", ChrW(12583) & ChrW(12570)) P = Replace(P, "ie", ChrW(12583) & ChrW(12573)) P = Replace(P, "iu", ChrW(12583) & ChrW(12577)) P = Replace(P, "in", ChrW(12583) & ChrW(12579)) P = Replace(P, "un", ChrW(12584) & ChrW(12579)) P = Replace(P, "ai", ChrW(12574)) P = Replace(P, "ei", ChrW(12575)) P = Replace(P, "ao", ChrW(12576)) P = Replace(P, "ou", ChrW(12577)) P = Replace(P, "an", ChrW(12578)) P = Replace(P, "en", ChrW(12579)) P = Replace(P, "er", ChrW(12582)) P = Replace(P, "zh", ChrW(12563)) P = Replace(P, "ch", ChrW(12564)) P = Replace(P, "sh", ChrW(12565)) P = Replace(P, "b", ChrW(12549)) P = Replace(P, "p", ChrW(12550)) P = Replace(P, "m", ChrW(12551)) P = Replace(P, "f", ChrW(12552)) P = Replace(P, "d", ChrW(12553)) P = Replace(P, "t", ChrW(12554)) P = Replace(P, "n", ChrW(12555)) P = Replace(P, "l", ChrW(12556)) P = Replace(P, "g", ChrW(12557)) P = Replace(P, "k", ChrW(12558)) P = Replace(P, "h", ChrW(12559)) P = Replace(P, "j", ChrW(12560)) P = Replace(P, "q", ChrW(12561)) P = Replace(P, "x", ChrW(12562)) P = Replace(P, "r", ChrW(12566)) P = Replace(P, "z", ChrW(12567)) P = Replace(P, "c", ChrW(12568)) P = Replace(P, "s", ChrW(12569)) P = Replace(P, "a", ChrW(12570)) P = Replace(P, "o", ChrW(12571)) P = Replace(P, "e", ChrW(12572)) P = Replace(P, "i", ChrW(12583)) P = Replace(P, "y", "") P = Replace(P, "w", ChrW(12584)) P = Replace(P, "u", ChrW(12584)) P = Replace(P, "v", ChrW(12585)) PY = P End Function |