把楼主的拼音转化为无注音声调符的英文字母的函数,虽然很简单,但挺烦的。 Function EP(HanZiPinYin) P = HanZiPinYin P = Replace(P, ChrW(257), "a") P = Replace(P, ChrW(225), "a") P = Replace(P, ChrW(462), "a") P = Replace(P, ChrW(224), "a") P = Replace(P, ChrW(275), "e") P = Replace(P, ChrW(233), "e") P = Replace(P, ChrW(283), "e") P = Replace(P, ChrW(232), "e") P = Replace(P, ChrW(299), "i") P = Replace(P, ChrW(237), "i") P = Replace(P, ChrW(464), "i") P = Replace(P, ChrW(236), "i") P = Replace(P, ChrW(333), "o") P = Replace(P, ChrW(243), "o") P = Replace(P, ChrW(466), "o") P = Replace(P, ChrW(242), "o") P = Replace(P, ChrW(363), "u") P = Replace(P, ChrW(250), "u") P = Replace(P, ChrW(468), "u") P = Replace(P, ChrW(249), "u") P = Replace(P, ChrW(252), "v") P = Replace(P, ChrW(470), "v") P = Replace(P, ChrW(472), "v") P = Replace(P, ChrW(474), "v") P = Replace(P, ChrW(476), "v") EP = P End Function
|