汉字转化为拼音程序代码

合集下载

汉字转拼音的代码

汉字转拼音的代码

汉字转拼音的代码Function pinyin(p As String) As Stringi = Asc(p)Select Case iCase -20319 To -20318: pinyin = "a " Case -20317 To -20305: pinyin = "ai " Case -20304 To -20296: pinyin = "an " Case -20295 To -20293: pinyin = "ang " Case -20292 To -20284: pinyin = "ao " Case -20283 To -20266: pinyin = "ba " Case -20265 To -20258: pinyin = "bai " Case -20257 To -20243: pinyin = "ban " Case -20242 To -20231: pinyin = "bang " Case -20230 To -20052: pinyin = "bao " Case -20051 To -20037: pinyin = "bei "Case -20036 To -20033: pinyin = "ben " Case -20032 To -20027: pinyin = "beng " Case -20026 To -20003: pinyin = "bi " Case -20002 To -19991: pinyin = "bian " Case -19990 To -19987: pinyin = "biao " Case -19986 To -19983: pinyin = "bie " Case -19982 To -19977: pinyin = "bin " Case -19976 To -19806: pinyin = "bing " Case -19805 To -19785: pinyin = "bo " Case -19784 To -19776: pinyin = "bu " Case -19775 To -19775: pinyin = "ca " Case -19774 To -19764: pinyin = "cai " Case -19763 To -19757: pinyin = "can " Case -19756 To -19752: pinyin = "cang " Case -19751 To -19747: pinyin = "cao "Case -19746 To -19742: pinyin = "ce " Case -19741 To -19740: pinyin = "ceng " Case -19739 To -19729: pinyin = "cha " Case -19728 To -19726: pinyin = "chai " Case -19725 To -19716: pinyin = "chan " Case -19715 To -19541: pinyin = "chang " Case -19540 To -19532: pinyin = "chao " Case -19531 To -19526: pinyin = "che " Case -19525 To -19516: pinyin = "chen " Case -19515 To -19501: pinyin = "cheng " Case -19500 To -19485: pinyin = "chi " Case -19484 To -19480: pinyin = "chong " Case -19479 To -19468: pinyin = "chou " Case -19467 To -19290: pinyin = "chu " Case -19289 To -19289: pinyin = "chuai "Case -19281 To -19276: pinyin = "chuang " Case -19275 To -19271: pinyin = "chui " Case -19270 To -19264: pinyin = "chun " Case -19263 To -19262: pinyin = "chuo " Case -19261 To -19250: pinyin = "ci " Case -19249 To -19244: pinyin = "cong " Case -19243 To -19243: pinyin = "cou " Case -19242 To -19239: pinyin = "cu " Case -19238 To -19236: pinyin = "cuan " Case -19235 To -19228: pinyin = "cui " Case -19227 To -19225: pinyin = "cun " Case -19224 To -19219: pinyin = "cuo " Case -19218 To -19213: pinyin = "da " Case -19212 To -19039: pinyin = "dai "Case -19023 To -19019: pinyin = "dang " Case -19018 To -19007: pinyin = "dao " Case -19006 To -19004: pinyin = "de " Case -19003 To -18997: pinyin = "deng " Case -18996 To -18978: pinyin = "di " Case -18977 To -18962: pinyin = "dian " Case -18961 To -18953: pinyin = "diao " Case -18952 To -18784: pinyin = "die " Case -18783 To -18775: pinyin = "ding " Case -18774 To -18774: pinyin = "diu " Case -18773 To -18527: pinyin = "dong " Case -18526 To -18519: pinyin = "fa " Case -18518 To -18502: pinyin = "fan " Case -18501 To -18491: pinyin = "fang "Case -18490 To -18479: pinyin = "fei " Case -18478 To -18464: pinyin = "fen " Case -18463 To -18449: pinyin = "feng " Case -18448 To -18448: pinyin = "fo " Case -18447 To -18447: pinyin = "fou " Case -18446 To -18240: pinyin = "fu " Case -18239 To -18238: pinyin = "ga " Case -18237 To -18232: pinyin = "gai " Case -18231 To -18221: pinyin = "gan " Case -18220 To -18212: pinyin = "gang " Case -18211 To -18202: pinyin = "gao " Case -18201 To -18185: pinyin = "ge " Case -18184 To -18184: pinyin = "gei " Case -18183 To -18182: pinyin = "gen " Case -18181 To -18013: pinyin = "geng "Case -18012 To -17998: pinyin = "gong " Case -17997 To -17989: pinyin = "gou " Case -17988 To -17971: pinyin = "gu " Case -17970 To -17965: pinyin = "gua " Case -17964 To -17962: pinyin = "guai " Case -17961 To -17951: pinyin = "guan " Case -17950 To -17948: pinyin = "guang " Case -17947 To -17932: pinyin = "gui " Case -17931 To -17929: pinyin = "gun " Case -17928 To -17923: pinyin = "guo " Case -17922 To -17760: pinyin = "ha " Case -17759 To -17753: pinyin = "hai " Case -17752 To -17734: pinyin = "han " Case -17733 To -17731: pinyin = "hang " Case -17730 To -17722: pinyin = "hao "Case -17703 To -17702: pinyin = "hei " Case -17701 To -17698: pinyin = "hen " Case -17697 To -17693: pinyin = "heng " Case -17692 To -17684: pinyin = "hong " Case -17683 To -17677: pinyin = "hou " Case -17676 To -17497: pinyin = "hu " Case -17496 To -17488: pinyin = "hua " Case -17487 To -17483: pinyin = "huai " Case -17482 To -17469: pinyin = "huan " Case -17468 To -17455: pinyin = "huang " Case -17454 To -17434: pinyin = "hui " Case -17433 To -17428: pinyin = "hun " Case -17427 To -17418: pinyin = "huo " Case -17417 To -17203: pinyin = "ji "Case -17185 To -16984: pinyin = "jian "Case -16983 To -16971: pinyin = "jiang " Case -16970 To -16943: pinyin = "jiao " Case -16942 To -16916: pinyin = "jie " Case -16915 To -16734: pinyin = "jin " Case -16733 To -16709: pinyin = "jing " Case -16708 To -16707: pinyin = "jiong " Case -16706 To -16690: pinyin = "jiu " Case -16689 To -16665: pinyin = "ju " Case -16664 To -16658: pinyin = "juan "Case -16657 To -16648: pinyin = "jue "Case -16647 To -16475: pinyin = "jun " Case -16474 To -16471: pinyin = "ka " Case -16470 To -16466: pinyin = "kai "Case -16465 To -16460: pinyin = "kan " Case -16459 To -16453: pinyin = "kang " Case -16452 To -16449: pinyin = "kao " Case -16448 To -16434: pinyin = "ke " Case -16433 To -16430: pinyin = "ken " Case -16429 To -16428: pinyin = "keng " Case -16427 To -16424: pinyin = "kong " Case -16423 To -16420: pinyin = "kou " Case -16419 To -16413: pinyin = "ku " Case -16412 To -16408: pinyin = "kua " Case -16407 To -16404: pinyin = "kuai " Case -16403 To -16402: pinyin = "kuan " Case -16401 To -16394: pinyin = "kuang " Case -16393 To -16221: pinyin = "kui " Case -16220 To -16217: pinyin = "kun "Case -16216 To -16213: pinyin = "kuo " Case -16212 To -16206: pinyin = "la " Case -16205 To -16203: pinyin = "lai " Case -16202 To -16188: pinyin = "lan " Case -16187 To -16181: pinyin = "lang " Case -16180 To -16172: pinyin = "lao " Case -16171 To -16170: pinyin = "le " Case -16169 To -16159: pinyin = "lei " Case -16158 To -16156: pinyin = "leng " Case -16155 To -15960: pinyin = "li " Case -15959 To -15959: pinyin = "lia " Case -15958 To -15945: pinyin = "lian " Case -15944 To -15934: pinyin = "liang " Case -15933 To -15921: pinyin = "liao " Case -15920 To -15916: pinyin = "lie "Case -15915 To -15904: pinyin = "lin " Case -15903 To -15890: pinyin = "ling " Case -15889 To -15879: pinyin = "liu " Case -15878 To -15708: pinyin = "long " Case -15707 To -15702: pinyin = "lou " Case -15701 To -15682: pinyin = "lu " Case -15681 To -15668: pinyin = "lv " Case -15667 To -15662: pinyin = "luan " Case -15661 To -15660: pinyin = "lue " Case -15659 To -15653: pinyin = "lun " Case -15652 To -15641: pinyin = "luo " Case -15640 To -15632: pinyin = "ma " Case -15631 To -15626: pinyin = "mai " Case -15625 To -15455: pinyin = "man " Case -15454 To -15449: pinyin = "mang "Case -15448 To -15437: pinyin = "mao " Case -15436 To -15436: pinyin = "me " Case -15435 To -15420: pinyin = "mei " Case -15419 To -15417: pinyin = "men " Case -15416 To -15409: pinyin = "meng " Case -15408 To -15395: pinyin = "mi " Case -15394 To -15386: pinyin = "mian " Case -15385 To -15378: pinyin = "miao " Case -15377 To -15376: pinyin = "mie " Case -15375 To -15370: pinyin = "min " Case -15369 To -15364: pinyin = "ming " Case -15363 To -15363: pinyin = "miu " Case -15362 To -15184: pinyin = "mo " Case -15183 To -15181: pinyin = "mou " Case -15180 To -15166: pinyin = "mu "Case -15165 To -15159: pinyin = "na " Case -15158 To -15154: pinyin = "nai " Case -15153 To -15151: pinyin = "nan " Case -15150 To -15150: pinyin = "nang " Case -15149 To -15145: pinyin = "nao " Case -15144 To -15144: pinyin = "ne " Case -15143 To -15142: pinyin = "nei " Case -15141 To -15141: pinyin = "nen " Case -15140 To -15140: pinyin = "neng " Case -15139 To -15129: pinyin = "ni " Case -15128 To -15122: pinyin = "nian " Case -15121 To -15120: pinyin = "niang " Case -15119 To -15118: pinyin = "niao " Case -15117 To -15111: pinyin = "nie "Case -15110 To -15110: pinyin = "nin " Case -15109 To -14942: pinyin = "ning " Case -14941 To -14938: pinyin = "niu " Case -14937 To -14934: pinyin = "nong " Case -14933 To -14931: pinyin = "nu " Case -14930 To -14930: pinyin = "nv " Case -14929 To -14929: pinyin = "nuan " Case -14928 To -14927: pinyin = "nue " Case -14926 To -14923: pinyin = "nuo " Case -14922 To -14922: pinyin = "o " Case -14921 To -14915: pinyin = "ou " Case -14914 To -14909: pinyin = "pa " Case -14908 To -14903: pinyin = "pai " Case -14902 To -14895: pinyin = "pan " Case -14894 To -14890: pinyin = "pang "Case -14889 To -14883: pinyin = "pao " Case -14882 To -14874: pinyin = "pei " Case -14873 To -14872: pinyin = "pen " Case -14871 To -14858: pinyin = "peng " Case -14857 To -14679: pinyin = "pi " Case -14678 To -14675: pinyin = "pian " Case -14674 To -14671: pinyin = "piao " Case -14670 To -14669: pinyin = "pie " Case -14668 To -14664: pinyin = "pin " Case -14663 To -14655: pinyin = "ping " Case -14654 To -14646: pinyin = "po " Case -14645 To -14631: pinyin = "pu " Case -14630 To -14595: pinyin = "qi " Case -14594 To -14430: pinyin = "qia " Case -14429 To -14408: pinyin = "qian "Case -14407 To -14400: pinyin = "qiang " Case -14399 To -14385: pinyin = "qiao " Case -14384 To -14380: pinyin = "qie " Case -14379 To -14369: pinyin = "qin " Case -14368 To -14356: pinyin = "qing " Case -14355 To -14354: pinyin = "qiong " Case -14353 To -14346: pinyin = "qiu " Case -14345 To -14171: pinyin = "qu " Case -14170 To -14160: pinyin = "quan " Case -14159 To -14152: pinyin = "que " Case -14151 To -14150: pinyin = "qun " Case -14149 To -14146: pinyin = "ran " Case -14145 To -14141: pinyin = "rang " Case -14140 To -14138: pinyin = "rao " Case -14137 To -14136: pinyin = "re "Case -14135 To -14126: pinyin = "ren " Case -14125 To -14124: pinyin = "reng " Case -14123 To -14123: pinyin = "ri " Case -14122 To -14113: pinyin = "rong " Case -14112 To -14110: pinyin = "rou " Case -14109 To -14100: pinyin = "ru " Case -14099 To -14098: pinyin = "ruan " Case -14097 To -14095: pinyin = "rui " Case -14094 To -14093: pinyin = "run " Case -14092 To -14091: pinyin = "ruo " Case -14090 To -14088: pinyin = "sa " Case -14087 To -14084: pinyin = "sai " Case -14083 To -13918: pinyin = "san " Case -13917 To -13915: pinyin = "sang " Case -13914 To -13911: pinyin = "sao "Case -13910 To -13908: pinyin = "se " Case -13907 To -13907: pinyin = "sen " Case -13906 To -13906: pinyin = "seng " Case -13905 To -13897: pinyin = "sha " Case -13896 To -13895: pinyin = "shai " Case -13894 To -13879: pinyin = "shan " Case -13878 To -13871: pinyin = "shang " Case -13870 To -13860: pinyin = "shao " Case -13859 To -13848: pinyin = "she " Case -13847 To -13832: pinyin = "shen " Case -13831 To -13659: pinyin = "sheng " Case -13658 To -13612: pinyin = "shi " Case -13611 To -13602: pinyin = "shou " Case -13601 To -13407: pinyin = "shu " Case -13406 To -13405: pinyin = "shua "Case -13404 To -13401: pinyin = "shuai " Case -13400 To -13399: pinyin = "shuan " Case -13398 To -13396: pinyin = "shuang " Case -13395 To -13392: pinyin = "shui " Case -13391 To -13388: pinyin = "shun " Case -13387 To -13384: pinyin = "shuo " Case -13383 To -13368: pinyin = "si " Case -13367 To -13360: pinyin = "song " Case -13359 To -13357: pinyin = "sou " Case -13356 To -13344: pinyin = "su " Case -13343 To -13341: pinyin = "suan " Case -13340 To -13330: pinyin = "sui " Case -13329 To -13327: pinyin = "sun " Case -13326 To -13319: pinyin = "suo " Case -13318 To -13148: pinyin = "ta "Case -13147 To -13139: pinyin = "tai " Case -13138 To -13121: pinyin = "tan " Case -13120 To -13108: pinyin = "tang " Case -13107 To -13097: pinyin = "tao " Case -13096 To -13096: pinyin = "te " Case -13095 To -13092: pinyin = "teng " Case -13091 To -13077: pinyin = "ti " Case -13076 To -13069: pinyin = "tian " Case -13068 To -13064: pinyin = "tiao " Case -13063 To -13061: pinyin = "tie " Case -13060 To -12889: pinyin = "ting " Case -12888 To -12876: pinyin = "tong " Case -12875 To -12872: pinyin = "tou " Case -12871 To -12861: pinyin = "tu " Case -12860 To -12859: pinyin = "tuan "Case -12858 To -12853: pinyin = "tui "Case -12852 To -12850: pinyin = "tun " Case -12849 To -12839: pinyin = "tuo " Case -12838 To -12832: pinyin = "wa " Case -12831 To -12830: pinyin = "wai " Case -12829 To -12813: pinyin = "wan " Case -12812 To -12803: pinyin = "wang " Case -12802 To -12608: pinyin = "wei " Case -12607 To -12598: pinyin = "wen " Case -12597 To -12595: pinyin = "weng " Case -12594 To -12586: pinyin = "wo " Case -12585 To -12557: pinyin = "wu "Case -12556 To -12360: pinyin = "xi "Case -12359 To -12347: pinyin = "xia "Case -12346 To -12321: pinyin = "xian " Case -12320 To -12301: pinyin = "xiang " Case -12300 To -12121: pinyin = "xiao " Case -12120 To -12100: pinyin = "xie " Case -12099 To -12090: pinyin = "xin " Case -12089 To -12075: pinyin = "xing " Case -12074 To -12068: pinyin = "xiong " Case -12067 To -12059: pinyin = "xiu " Case -12058 To -12040: pinyin = "xu " Case -12039 To -11868: pinyin = "xuan " Case -11867 To -11862: pinyin = "xue " Case -11861 To -11848: pinyin = "xun " Case -11847 To -11832: pinyin = "ya " Case -11831 To -11799: pinyin = "yan " Case -11798 To -11782: pinyin = "yang "Case -11604 To -11590: pinyin = "ye " Case -11589 To -11537: pinyin = "yi " Case -11536 To -11359: pinyin = "yin " Case -11358 To -11341: pinyin = "ying " Case -11340 To -11340: pinyin = "yo " Case -11339 To -11325: pinyin = "yong " Case -11324 To -11304: pinyin = "you " Case -11303 To -11098: pinyin = "yu " Case -11097 To -11078: pinyin = "yuan " Case -11077 To -11068: pinyin = "yue " Case -11067 To -11056: pinyin = "yun " Case -11055 To -11053: pinyin = "za " Case -11052 To -11046: pinyin = "zai " Case -11045 To -11042: pinyin = "zan "Case -11038 To -11025: pinyin = "zao " Case -11024 To -11021: pinyin = "ze " Case -11020 To -11020: pinyin = "zei " Case -11019 To -11019: pinyin = "zen " Case -11018 To -11015: pinyin = "zeng " Case -11014 To -10839: pinyin = "zha " Case -10838 To -10833: pinyin = "zhai " Case -10832 To -10816: pinyin = "zhan " Case -10815 To -10801: pinyin = "zhang " Case -10800 To -10791: pinyin = "zhao " Case -10790 To -10781: pinyin = "zhe " Case -10780 To -10765: pinyin = "zhen " Case -10764 To -10588: pinyin = "zheng " Case -10587 To -10545: pinyin = "zhi "Case -10533 To -10520: pinyin = "zhou " Case -10519 To -10332: pinyin = "zhu " Case -10331 To -10330: pinyin = "zhua " Case -10329 To -10329: pinyin = "zhuai " Case -10328 To -10323: pinyin = "zhuan " Case -10322 To -10316: pinyin = "zhuang " Case -10315 To -10310: pinyin = "zhui " Case -10309 To -10308: pinyin = "zhun " Case -10307 To -10297: pinyin = "zhuo " Case -10296 To -10282: pinyin = "zi " Case -10281 To -10275: pinyin = "zong " Case -10274 To -10271: pinyin = "zou " Case -10270 To -10263: pinyin = "zu " Case -10262 To -10261: pinyin = "zuan "Case -10260 To -10257: pinyin = "zui "Case -10256 To -10255: pinyin = "zun " Case -10254 To -10254: pinyin = "zuo "Case Else:pinyin = pEnd SelectEnd FunctionFunction getpy(str)For i = 1 To Len(str)getpy = getpy & pinyin(Mid(str, i, 1)) Next iEnd Function。

Python汉字转换成拼音

Python汉字转换成拼音

Python汉字转换成拼⾳最近在使⽤Python做项⽬时,需要将汉字转化成对应的拼⾳.在Github上找到了⼀个现成的程序.使⽤实例如下:from pinyin import PinYintest = PinYin()test.load_word()print test.hanzi2pinyin(string='钓鱼岛是中国的')print test.hanzi2pinyin_split(string='钓鱼岛是中国的', split="-")输出:['diao', 'yu', 'dao', 'shi', 'zhong', 'guo', 'de']'diao-yu-dao-shi-zhong-guo-de'其中hanzi2pinyin函数返回值是⼀个列表,⽽hanzi2pinyin_split函数在split参数为空时返回列表,不为空是返回字符串.但程序存在两个问题,第⼀是当中⽂中夹带英⽂时,英⽂会丢失.第⼆则是hanzi2pinyin_split的返回值⼀会是列表,⼀会是字符串,让⼈⽐较迷糊.例如:test.hanzi2pinyin_split(string='钓鱼岛是中国的code123', split="")我们期待的结果是:u'diaoyudaoshizhongguodecode123'但实际结果为:u'diaoyudaoshizhongguode'为此,在原来的程序中做了如下改写.1.hanzi2pinyin函数修改原来的hanzi2pinyin函数:def hanzi2pinyin(self, string=""):result = []if not isinstance(string, unicode):string = string.decode("utf-8")for char in string:key = '%X' % ord(char)result.append(self.word_dict.get(key, char).split()[0][:-1].lower())return result修改后的hanzi2pinyin函数:def hanzi2pinyin(self, string=""):result = []if not isinstance(string, unicode):string = string.decode("utf-8")for char in string:key = '%X' % ord(char)if not self.word_dict.get(key):result.append(char)else:result.append(self.word_dict.get(key, char).split()[0][:-1].lower())return result修改后的hanzi2pinyin函数可以避免中英⽂混合的情况下,英⽂丢失.2.hanzi2pinyin_split函数修改,将返回值为统⼀为字符串原来的hanzi2pinyin_split函数:def hanzi2pinyin_split(self, string="", split=""):result = self.hanzi2pinyin(string=string)if split == "":return resultelse:return split.join(result)修改后的hanzi2pinyin_split函数(不论split参数是否为空,hanzi2pinyin_split均返回字符串): def hanzi2pinyin_split(self, string="", split=""):result = self.hanzi2pinyin(string=string)#if split == "":# return result#else:return split.join(result)。

汉字转成拼音-用html实现

汉字转成拼音-用html实现

近日,买了一台新电脑,终于把CM1.6的古懂机淘汰了,也翻出了以前写的一些好东东,整理整理,拿出来给大家分享。

这是当时写的一个汉字转成拼音的小代码,用HTML网页+Vbscript实现的,很简单,主要是方便使用。

这是简单的页面效果图:以下是代码:<script language="VBscript">Set d = CreateObject("Scripting.Dictionary")'##### the following is ZhongWen BiaoDian'## the file system can't be \ / : ? " < > |d.add " ",-24159 '""d.add ",,",-24158 '"、"d.add ".",-24157 '"。

"d.add "-",-24156 '"~","—","〃","¨","ˇ","ˉ","·"d.add "",-24148 '"‖"d.add "...",-24147 '"…"d.add "'",-24146 '"‘","’"d.add "''",-24144 '"“","”"d.add "[]",-24142 '"〔","〕","〈","〉","《","》","「","」","『","』","〖","〗","【","】"d.add "[+-]",-24128 '"±"d.add "[by]",-24127 '"×"d.add ",",-23636 '","d.add "!",-23647 '"!"d.add "#",-23645 '"#"d.add "%",-23643 '"%"d.add "&",-23642 '"&"d.add "(",-23640 '"("d.add ")",-23639 '")"d.add "[+]",-23637 '"+"d.add "[-]",-23635 '"-"d.add "0",-23632 '"0"d.add "1",-23631 '"1"d.add "2",-23630 '"2"d.add "3",-23629 '"3"d.add "4",-23628 '"4"d.add "5",-23627 '"5"d.add "6",-23626 '"6"d.add "7",-23625 '"7"d.add "8",-23624 '"8"d.add "9",-23623 '"9"d.add "..",-23622 '":"d.add ";",-23621 '";"d.add "=",-23619 '"="d.add "?",-23617 '"?"d.add "@",-23616 '"@" '### Thed.add "A",-23615 '"A"d.add "B",-23614 '"A"d.add "C",-23613 '"A"d.add "D",-23612 '"A"d.add "E",-23611 '"A"d.add "F",-23610 '"A"d.add "G",-23609 '"A"d.add "H",-23608 '"A"d.add "I",-23607 '"A"d.add "J",-23606 '"A"d.add "K",-23605 '"A"d.add "L",-23604 '"A"d.add "M",-23603 '"A"d.add "N",-23602 '"A"d.add "O",-23601 '"A"d.add "P",-23600 '"A"d.add "Q",-23599 '"A"d.add "R",-23598 '"A"d.add "S",-23597 '"A"d.add "T",-23596 '"A"d.add "U",-23595 '"A"d.add "W",-23593 '"A"d.add "X",-23592 '"A"d.add "Y",-23591 '"A"d.add "Z",-23590 '"A"d.add "[",-23589 '"["d.add "['.]",-23588 '"\"d.add "]",-23587 '"]"d.add "_",-23586 '"^","_","`", d.add "a",-23583 '"a"d.add "b",-23582 '"b"d.add "c",-23581 '"c"d.add "d",-23580 '"d"d.add "e",-23579 '"e"d.add "f",-23578 '"f"d.add "g",-23577 '"g"d.add "h",-23576 '"h"d.add "i",-23575 '"i"d.add "j",-23574 '"j"d.add "k",-23573 '"k"d.add "l",-23572 '"l"d.add "m",-23571 '"m"d.add "n",-23570 '"n"d.add "o",-23569 '"o"d.add "p",-23568 '"p"d.add "q",-23567 '"q"d.add "r",-23566 '"r"d.add "s",-23565 '"s"d.add "t",-23564 '"t"d.add "u",-23563 '"u"d.add "v",-23562 '"v"d.add "w",-23561 '"w"d.add "x",-23560 '"x"d.add "y",-23559 '"y"d.add "z",-23558 '"z"d.add "{",-23557 '"{"d.add "[l]",-23556 '"|"d.add "}",-23555 '"}"'#### the following is PinYind.add "A.",-20319d.add "Ai",-20317d.add "An",-20304d.add "Ang",-20295d.add "Ao",-20292d.add "Bai",-20265 d.add "Ban",-20257 d.add "Bang",-20242 d.add "Bao",-20230 d.add "Bei",-20051 d.add "Ben",-20036 d.add "Beng",-20032 d.add "Bi",-20026d.add "Bian",-20002 d.add "Biao",-19990 d.add "Bie",-19986 d.add "Bin",-19982 d.add "Bing",-19976 d.add "Bo",-19805d.add "Bu",-19784d.add "Ca",-19775d.add "Cai",-19774 d.add "Can",-19763 d.add "Cang",-19756 d.add "Cao",-19751 d.add "Ce",-19746d.add "Ceng",-19741 d.add "Cha",-19739 d.add "Chai",-19728 d.add "Chan",-19725 d.add "Chang",-19715 d.add "Chao",-19540 d.add "Che",-19531 d.add "Chen",-19525 d.add "Cheng",-19515 d.add "Chi",-19500 d.add "Chong",-19484 d.add "Chou",-19479 d.add "Chu",-19467 d.add "Chuai",-19289 d.add "Chuan",-19288 d.add "Chuang",-19281 d.add "Chui",-19275 d.add "Chun",-19270 d.add "Chuo",-19263 d.add "Ci",-19261d.add "Cong",-19249 d.add "Cou",-19243d.add "Cuan",-19238 d.add "Cui",-19235 d.add "Cun",-19227 d.add "Cuo",-19224 d.add "Da",-19218 d.add "Dai",-19212 d.add "Dan",-19038 d.add "Dang",-19023 d.add "Dao",-19018 d.add "De",-19006 d.add "Deng",-19003 d.add "Di",-18996 d.add "Dian",-18977 d.add "Diao",-18961 d.add "Die",-18952 d.add "Ding",-18783 d.add "Diu",-18774 d.add "Dong",-18773 d.add "Dou",-18763 d.add "Du",-18756 d.add "Duan",-18741 d.add "Dui",-18735 d.add "Dun",-18731 d.add "Duo",-18722 d.add "E.",-18710 d.add "En",-18697 d.add "Er",-18696 d.add "Fa",-18526 d.add "Fan",-18518 d.add "Fang",-18501 d.add "Fei",-18490 d.add "Fen",-18478 d.add "Feng",-18463 d.add "Fo",-18448 d.add "Fou",-18447 d.add "Fu",-18446 d.add "Ga",-18239 d.add "Gai",-18237 d.add "Gan",-18231 d.add "Gang",-18220 d.add "Gao",-18211 d.add "Ge",-18201 d.add "Gei",-18184d.add "Geng",-18181 d.add "Gong",-18012 d.add "Gou",-17997 d.add "Gu",-17988 d.add "Gua",-17970 d.add "Guai",-17964 d.add "Guan",-17961 d.add "Guang",-17950 d.add "Gui",-17947 d.add "Gun",-17931 d.add "Guo",-17928 d.add "Ha",-17922 d.add "Hai",-17759 d.add "Han",-17752 d.add "Hang",-17733 d.add "Hao",-17730 d.add "He",-17721 d.add "Hei",-17703 d.add "Hen",-17701 d.add "Heng",-17697 d.add "Hong",-17692 d.add "Hou",-17683 d.add "Hu",-17676 d.add "Hua",-17496 d.add "Huai",-17487 d.add "Huan",-17482 d.add "Huang",-17468 d.add "Hui",-17454 d.add "Hun",-17433 d.add "Huo",-17427 d.add "Ji",-17417d.add "Jia",-17202 d.add "Jian",-17185 d.add "Jiang",-16983 d.add "Jiao",-16970 d.add "Jie",-16942 d.add "Jin",-16915 d.add "Jing",-16733 d.add "Jiong",-16708 d.add "Jiu",-16706 d.add "Ju",-16689 d.add "Juan",-16664 d.add "Jue",-16657d.add "Ka",-16474 d.add "Kai",-16470 d.add "Kan",-16465 d.add "Kang",-16459 d.add "Kao",-16452 d.add "Ke",-16448 d.add "Ken",-16433 d.add "Keng",-16429 d.add "Kong",-16427 d.add "Kou",-16423 d.add "Ku",-16419 d.add "Kua",-16412 d.add "Kuai",-16407 d.add "Kuan",-16403 d.add "Kuang",-16401 d.add "Kui",-16393 d.add "Kun",-16220 d.add "kuo",-16216 d.add "La",-16212 d.add "Lai",-16205 d.add "Lan",-16202 d.add "Lang",-16187 d.add "Lao",-16180 d.add "Le",-16171 d.add "Lei",-16169 d.add "Leng",-16158 d.add "Li",-16155 d.add "Lia",-15959 d.add "Lian",-15958 d.add "Liang",-15944 d.add "Liao",-15933 d.add "Lie",-15920 d.add "Lin",-15915 d.add "Ling",-15903 d.add "Liu",-15889 d.add "Long",-15878 d.add "Lou",-15707 d.add "Lu",-15701 d.add "Lv",-15681 d.add "Luan",-15667 d.add "Lue",-15661 d.add "Lun",-15659 d.add "Luo",-15652d.add "Mai",-15631 d.add "Man",-15625 d.add "Mang",-15454 d.add "Mao",-15448 d.add "Me",-15436 d.add "Mei",-15435 d.add "Men",-15419 d.add "Meng",-15416 d.add "Mi",-15408 d.add "Mian",-15394 d.add "Miao",-15385 d.add "Mie",-15377 d.add "Min",-15375 d.add "Ming",-15369 d.add "Miu",-15363 d.add "Mo",-15362 d.add "Mou",-15183 d.add "Mu",-15180 d.add "Na",-15165 d.add "Nai",-15158 d.add "Nan",-15153 d.add "Nang",-15150 d.add "Nao",-15149 d.add "Ne",-15144 d.add "Nei",-15143 d.add "Nen",-15141 d.add "Neng",-15140 d.add "Ni",-15139 d.add "Nian",-15128 d.add "Niang",-15121 d.add "Niao",-15119 d.add "Nie",-15117 d.add "Nin",-15110 d.add "Ning",-15109 d.add "Niu",-14941 d.add "Nong",-14937 d.add "Nu",-14933 d.add "Nv",-14930 d.add "Nuan",-14929 d.add "Nue",-14928 d.add "Nuo",-14926 d.add "O.",-14922 d.add "Ou",-14921d.add "Pai",-14908 d.add "Pan",-14902 d.add "Pang",-14894 d.add "Pao",-14889 d.add "Pei",-14882 d.add "Pen",-14873 d.add "Peng",-14871 d.add "Pi",-14857 d.add "Pian",-14678 d.add "Piao",-14674 d.add "Pie",-14670 d.add "Pin",-14668 d.add "Ping",-14663 d.add "Po",-14654 d.add "Pu",-14645 d.add "Qi",-14630 d.add "Qia",-14594 d.add "Qian",-14429 d.add "Qiang",-14407 d.add "Qiao",-14399 d.add "Qie",-14384 d.add "Qin",-14379 d.add "Qing",-14368 d.add "Qiong",-14355 d.add "Qiu",-14353 d.add "Qu",-14345 d.add "Quan",-14170 d.add "Que",-14159 d.add "Qun",-14151 d.add "Ran",-14149 d.add "Rang",-14145 d.add "Rao",-14140 d.add "Re",-14137 d.add "Ren",-14135 d.add "Reng",-14125 d.add "Ri",-14123 d.add "Rong",-14122 d.add "Rou",-14112 d.add "Ru",-14109 d.add "Ruan",-14099 d.add "Rui",-14097 d.add "Run",-14094 d.add "Ruo",-14092d.add "Sai",-14087 d.add "San",-14083 d.add "Sang",-13917 d.add "Sao",-13914 d.add "Se",-13910d.add "Sen",-13907 d.add "Seng",-13906 d.add "Sha",-13905 d.add "Shai",-13896 d.add "Shan",-13894 d.add "Shang",-13878 d.add "Shao",-13870 d.add "She",-13859 d.add "Shen",-13847 d.add "Sheng",-13831 d.add "Shi",-13658 d.add "Shou",-13611 d.add "Shu",-13601 d.add "Shua",-13406 d.add "Shuai",-13404 d.add "Shuan",-13400 d.add "Shuang",-13398 d.add "Shui",-13395 d.add "Shun",-13391 d.add "Shuo",-13387 d.add "Si",-13383d.add "Song",-13367 d.add "Sou",-13359 d.add "Su",-13356d.add "Suan",-13343 d.add "Sui",-13340 d.add "Sun",-13329 d.add "Suo",-13326 d.add "Ta",-13318d.add "Tai",-13147 d.add "Tan",-13138 d.add "Tang",-13120 d.add "Tao",-13107 d.add "Te",-13096d.add "Teng",-13095 d.add "Ti",-13091d.add "Tian",-13076 d.add "Tiao",-13068d.add "Ting",-13060 d.add "Tong",-12888 d.add "Tou",-12875 d.add "Tu",-12871d.add "Tuan",-12860 d.add "Tui",-12858 d.add "Tun",-12852 d.add "Tuo",-12849 d.add "Wa",-12838 d.add "Wai",-12831 d.add "Wan",-12829 d.add "Wang",-12812 d.add "Wei",-12802 d.add "Wen",-12607 d.add "Weng",-12597 d.add "Wo",-12594 d.add "Wu",-12585 d.add "Xi",-12556 d.add "Xia",-12359 d.add "Xian",-12346 d.add "Xiang",-12320 d.add "Xiao",-12300 d.add "Xie",-12120 d.add "Xin",-12099 d.add "Xing",-12089 d.add "Xiong",-12074 d.add "Xiu",-12067 d.add "Xu",-12058 d.add "Xuan",-12039 d.add "Xue",-11867 d.add "Xun",-11861 d.add "Ya",-11847 d.add "Yan",-11831 d.add "Yang",-11798 d.add "Yao",-11781 d.add "Ye",-11604 d.add "Yi",-11589 d.add "Yin",-11536 d.add "Ying",-11358 d.add "Yo",-11340 d.add "Yong",-11339 d.add "You",-11324d.add "Yuan",-11097d.add "Yue",-11077d.add "Yun",-11067d.add "Za",-11055d.add "Zai",-11052d.add "Zan",-11045d.add "Zang",-11041d.add "Zao",-11038d.add "Ze",-11024d.add "Zei",-11020d.add "Zen",-11019d.add "Zeng",-11018d.add "Zha",-11014d.add "Zhai",-10838d.add "Zhan",-10832d.add "Zhang",-10815d.add "Zhao",-10800d.add "Zhe",-10790d.add "Zhen",-10780d.add "Zheng",-10764d.add "Zhi",-10587d.add "Zhong",-10544d.add "Zhou",-10533d.add "Zhu",-10519d.add "Zhua",-10331d.add "Zhuai",-10329d.add "Zhuan",-10328d.add "Zhuang",-10322d.add "Zhui",-10315d.add "Zhun",-10309d.add "Zhuo",-10307d.add "Zi",-10296d.add "Zong",-10281d.add "Zou",-10274d.add "Zu",-10270d.add "Zuan",-10262d.add "Zui",-10260d.add "Zun",-10256d.add "Zuo",-10254function g(num)if num>0 and num<160 theng=chr(num)elseif num<-24159 or num>-10247 theng=""elsea=d.Itemsb=d.keysfor i=d.count-1 to 0 step -1if a(i)<=num then exit fornextg=b(i)end ifend ifEnd functionfunction ChangeHtoEn(str)ChangeHtoEn=""for i=1 to len(str)ChangeHtoEn=ChangeHtoEn&g(asc(mid(str,i,1))) nextEnd function</script><script language=vbscript><!--function Change()AA=ShuRU.HZ.valueDD = ChangeHtoEn(AA)ShuRu.EN.value=DDend function//--></script><table border=1 cellpadding=10 cellspacing=0 align=center> <tr><td align=center><form id="ShuRu" name="ShuRu"><TEXTAREA rows=8 cols=100 ID="HZ" NAME="HZ">输入汉字,转成拼音!</TEXTAREA><br><br><INPUT type="button" value="Change TO PinYin" ID="Change TO PinYin" NAME="Change TO PinYin" onclick="Change"><br><br><TEXTAREA rows=8 cols=100 ID="EN" NAME="EN"></TEXTAREA></form>CopyRight@ xfStudio 2007.3.22</td></tr></table>。

Excel汉字中文转换为拼音(含代码)

Excel汉字中文转换为拼音(含代码)

Excel汉字中文转换为拼音(含代码)一、无法使用getpy()函数解决方法1.添加拼音转换函数打开Excel→工发工具→Viaual Basic2.点击 Viaual Basic编辑器→选择“VBAproject”点右键→插入→模块3.将以下内容复制粘贴到“模块”里→保存→出现对话框→选择“否”→“选择保存类型”为“excel启用宏工作簿”→保存。

设置完成,现在可以使用getpy()等函数了。

4.或将本文件直接另存为“excel启用宏工作簿”, 就可以使用getpy()转换函数。

二、汉字转换为拼音函数公式三、代码Function pinyin(p As String) As Stringi = Asc(p)Select Case iCase -20319 To -20318: pinyin = "a " Case -20317 To -20305: pinyin = "ai " Case -20304 To -20296: pinyin = "an " Case -20295 To -20293: pinyin = "ang " Case -20292 To -20284: pinyin = "ao " Case -20283 To -20266: pinyin = "ba " Case -20265 To -20258: pinyin = "bai " Case -20257 To -20243: pinyin = "ban " Case -20242 To -20231: pinyin = "bang " Case -20230 To -20052: pinyin = "bao " Case -20051 To -20037: pinyin = "bei " Case -20036 To -20033: pinyin = "ben " Case -20032 To -20027: pinyin = "beng " Case -20026 To -20003: pinyin = "bi " Case -20002 To -19991: pinyin = "bian " Case -19990 To -19987: pinyin = "biao " Case -19986 To -19983: pinyin = "bie " Case -19982 To -19977: pinyin = "bin " Case -19976 To -19806: pinyin = "bing " Case -19805 To -19785: pinyin = "bo " Case -19784 To -19776: pinyin = "bu " Case -19775 To -19775: pinyin = "ca " Case -19774 To -19764: pinyin = "cai " Case -19763 To -19757: pinyin = "can " Case -19756 To -19752: pinyin = "cang " Case -19751 To -19747: pinyin = "cao " Case -19746 To -19742: pinyin = "ce " Case -19741 To -19740: pinyin = "ceng "。

Java中文字转拼音工具类

Java中文字转拼音工具类

Java中文字转拼音工具类2020-03-24 09:49:09有时,我们需要将中文汉字转为拼音存储,例如用于检索时,直接输入拼音或者首字母也能检索出我们想要的结果,这时我们便需要将汉字转拼音•1、首先我们在pom.xml文件中引入需要的maven依赖com.belerweb pinyin4j 2.5.1•2、汉字转拼音工具类代码如b Pinyin4jUtil.java:import net.sourcefdrge.pinyin4j.PinyinHelper; importnet.sourceforge.pinyin4j.format.HanyuPinyinCaseType; importnet.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; importnet.sourceforge.pinyin4j.format.HanyuPinyinToneType; importnet.sourceforge.pinyin4j.format.HanyuPinyinVCharType; importnet.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatComb ination;*-中文转化为拼音工具类-(5)author lizhou-*/ public class Pinyin4jUtil {•获得汉语拼音首字母大写•(5)param chines 汉字•(S)return */ public static String getAlpha2UpperCase(String chines){ String pinyinName = ”"; charQ nameChar =chines.toCharArray0; HanyuPinyinOutputFormat defaultFormat =newHanyuPinyinOutputFormatO;defaultFormat.setCaseType(HanyuPinyinCaseType.UPPERCASE);defaultFormat.setToneType(HanyuPinyinToneType.WITHOUT_T ONE); for (inti = 0; i < nameChar.length; i++) {if [nameChar[i] > 128) {try{ pinyinName +=PinyinHelper. to HanyuPinyinStr ingArray (nameChar [i],defaultFormat)[0].charAt(0);} catch(BadHanyuPinyinOutputFormatCombination e) { System-outprintlnC*获得汉语拼音首字母异常:}" + e.getMessageO);} } else {pinyinName +=nameChar[i];} } return pinyinName;}•将字符串中的中文转化为拼音,英文字符不变•@param inputstring 汉字•^return */ public static String getPingYinfString inputstring) { HanyuPinyinOutputFormat format = new HanyuPinyinOutputFormatO;format.setCaseType(HanyuPinyinCaseType.LOWERCASE); format.setToneTypefHanyuPinyinT oneType.WITH OUT_T ONE);format.setVCharType(HanyuPinyinVCharType.WITH_V); String output = if(null != inputstring && 0 < inputString.lengthO && !M nuir\equals(inputString)) { char[] input =inputstring.trim0.toCharArray0; try { for (int i = 0; i < inputlength;i++) {if (Character.toString(input[i]).matches(,,[\u4E00-\u9FA5]+<3){StringQ temp =PinyinHelpe 匚toHanyuPinyinStringArray(input[i], format); output +=temp[0];} else { output += Character.toString(input[i]);} } } catch(BadHanyuPinyinOutputFormatCombination e) {System.out.printlnC,将字符串中的中文转化为拼音,英文字符不变异常:"+ e.getMessageO);} } else { return } return output; }••汉字转换位汉语拼音首字母,英文字符不变•(5)param chines 汉字•©return 拼音 */ public static String converterToFirstSpell(String chines) { String pinyinName = ”"; char[] nameChar =chines.toCharArrayO; HanyuPinyinOutputFormat defaultFormat =newHanyuPinyinOutputFormatO;defaultFormat.setCaseType(HanyuPinyinCaseType.UPPERCASE);defaultFormat.setToneType(HanyuPinyinToneType.WITHOUT_T ONE); for (int i = 0; i < nameChar.length; i++) {if [nameCharp] > 128) {try { pinyinName +=PinyinHelpe 匚toHanyuPinyinStringArrayCnameCharp], defaultFormat)[0].charAt(0);} catch (BadHanyuPinyinOutputFormatCombination e){System.out.printlnC,汉字转换位汉语拼音首字母,英文字符不变异常:"+ e.getMessageO); }} else { pinyinName += nameChar[i]; } } returnpinyinName; }•汉字转换位汉语拼音首字母,英文字符不变(小写)•(5)param chines 汉字•^return 拼音 */ public static String converterToFirstSpellSmal(String chines) { String pinyinName =charQ nameChar = chines.toCharArrayO;HanyuPinyinOutputFormat defaultFormat = newHanyuPinyinOutputFormatO;defaultFormat.setCaseType(HanyuPinyinCaseType.LOWERCASE);defaultFormat.setToneType(HanyuPinyinToneType.WITHOUT_T ONE); for (int i = 0; i < nameChar.length; i++) {if [nameChar[i] > 128) {try {if(Character.toString(nameChar[i]).matchesC,[\u4E00-\u9FA5]+<3) {pinyinName+=PinyinHelper.toHanyuPinyinStringArray(nameChar[i],defaultFormat)[0].charAt(0);} else { pinyinName += nameChar[i];} } catch(BadHanyuPinyinOutputFormatCombination e) {System.out.printlnC,汉字转换位汉语拼音首字母,英文字符不变异常:"+ e.getMessageO); }} else{ pinyinName += nameChar[i];} } return pinyinName; } }如您在阅读中发现不足,欢迎留言!!!。

C#汉字转换拼音简码和全拼音

C#汉字转换拼音简码和全拼音

C#汉字转换拼⾳简码和全拼⾳private static int[] pyValue = new int[]{-20319,-20317,-20304,-20295,-20292,-20283,-20265,-20257,-20242,-20230,-20051,-20036,-20032,-20026,-20002,-19990,-19986,-19982,-19976,-19805,-19784,-19775,-19774,-19763,-19756,-19751,-19746,-19741,-19739,-19728,-19725,-19715,-19540,-19531,-19525,-19515,-19500,-19484,-19479,-19467,-19289,-19288,-19281,-19275,-19270,-19263,-19261,-19249,-19243,-19242,-19238,-19235,-19227,-19224,-19218,-19212,-19038,-19023,-19018,-19006,-19003,-18996,-18977,-18961,-18952,-18783,-18774,-18773,-18763,-18756,-18741,-18735,-18731,-18722,-18710,-18697,-18696,-18526,-18518,-18501,-18490,-18478,-18463,-18448,-18447,-18446,-18239,-18237,-18231,-18220,-18211,-18201,-18184,-18183, -18181,-18012,-17997,-17988,-17970,-17964,-17961,-17950,-17947,-17931,-17928,-17922,-17759,-17752,-17733,-17730,-17721,-17703,-17701,-17697,-17692,-17683,-17676,-17496,-17487,-17482,-17468,-17454,-17433,-17427,-17417,-17202,-17185,-16983,-16970,-16942,-16915,-16733,-16708,-16706,-16689,-16664,-16657,-16647,-16474,-16470,-16465,-16459,-16452,-16448,-16433,-16429,-16427,-16423,-16419,-16412,-16407,-16403,-16401,-16393,-16220,-16216,-16212,-16205,-16202,-16187,-16180,-16171,-16169,-16158,-16155,-15959,-15958,-15944,-15933,-15920,-15915,-15903,-15889,-15878,-15707,-15701,-15681,-15667,-15661,-15659,-15652,-15640,-15631,-15625,-15454,-15448,-15436,-15435,-15419,-15416,-15408,-15394,-15385,-15377,-15375,-15369,-15363,-15362,-15183,-15180,-15165,-15158,-15153,-15150,-15149,-15144,-15143,-15141,-15140,-15139,-15128,-15121,-15119,-15117,-15110,-15109,-14941,-14937,-14933,-14930,-14929,-14928,-14926,-14922,-14921,-14914,-14908,-14902,-14894,-14889,-14882,-14873,-14871,-14857,-14678,-14674,-14670,-14668,-14663,-14654,-14645,-14630,-14594,-14429,-14407,-14399,-14384,-14379,-14368,-14355,-14353,-14345,-14170,-14159,-14151,-14149,-14145,-14140,-14137,-14135,-14125,-14123,-14122,-14112,-14109,-14099,-14097,-14094,-14092,-14090,-14087,-14083,-13917,-13914,-13910,-13907,-13906,-13905,-13896,-13894,-13878,-13870,-13859,-13847,-13831,-13658,-13611,-13601,-13406,-13404,-13400,-13398,-13395,-13391,-13387,-13383,-13367,-13359,-13356,-13343,-13340,-13329,-13326,-13318,-13147,-13138,-13120,-13107,-13096,-13095,-13091,-13076,-13068,-13063,-13060,-12888,-12875,-12871,-12860,-12858,-12852,-12849,-12838,-12831,-12829,-12812,-12802,-12607,-12597,-12594,-12585,-12556,-12359,-12346,-12320,-12300,-12120,-12099,-12089,-12074,-12067,-12058,-12039,-11867,-11861,-11847,-11831,-11798,-11781,-11604,-11589,-11536,-11358,-11340,-11339,-11324,-11303,-11097,-11077,-11067,-11055,-11052,-11045,-11041,-11038,-11024,-11020,-11019,-11018,-11014,-10838,-10832,-10815,-10800,-10790,-10780,-10764,-10587,-10544,-10533,-10519,-10331,-10329,-10328,-10322,-10315,-10309,-10307,-10296,-10281,-10274,-10270,-10262,-10260,-10256,-10254};private static string[] pyName = new string[]{"A","Ai","An","Ang","Ao","Ba","Bai","Ban","Bang","Bao","Bei","Ben", "Beng","Bi","Bian","Biao","Bie","Bin","Bing","Bo","Bu","Ba","Cai","Can", "Cang","Cao","Ce","Ceng","Cha","Chai","Chan","Chang","Chao","Che","Chen","Cheng", "Chi","Chong","Chou","Chu","Chuai","Chuan","Chuang","Chui","Chun","Chuo","Ci","Cong", "Cou","Cu","Cuan","Cui","Cun","Cuo","Da","Dai","Dan","Dang","Dao","De", "Deng","Di","Dian","Diao","Die","Ding","Diu","Dong","Dou","Du","Duan","Dui", "Dun","Duo","E","En","Er","Fa","Fan","Fang","Fei","Fen","Feng","Fo", "Fou","Fu","Ga","Gai","Gan","Gang","Gao","Ge","Gei","Gen","Geng","Gong", "Gou","Gu","Gua","Guai","Guan","Guang","Gui","Gun","Guo","Ha","Hai","Han", "Hang","Hao","He","Hei","Hen","Heng","Hong","Hou","Hu","Hua","Huai","Huan", "Huang","Hui","Hun","Huo","Ji","Jia","Jian","Jiang","Jiao","Jie","Jin","Jing", "Jiong","Jiu","Ju","Juan","Jue","Jun","Ka","Kai","Kan","Kang","Kao","Ke", "Ken","Keng","Kong","Kou","Ku","Kua","Kuai","Kuan","Kuang","Kui","Kun","Kuo", "La","Lai","Lan","Lang","Lao","Le","Lei","Leng","Li","Lia","Lian","Liang", "Liao","Lie","Lin","Ling","Liu","Long","Lou","Lu","Lv","Luan","Lue","Lun", "Luo","Ma","Mai","Man","Mang","Mao","Me","Mei","Men","Meng","Mi","Mian", "Miao","Mie","Min","Ming","Miu","Mo","Mou","Mu","Na","Nai","Nan","Nang", "Nao","Ne","Nei","Nen","Neng","Ni","Nian","Niang","Niao","Nie","Nin","Ning", "Niu","Nong","Nu","Nv","Nuan","Nue","Nuo","O","Ou","Pa","Pai","Pan", "Pang","Pao","Pei","Pen","Peng","Pi","Pian","Piao","Pie","Pin","Ping","Po", "Pu","Qi","Qia","Qian","Qiang","Qiao","Qie","Qin","Qing","Qiong","Qiu","Qu", "Quan","Que","Qun","Ran","Rang","Rao","Re","Ren","Reng","Ri","Rong","Rou", "Ru","Ruan","Rui","Run","Ruo","Sa","Sai","San","Sang","Sao","Se","Sen", "Seng","Sha","Shai","Shan","Shang","Shao","She","Shen","Sheng","Shi","Shou","Shu", "Shua","Shuai","Shuan","Shuang","Shui","Shun","Shuo","Si","Song","Sou","Su","Suan", "Sui","Sun","Suo","Ta","Tai","Tan","Tang","Tao","Te","Teng","Ti","Tian", "Tiao","Tie","Ting","Tong","Tou","Tu","Tuan","Tui","Tun","Tuo","Wa","Wai", "Wan","Wang","Wei","Wen","Weng","Wo","Wu","Xi","Xia","Xian","Xiang","Xiao", "Xie","Xin","Xing","Xiong","Xiu","Xu","Xuan","Xue","Xun","Ya","Yan","Yang", "Yao","Ye","Yi","Yin","Ying","Yo","Yong","You","Yu","Yuan","Yue","Yun","Za", "Zai","Zan","Zang","Zao","Ze","Zei","Zen","Zeng","Zha","Zhai","Zhan", "Zhang","Zhao","Zhe","Zhen","Zheng","Zhi","Zhong","Zhou","Zhu","Zhua","Zhuai","Zhuan", "Zhuang","Zhui","Zhun","Zhuo","Zi","Zong","Zou","Zu","Zuan","Zui","Zun","Zuo"};/// <summary>/// 从字符串中获取汉字拼⾳⾸字母,不是汉字则原样输出/// </summary>/// <param name="hz"></param>/// <returns></returns>public static string GetFirstPYLetter(string hz){string ls_second_eng = "CJWGNSPGCGNESYPBTYYZDXYKYGTDJNNJQMBSGZSCYJSYYQPGKBZGYCYWJKGKLJSWKPJQHYTWDDZLSGMRYPYWWCCKZNKYDGTTNGJEYKKZYTCJNMCYLQLYPYQFQRPZSLW +"HXMJJCJLXQGJMSHZKBSWYEMYLTXFSYDSGLYCJQXSJNQBSCTYHBFTDCYZDJWYGHQFRXWCKQKXEBPTLPXJZSRMEBWHJLBJSLYYSMDXLCLQKXLHXJRZJMFQHXHWYWSBHTRX +"JLYXYSYGLNSCMHCWWMNZJJLXXHCHSYDSTTXRYCYXBYHCSMXJSZNPWGPXXTAYBGAJCXLYSDCCWZOCWKCCSBNHCPDYZNFCYYTYCKXKYBSQKKYTQQXFCWCHCYKELZQBS + "SGXFZFCDKHJGXDLQFSGDSLQWZKXTMHSBGZMJZRGLYJBPMLMSXLZJQQHZYJCZYDJWBMJKLDDPMJEGXYHYLXHLQYQHKYCWCJMYYXNATJHYCCXZPCQLBZWWYTWBQCMLPMY +"BBSGGHFJLWPMZJNLYYWDQSHZXTYYWHMCYHYWDBXBTLMSYYYFSXJCSDXXLHJHFSSXZQHFZMZCZTQCXZXRTTDJHNNYZQQMNQDMMGYYDXMJGDHCDYZBFFALLZTDLTFXMXQ +"YTDKYXJYYCNRJMDJGKLCLJBCTBJDDBBLBLCZQRPXJCGLZCSHLTOLJNMDDDLNGKAQHQHJGYKHEZNMSHRPHQQJCHGMFPRXHJGDYCHGHLYRZQLCYQJNZSQTKQJYMSZ+ "ALBXYFBPNLSFHTGJWEJJXXGLLJSTGSHJQLZFKCGNNDSZFDEQFHBSAQTGLLBXMMYGSZLDYDQMJJRGBJTKGDHGKBLQKBDMBYLXWCXYTTYBKMRTJZXQJBHLMHMJJZMQASLDCY string ls_second_ch = "亍丌兀丐廿卅丕亘丞⿀孬噩⼁禺⼃⼔乇夭⽘卮氐囟胤馗毓睾鼗⼂亟" +"鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝⼕叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓⼌罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎⿕氽籴兮巽黉馘冁夔⼓匍訇匐凫夙兕⼇兖亳衮袤亵脔裒禀嬴蠃羸⼎冱冽冼凇⼍冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶⼙卺阝阢阡阱阪阽阼" +"陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍⼵⼐凼⾿⼛弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻" +"莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼⼶弈夼奁耷奕奚奘匏⼪尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖摺撷撸撙撺擀擐擗擤擢攉攥攮⼷忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩" +"咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔⼞囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅⼻彷徂徇徉後徕徙徜徨徭徵徼衢⼺犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾" +"⾇夥飧夤⼡饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬⽙戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂" +"溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞⼧宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋⼹彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻⼬妁妃妍妩妪妣妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃" + "缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵⼳畿⼮甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶" +"轸轷轹轺轼轾辁辂辄辇辋辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓⽁旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻臁膦欤欷欹歃歆歙飑飒飓飕飙飚⽎彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱" +"煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀⾀沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛⿋黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪铩铫铮铯铳铴铵铷铹铼" +"铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳⽧疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦⽦胥皲皴矜⽾" +"耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃颉颌颍颏颔颚颛颞颟颡颢颥颦⾌虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼⽸罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟" +"羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨⾉暨羿翎翕翥翡翦翩翮翳⽷絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺⾗鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞⾘貂貊貅貘貔斛觖觞觚觜觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍⾫隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋鳌鳍鳎鳏鳐鳓鳔" + "鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔⾽髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄";byte[] array = new byte[2];string return_py = "";for (int i = 0; i < hz.Length; i++){array = System.Text.Encoding.Default.GetBytes(hz[i].ToString());if (array[0] < 176) //.⾮汉字{return_py += hz[i];}else if (array[0] >= 176 && array[0] <= 215) //⼀级汉字{if (hz[i].ToString().CompareTo("匝") >= 0)return_py += "z";else if (hz[i].ToString().CompareTo("压") >= 0)return_py += "y";else if (hz[i].ToString().CompareTo("昔") >= 0)return_py += "x";else if (hz[i].ToString().CompareTo("挖") >= 0)return_py += "w";else if (hz[i].ToString().CompareTo("塌") >= 0)return_py += "t";else if (hz[i].ToString().CompareTo("撒") >= 0)return_py += "s";else if (hz[i].ToString().CompareTo("然") >= 0)return_py += "r";else if (hz[i].ToString().CompareTo("期") >= 0)return_py += "q";else if (hz[i].ToString().CompareTo("啪") >= 0)return_py += "p";else if (hz[i].ToString().CompareTo("哦") >= 0)return_py += "o";else if (hz[i].ToString().CompareTo("拿") >= 0)return_py += "n";else if (hz[i].ToString().CompareTo("妈") >= 0)return_py += "m";else if (hz[i].ToString().CompareTo("垃") >= 0)return_py += "l";else if (hz[i].ToString().CompareTo("喀") >= 0)return_py += "k";else if (hz[i].ToString().CompareTo("击") >= 0)return_py += "j";else if (hz[i].ToString().CompareTo("哈") >= 0)return_py += "h";else if (hz[i].ToString().CompareTo("噶") >= 0)return_py += "g";else if (hz[i].ToString().CompareTo("发") >= 0)return_py += "f";else if (hz[i].ToString().CompareTo("蛾") >= 0)return_py += "e";else if (hz[i].ToString().CompareTo("搭") >= 0)return_py += "d";else if (hz[i].ToString().CompareTo("擦") >= 0)return_py += "c";else if (hz[i].ToString().CompareTo("芭") >= 0)return_py += "b";else if (hz[i].ToString().CompareTo("啊") >= 0)return_py += "a";}else if (array[0] >= 215) //⼆级汉字{return_py += ls_second_eng.Substring(ls_second_ch.IndexOf(hz[i].ToString(), 0), 1); }}return return_py.ToLower();}/// <summary>/// 把汉字转换成拼⾳(全拼)/// </summary>/// <param name="hzString">汉字字符串</param>/// <returns>转换后的拼⾳(全拼)字符串</returns>public static string GetAllPYLetters(string hzString){// 匹配中⽂字符Regex regex = new Regex("^[\u4e00-\u9fa5]$");byte[] array = new byte[2];string pyString = "";int chrAsc = 0;int i1 = 0;int i2 = 0;char[] noWChar = hzString.ToCharArray();for (int j = 0; j < noWChar.Length; j++){// 中⽂字符if (regex.IsMatch(noWChar[j].ToString())){array = System.Text.Encoding.Default.GetBytes(noWChar[j].ToString());i1 = (short)(array[0]);i2 = (short)(array[1]);chrAsc = i1 * 256 + i2 - 65536;if (chrAsc > 0 && chrAsc < 160){pyString += noWChar[j];}else{// 修正部分⽂字if (chrAsc == -9254) // 修正“圳”字pyString += "Zhen";else{for (int i = (pyValue.Length - 1); i >= 0; i--){if (pyValue[i] <= chrAsc){pyString += pyName[i];break;}}}}}// ⾮中⽂字符else{pyString += noWChar[j].ToString();}}return pyString;}。

C#汉字转拼音(全拼和首字母)实例

C#汉字转拼音(全拼和首字母)实例

C#汉字转拼⾳(全拼和⾸字母)实例(⼀)将汉字转化成全拼代码:复制代码代码如下:private void button1_Click(object sender, EventArgs e){this.textBox2.Text = Hz2Py.Convert(this.textBox1.Text);}汉字转拼⾳类:复制代码代码如下:/// <summary>/// 汉字转拼⾳类/// </summary>public class Hz2Py{private static int[] pyValue = new int[]{-20319,-20317,-20304,-20295,-20292,-20283,-20265,-20257,-20242,-20230,-20051,-20036, -20032,-20026,-20002,-19990,-19986,-19982,-19976,-19805,-19784,-19775,-19774,-19763, -19756,-19751,-19746,-19741,-19739,-19728,-19725,-19715,-19540,-19531,-19525,-19515, -19500,-19484,-19479,-19467,-19289,-19288,-19281,-19275,-19270,-19263,-19261,-19249, -19243,-19242,-19238,-19235,-19227,-19224,-19218,-19212,-19038,-19023,-19018,-19006, -19003,-18996,-18977,-18961,-18952,-18783,-18774,-18773,-18763,-18756,-18741,-18735, -18731,-18722,-18710,-18697,-18696,-18526,-18518,-18501,-18490,-18478,-18463,-18448, -18447,-18446,-18239,-18237,-18231,-18220,-18211,-18201,-18184,-18183, -18181,-18012, -17997,-17988,-17970,-17964,-17961,-17950,-17947,-17931,-17928,-17922,-17759,-17752, -17733,-17730,-17721,-17703,-17701,-17697,-17692,-17683,-17676,-17496,-17487,-17482, -17468,-17454,-17433,-17427,-17417,-17202,-17185,-16983,-16970,-16942,-16915,-16733, -16708,-16706,-16689,-16664,-16657,-16647,-16474,-16470,-16465,-16459,-16452,-16448, -16433,-16429,-16427,-16423,-16419,-16412,-16407,-16403,-16401,-16393,-16220,-16216, -16212,-16205,-16202,-16187,-16180,-16171,-16169,-16158,-16155,-15959,-15958,-15944, -15933,-15920,-15915,-15903,-15889,-15878,-15707,-15701,-15681,-15667,-15661,-15659, -15652,-15640,-15631,-15625,-15454,-15448,-15436,-15435,-15419,-15416,-15408,-15394, -15385,-15377,-15375,-15369,-15363,-15362,-15183,-15180,-15165,-15158,-15153,-15150, -15149,-15144,-15143,-15141,-15140,-15139,-15128,-15121,-15119,-15117,-15110,-15109, -14941,-14937,-14933,-14930,-14929,-14928,-14926,-14922,-14921,-14914,-14908,-14902, -14894,-14889,-14882,-14873,-14871,-14857,-14678,-14674,-14670,-14668,-14663,-14654, -14645,-14630,-14594,-14429,-14407,-14399,-14384,-14379,-14368,-14355,-14353,-14345, -14170,-14159,-14151,-14149,-14145,-14140,-14137,-14135,-14125,-14123,-14122,-14112, -14109,-14099,-14097,-14094,-14092,-14090,-14087,-14083,-13917,-13914,-13910,-13907, -13906,-13905,-13896,-13894,-13878,-13870,-13859,-13847,-13831,-13658,-13611,-13601, -13406,-13404,-13400,-13398,-13395,-13391,-13387,-13383,-13367,-13359,-13356,-13343, -13340,-13329,-13326,-13318,-13147,-13138,-13120,-13107,-13096,-13095,-13091,-13076, -13068,-13063,-13060,-12888,-12875,-12871,-12860,-12858,-12852,-12849,-12838,-12831, -12829,-12812,-12802,-12607,-12597,-12594,-12585,-12556,-12359,-12346,-12320,-12300, -12120,-12099,-12089,-12074,-12067,-12058,-12039,-11867,-11861,-11847,-11831,-11798, -11781,-11604,-11589,-11536,-11358,-11340,-11339,-11324,-11303,-11097,-11077,-11067, -11055,-11052,-11045,-11041,-11038,-11024,-11020,-11019,-11018,-11014,-10838,-10832, -10815,-10800,-10790,-10780,-10764,-10587,-10544,-10533,-10519,-10331,-10329,-10328, -10322,-10315,-10309,-10307,-10296,-10281,-10274,-10270,-10262,-10260,-10256,-10254 };private static string[] pyName = new string[]{"A","Ai","An","Ang","Ao","Ba","Bai","Ban","Bang","Bao","Bei","Ben","Beng","Bi","Bian","Biao","Bie","Bin","Bing","Bo","Bu","Ba","Cai","Can","Cang","Cao","Ce","Ceng","Cha","Chai","Chan","Chang","Chao","Che","Chen","Cheng", "Chi","Chong","Chou","Chu","Chuai","Chuan","Chuang","Chui","Chun","Chuo","Ci","Cong", "Cou","Cu","Cuan","Cui","Cun","Cuo","Da","Dai","Dan","Dang","Dao","De","Deng","Di","Dian","Diao","Die","Ding","Diu","Dong","Dou","Du","Duan","Dui","Dun","Duo","E","En","Er","Fa","Fan","Fang","Fei","Fen","Feng","Fo","Fou","Fu","Ga","Gai","Gan","Gang","Gao","Ge","Gei","Gen","Geng","Gong","Gou","Gu","Gua","Guai","Guan","Guang","Gui","Gun","Guo","Ha","Hai","Han","Hang","Hao","He","Hei","Hen","Heng","Hong","Hou","Hu","Hua","Huai","Huan","Huang","Hui","Hun","Huo","Ji","Jia","Jian","Jiang","Jiao","Jie","Jin","Jing","Jiong","Jiu","Ju","Juan","Jue","Jun","Ka","Kai","Kan","Kang","Kao","Ke","Ken","Keng","Kong","Kou","Ku","Kua","Kuai","Kuan","Kuang","Kui","Kun","Kuo","La","Lai","Lan","Lang","Lao","Le","Lei","Leng","Li","Lia","Lian","Liang","Liao","Lie","Lin","Ling","Liu","Long","Lou","Lu","Lv","Luan","Lue","Lun","Luo","Ma","Mai","Man","Mang","Mao","Me","Mei","Men","Meng","Mi","Mian","Miao","Mie","Min","Ming","Miu","Mo","Mou","Mu","Na","Nai","Nan","Nang","Nao","Ne","Nei","Nen","Neng","Ni","Nian","Niang","Niao","Nie","Nin","Ning","Niu","Nong","Nu","Nv","Nuan","Nue","Nuo","O","Ou","Pa","Pai","Pan","Pang","Pao","Pei","Pen","Peng","Pi","Pian","Piao","Pie","Pin","Ping","Po","Pu","Qi","Qia","Qian","Qiang","Qiao","Qie","Qin","Qing","Qiong","Qiu","Qu","Quan","Que","Qun","Ran","Rang","Rao","Re","Ren","Reng","Ri","Rong","Rou","Ru","Ruan","Rui","Run","Ruo","Sa","Sai","San","Sang","Sao","Se","Sen","Seng","Sha","Shai","Shan","Shang","Shao","She","Shen","Sheng","Shi","Shou","Shu","Shua","Shuai","Shuan","Shuang","Shui","Shun","Shuo","Si","Song","Sou","Su","Suan","Sui","Sun","Suo","Ta","Tai","Tan","Tang","Tao","Te","Teng","Ti","Tian","Tiao","Tie","Ting","Tong","Tou","Tu","Tuan","Tui","Tun","Tuo","Wa","Wai","Wan","Wang","Wei","Wen","Weng","Wo","Wu","Xi","Xia","Xian","Xiang","Xiao","Xie","Xin","Xing","Xiong","Xiu","Xu","Xuan","Xue","Xun","Ya","Yan","Yang","Yao","Ye","Yi","Yin","Ying","Yo","Yong","You","Yu","Yuan","Yue","Yun","Za", "Zai","Zan","Zang","Zao","Ze","Zei","Zen","Zeng","Zha","Zhai","Zhan","Zhang","Zhao","Zhe","Zhen","Zheng","Zhi","Zhong","Zhou","Zhu","Zhua","Zhuai","Zhuan", "Zhuang","Zhui","Zhun","Zhuo","Zi","Zong","Zou","Zu","Zuan","Zui","Zun","Zuo"};/// <summary>/// 把汉字转换成拼⾳(全拼)/// </summary>/// <param name="hzString">汉字字符串</param>/// <returns>转换后的拼⾳(全拼)字符串</returns>public static string Convert(string hzString){// 匹配中⽂字符Regex regex = new Regex("^[\u4e00-\u9fa5]$");byte[] array = new byte[2];string pyString = "";int chrAsc = 0;int i1 = 0;int i2 = 0;char[] noWChar = hzString.ToCharArray();for (int j = 0; j < noWChar.Length; j++){// 中⽂字符if (regex.IsMatch(noWChar[j].ToString())){array = System.Text.Encoding.Default.GetBytes(noWChar[j].ToString());i1 = (short)(array[0]);i2 = (short)(array[1]);chrAsc = i1 * 256 + i2 - 65536;if (chrAsc > 0 && chrAsc < 160){pyString += noWChar[j];}else{// 修正部分⽂字if (chrAsc == -9254) // 修正“圳”字pyString += "Zhen";else{for (int i = (pyValue.Length - 1); i >= 0; i--){if (pyValue[i] <= chrAsc){pyString += pyName[i];break;}}}}}// ⾮中⽂字符else{pyString += noWChar[j].ToString();}}return pyString;}}补充:⼀些⽣僻字转不了,⽐如:“睿”和“罡”字等。

汉字转化成拼音的源代码

汉字转化成拼音的源代码

汉字转化成拼⾳的源代码 1using System;2using System.Collections;3using System.Text;4namespace JJBase.String5{6 /** <summary>7 /// JJBase 的摘要说明。

8 /// </summary>9 ///10 汉字转化成拼⾳#region 汉字转化成拼⾳1112 public class Chinese2Spell13 {1415 /** <summary>16 /// 获得拼⾳17 /// </summary>18 /// <param name="str_Spell">汉字</param>19 /// <returns></returns>20 //调⽤格式:GetSpell(string str_Spell)21 //str_Spell是要转换的汉字22 //返回结果是转化成的拼⾳23 //⽬前还不完善,例如“爨”字转换不出来,需要进⼀步完善24 public string GetSpell(string str_Chinese)25 {2627 try28 {29 Hashtable t=hb();3031 byte[] b=System.Text.Encoding.Default.GetBytes(str_Chinese);32 int p;33 StringBuilder ret=new StringBuilder();34 for(int i=0;i< b.Length;i++)35 {36 p=(int)b[i];37 if(p>128)//160? or 128? 原⽂是160,待以后考证38 {39 p=p*256+b[++i]-65536;40 ret.Append(g(t,p));41 }42 else43 {44 ret.Append((char)p);45 }46 }47 t.Clear();48 return ret.ToString();49 }50 catch51 {52 return "";53 }5455 }5657 private string g(Hashtable ht,int num)58 {59 if(num < -20319||num > -10247)60 return "";61 while(!ht.ContainsKey(num))62 num--;63 return ht[num].ToString();64 }65 private Hashtable hb()66 {67 //尚不晚完善,例如“爨”就没有转换出来68 Hashtable ht=new Hashtable();69 ht.Add(-20319,"a");70 ht.Add(-20317,"ai");ht.Add(-20304,"an"); ht.Add(-20295,"ang");71 ht.Add(-20292,"ao");ht.Add(-20283,"ba"); ht.Add(-20265,"bai");72 ht.Add(-20257,"ban");ht.Add(-20242,"bang"); ht.Add(-20230,"bao");73 ht.Add(-20051,"bei"); ht.Add(-20036,"ben"); ht.Add(-20032,"beng");74 ht.Add(-20026,"bi"); ht.Add(-20002,"bian"); ht.Add(-19990,"biao");75 ht.Add(-19986,"bie"); ht.Add(-19982,"bin"); ht.Add(-19976,"bing");76 ht.Add(-19805,"bo"); ht.Add(-19784,"bu"); ht.Add(-19775,"ca");77 ht.Add(-19774,"cai"); ht.Add(-19763,"can"); ht.Add(-19756,"cang");78 ht.Add(-19751,"cao"); ht.Add(-19746,"ce"); ht.Add(-19741,"ceng");79 ht.Add(-19739,"cha"); ht.Add(-19728,"chai"); ht.Add(-19725,"chan");80 ht.Add(-19715,"chang"); ht.Add(-19540,"chao"); ht.Add(-19531,"che");81 ht.Add(-19525,"chen"); ht.Add(-19515,"cheng"); ht.Add(-19500,"chi");82 ht.Add(-19484,"chong"); ht.Add(-19479,"chou"); ht.Add(-19467,"chu");83 ht.Add(-19289,"chuai"); ht.Add(-19288,"chuan"); ht.Add(-19281,"chuang");84 ht.Add(-19275,"chui"); ht.Add(-19270,"chun"); ht.Add(-19263,"chuo");85 ht.Add(-19261,"ci"); ht.Add(-19249,"cong"); ht.Add(-19243,"cou");86 ht.Add(-19242,"cu"); ht.Add(-19238,"cuan"); ht.Add(-19235,"cui");87 ht.Add(-19227,"cun"); ht.Add(-19224,"cuo"); ht.Add(-19218,"da");88 ht.Add(-19212,"dai"); ht.Add(-19038,"dan"); ht.Add(-19023,"dang");89 ht.Add(-19018,"dao"); ht.Add(-19006,"de"); ht.Add(-19003,"deng");90 ht.Add(-18996,"di"); ht.Add(-18977,"dian"); ht.Add(-18961,"diao");91 ht.Add(-18952,"die"); ht.Add(-18783,"ding"); ht.Add(-18774,"diu");92 ht.Add(-18773,"dong"); ht.Add(-18763,"dou"); ht.Add(-18756,"du");93 ht.Add(-18741,"duan"); ht.Add(-18735,"dui"); ht.Add(-18731,"dun");94 ht.Add(-18722,"duo"); ht.Add(-18710,"e"); ht.Add(-18697,"en");95 ht.Add(-18696,"er"); ht.Add(-18526,"fa"); ht.Add(-18518,"fan");96 ht.Add(-18501,"fang"); ht.Add(-18490,"fei"); ht.Add(-18478,"fen");97 ht.Add(-18463,"feng"); ht.Add(-18448,"fo"); ht.Add(-18447,"fou");98 ht.Add(-18446,"fu"); ht.Add(-18239,"ga"); ht.Add(-18237,"gai");99 ht.Add(-18231,"gan"); ht.Add(-18220,"gang"); ht.Add(-18211,"gao");100 ht.Add(-18201,"ge"); ht.Add(-18184,"gei"); ht.Add(-18183,"gen");101 ht.Add(-18181,"geng"); ht.Add(-18012,"gong"); ht.Add(-17997,"gou");102 ht.Add(-17988,"gu"); ht.Add(-17970,"gua"); ht.Add(-17964,"guai");103 ht.Add(-17961,"guan"); ht.Add(-17950,"guang"); ht.Add(-17947,"gui"); 104 ht.Add(-17931,"gun"); ht.Add(-17928,"guo"); ht.Add(-17922,"ha");105 ht.Add(-17759,"hai"); ht.Add(-17752,"han"); ht.Add(-17733,"hang");106 ht.Add(-17730,"hao"); ht.Add(-17721,"he"); ht.Add(-17703,"hei");107 ht.Add(-17701,"hen"); ht.Add(-17697,"heng"); ht.Add(-17692,"hong");108 ht.Add(-17683,"hou"); ht.Add(-17676,"hu"); ht.Add(-17496,"hua");109 ht.Add(-17487,"huai"); ht.Add(-17482,"huan"); ht.Add(-17468,"huang"); 110 ht.Add(-17454,"hui"); ht.Add(-17433,"hun"); ht.Add(-17427,"huo");111 ht.Add(-17417,"ji"); ht.Add(-17202,"jia"); ht.Add(-17185,"jian");112 ht.Add(-16983,"jiang"); ht.Add(-16970,"jiao"); ht.Add(-16942,"jie");113 ht.Add(-16915,"jin"); ht.Add(-16733,"jing"); ht.Add(-16708,"jiong");114 ht.Add(-16706,"jiu"); ht.Add(-16689,"ju"); ht.Add(-16664,"juan");115 ht.Add(-16657,"jue"); ht.Add(-16647,"jun"); ht.Add(-16474,"ka");116 ht.Add(-16470,"kai"); ht.Add(-16465,"kan"); ht.Add(-16459,"kang");117 ht.Add(-16452,"kao"); ht.Add(-16448,"ke"); ht.Add(-16433,"ken");118 ht.Add(-16429,"keng"); ht.Add(-16427,"kong"); ht.Add(-16423,"kou");119 ht.Add(-16419,"ku"); ht.Add(-16412,"kua"); ht.Add(-16407,"kuai");120 ht.Add(-16403,"kuan"); ht.Add(-16401,"kuang"); ht.Add(-16393,"kui"); 121 ht.Add(-16220,"kun"); ht.Add(-16216,"kuo"); ht.Add(-16212,"la");122 ht.Add(-16205,"lai"); ht.Add(-16202,"lan"); ht.Add(-16187,"lang");123 ht.Add(-16180,"lao"); ht.Add(-16171,"le"); ht.Add(-16169,"lei");124 ht.Add(-16158,"leng"); ht.Add(-16155,"li"); ht.Add(-15959,"lia");125 ht.Add(-15958,"lian"); ht.Add(-15944,"liang"); ht.Add(-15933,"liao");126 ht.Add(-15920,"lie"); ht.Add(-15915,"lin"); ht.Add(-15903,"ling");127 ht.Add(-15889,"liu"); ht.Add(-15878,"long"); ht.Add(-15707,"lou");128 ht.Add(-15701,"lu");ht.Add(-15681,"lv");ht.Add(-15667,"luan");129 ht.Add(-15661,"lue");ht.Add(-15659,"lun");ht.Add(-15652,"luo");130 ht.Add(-15640,"ma");ht.Add(-15631,"mai");ht.Add(-15625,"man");131 ht.Add(-15454,"mang");ht.Add(-15448,"mao");ht.Add(-15436,"me");132 ht.Add(-15435,"mei");ht.Add(-15419,"men");ht.Add(-15416,"meng");133 ht.Add(-15408,"mi");ht.Add(-15394,"mian");ht.Add(-15385,"miao");134 ht.Add(-15377,"mie");ht.Add(-15375,"min");ht.Add(-15369,"ming");135 ht.Add(-15363,"miu");ht.Add(-15362,"mo");ht.Add(-15183,"mou");136 ht.Add(-15180,"mu");ht.Add(-15165,"na");ht.Add(-15158,"nai");137 ht.Add(-15153,"nan");ht.Add(-15150,"nang");ht.Add(-15149,"nao");138 ht.Add(-15144,"ne");ht.Add(-15143,"nei");ht.Add(-15141,"nen");139 ht.Add(-15140,"neng");ht.Add(-15139,"ni");ht.Add(-15128,"nian");140 ht.Add(-15121,"niang");ht.Add(-15119,"niao");ht.Add(-15117,"nie");141 ht.Add(-15110,"nin");ht.Add(-15109,"ning");ht.Add(-14941,"niu");142 ht.Add(-14937,"nong");ht.Add(-14933,"nu");ht.Add(-14930,"nv");143 ht.Add(-14929,"nuan");ht.Add(-14928,"nue");ht.Add(-14926,"nuo");144 ht.Add(-14922,"o");ht.Add(-14921,"ou");ht.Add(-14914,"pa");145 ht.Add(-14908,"pai");ht.Add(-14902,"pan");ht.Add(-14894,"pang");146 ht.Add(-14889,"pao");ht.Add(-14882,"pei");ht.Add(-14873,"pen");147 ht.Add(-14871,"peng");ht.Add(-14857,"pi");ht.Add(-14678,"pian");148 ht.Add(-14674,"piao");ht.Add(-14670,"pie");ht.Add(-14668,"pin");149 ht.Add(-14663,"ping");ht.Add(-14654,"po");ht.Add(-14645,"pu");150 ht.Add(-14630,"qi");ht.Add(-14594,"qia");ht.Add(-14429,"qian");151 ht.Add(-14407,"qiang");ht.Add(-14399,"qiao");ht.Add(-14384,"qie");152 ht.Add(-14379,"qin");ht.Add(-14368,"qing");ht.Add(-14355,"qiong");153 ht.Add(-14353,"qiu");ht.Add(-14345,"qu");ht.Add(-14170,"quan");154 ht.Add(-14159,"que");ht.Add(-14151,"qun");ht.Add(-14149,"ran");155 ht.Add(-14145,"rang");ht.Add(-14140,"rao");ht.Add(-14137,"re");156 ht.Add(-14135,"ren");ht.Add(-14125,"reng");ht.Add(-14123,"ri");157 ht.Add(-14122,"rong");ht.Add(-14112,"rou");ht.Add(-14109,"ru");158 ht.Add(-14099,"ruan");ht.Add(-14097,"rui");ht.Add(-14094,"run");159 ht.Add(-14092,"ruo");ht.Add(-14090,"sa");ht.Add(-14087,"sai");160 ht.Add(-14083,"san");ht.Add(-13917,"sang");ht.Add(-13914,"sao");161 ht.Add(-13910,"se");ht.Add(-13907,"sen");ht.Add(-13906,"seng");162 ht.Add(-13905,"sha");ht.Add(-13896,"shai");ht.Add(-13894,"shan");163 ht.Add(-13878,"shang");ht.Add(-13870,"shao");ht.Add(-13859,"she");164 ht.Add(-13847,"shen");ht.Add(-13831,"sheng");ht.Add(-13658,"shi");165 ht.Add(-13611,"shou");ht.Add(-13601,"shu");ht.Add(-13406,"shua");166 ht.Add(-13404,"shuai");ht.Add(-13400,"shuan");ht.Add(-13398,"shuang"); 167 ht.Add(-13395,"shui");ht.Add(-13391,"shun");ht.Add(-13387,"shuo");168 ht.Add(-13383,"si");ht.Add(-13367,"song");ht.Add(-13359,"sou");169 ht.Add(-13356,"su");ht.Add(-13343,"suan");ht.Add(-13340,"sui");170 ht.Add(-13329,"sun");ht.Add(-13326,"suo");ht.Add(-13318,"ta");171 ht.Add(-13147,"tai");ht.Add(-13138,"tan");ht.Add(-13120,"tang");172 ht.Add(-13107,"tao");ht.Add(-13096,"te");ht.Add(-13095,"teng");173 ht.Add(-13091,"ti");ht.Add(-13076,"tian");ht.Add(-13068,"tiao");174 ht.Add(-13063,"tie");ht.Add(-13060,"ting");ht.Add(-12888,"tong");175 ht.Add(-12875,"tou");ht.Add(-12871,"tu");ht.Add(-12860,"tuan");176 ht.Add(-12858,"tui");ht.Add(-12852,"tun");ht.Add(-12849,"tuo");177 ht.Add(-12838,"wa");ht.Add(-12831,"wai");ht.Add(-12829,"wan");178 ht.Add(-12812,"wang");ht.Add(-12802,"wei");ht.Add(-12607,"wen");179 ht.Add(-12597,"weng");ht.Add(-12594,"wo");ht.Add(-12585,"wu");180 ht.Add(-12556,"xi");ht.Add(-12359,"xia");ht.Add(-12346,"xian");181 ht.Add(-12320,"xiang");ht.Add(-12300,"xiao");ht.Add(-12120,"xie");182 ht.Add(-12099,"xin");ht.Add(-12089,"xing");ht.Add(-12074,"xiong");183 ht.Add(-12067,"xiu");ht.Add(-12058,"xu");ht.Add(-12039,"xuan");184 ht.Add(-11867,"xue");ht.Add(-11861,"xun");ht.Add(-11847,"ya");185 ht.Add(-11831,"yan");ht.Add(-11798,"yang");ht.Add(-11781,"yao");186 ht.Add(-11604,"ye");ht.Add(-11589,"yi");ht.Add(-11536,"yin");187 ht.Add(-11358,"ying");ht.Add(-11340,"yo");ht.Add(-11339,"yong");188 ht.Add(-11324,"you");ht.Add(-11303,"yu");ht.Add(-11097,"yuan");189 ht.Add(-11077,"yue");ht.Add(-11067,"yun");ht.Add(-11055,"za");190 ht.Add(-11052,"zai");ht.Add(-11045,"zan");ht.Add(-11041,"zang");191 ht.Add(-11038,"zao");ht.Add(-11024,"ze");ht.Add(-11020,"zei");192 ht.Add(-11019,"zen");ht.Add(-11018,"zeng");ht.Add(-11014,"zha");193 ht.Add(-10838,"zhai");ht.Add(-10832,"zhan");ht.Add(-10815,"zhang"); 194 ht.Add(-10800,"zhao");ht.Add(-10790,"zhe");ht.Add(-10780,"zhen");195 ht.Add(-10764,"zheng");ht.Add(-10587,"zhi");ht.Add(-10544,"zhong"); 196 ht.Add(-10533,"zhou");ht.Add(-10519,"zhu");ht.Add(-10331,"zhua");197 ht.Add(-10329,"zhuai");ht.Add(-10328,"zhuan");ht.Add(-10322,"zhuang"); 198 ht.Add(-10315,"zhui");ht.Add(-10309,"zhun");ht.Add(-10307,"zhuo");199 ht.Add(-10296,"zi");ht.Add(-10281,"zong");ht.Add(-10274,"zou");200 ht.Add(-10270,"zu");ht.Add(-10262,"zuan");ht.Add(-10260,"zui");201 ht.Add(-10256,"zun");ht.Add(-10254,"zuo");ht.Add(-10247,"zz");202 return ht;203 }204205 }206 # endregion207}。

Mysql中文汉字转拼音的实现(每个汉字转换全拼)

Mysql中文汉字转拼音的实现(每个汉字转换全拼)

Mysql中⽂汉字转拼⾳的实现(每个汉字转换全拼)-- 创建汉字拼⾳对照临时表CREATE TABLE IF NOT EXISTS `t_base_pinyin` (`pin_yin_` varchar(255) CHARACTER SET gbk NOT NULL,`code_` int(11) NOT NULL,PRIMARY KEY (`code_`)) ENGINE=InnoDB DEFAULT CHARSET=latin1;⼆、插⼊对照数据复制代码代码如下:-- 插⼊数据INSERT INTO t_base_pinyin (pin_yin_,code_) VALUES ("a", 20319),("ai", 20317),("an", 20304),("ang", 20295),("ao", 20292),("ba", 20283),("bai", 20265),("ban", 20257),("bang", 20242),("bao", 20230),("bei", 20051),("ben", 20036),("beng", 20032),(" 三、创建汉字转换拼⾳函数复制代码代码如下:-- 建⽴汉字转换拼⾳函数DROP FUNCTION IF EXISTS to_pinyin;DELIMITER $CREATE FUNCTION to_pinyin(NAME VARCHAR(255) CHARSET gbk)RETURNS VARCHAR(255) CHARSET gbkBEGINDECLARE mycode INT;DECLARE tmp_lcode VARCHAR(2) CHARSET gbk;DECLARE lcode INT;DECLARE tmp_rcode VARCHAR(2) CHARSET gbk;DECLARE rcode INT;DECLARE mypy VARCHAR(255) CHARSET gbk DEFAULT '';DECLARE lp INT;SET mycode = 0;SET lp = 1;SET NAME = HEX(NAME);WHILE lp < LENGTH(NAME) DOSET tmp_lcode = SUBSTRING(NAME, lp, 2);SET lcode = CAST(ASCII(UNHEX(tmp_lcode)) AS UNSIGNED);SET tmp_rcode = SUBSTRING(NAME, lp + 2, 2);SET rcode = CAST(ASCII(UNHEX(tmp_rcode)) AS UNSIGNED);IF lcode > 128 THENSET mycode =65536 - lcode * 256 - rcode ;SELECT CONCAT(mypy,pin_yin_) INTO mypy FROM t_base_pinyin WHERE CODE_ >= ABS(mycode) ORDER BY CODE_ ASC LIMIT 1;SET lp = lp + 4;ELSESET mypy = CONCAT(mypy,CHAR(CAST(ASCII(UNHEX(SUBSTRING(NAME, lp, 2))) AS UNSIGNED)));SET lp = lp + 2;END IF;END WHILE;RETURN LOWER(mypy);END;$DELIMITER ;四、使⽤⽅法代码如下:select to_pinyin('测试')输出结果:to_pinyin('测试')ceshi。

把中文汉字转成拼音(java代码)

把中文汉字转成拼音(java代码)

把中⽂汉字转成拼⾳(java代码)package util;import java.util.ArrayList;import java.util.HashMap;import java.util.HashSet;import java.util.List;import java.util.Map;import java.util.Set;import java.util.TreeSet;import net.sourceforge.pinyin4j.PinyinHelper;import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;import net.sourceforge.pinyin4j.format.HanyuPinyinVCharType;import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination;public class HanyuPinyinUtil {public static Map<String, Object> hanziToPinyin(String name) {Map<String, String> map = new HashMap<String, String>();map.put("name", name);return hanziToPinyin(map);}public static Map<String, Object> hanziToPinyin(Map<String, String> map) {Map<String, Object> newMap = null;// 参数校验if (map == null) return null;// map 是否有元素// if(map.isEmpty()) return null;// 不存在键名 nameif (!map.containsKey("name")) return null;// 校验值String hanzi = map.get("name");// 是否为null 或空⽩字符if (hanzi == null || hanzi.trim().equals("")) return null;// 去除特殊字符只留汉字while (!hanzi.matches("[\\u4e00-\\u9fa5]+")) {// 替换掉⾮中⽂hanzi = hanzi.replaceAll("[^\\u4e00-\\u9fa5]+", "");}if (hanzi.equals("")) return null;newMap = new HashMap<String, Object>();newMap.put("name", map.get("name"));// 获取汉字字符串的⾸个中⽂字符的⾸个字母newMap.put("firstChar", getFirstChar(hanzi));// 获取全拼⾳newMap.put("all", getPinyinAll(hanzi));// 获取拼⾳缩写newMap.put("acronym", getPinyinAcronym(hanzi));return newMap;}// 获取汉字字符串的⾸个汉字的⾸字母private static Set<String> getFirstChar(String hanzi) {Set<String> firsts = null;// 获取汉字字符串的拼⾳String[][] pinyins = getHanyuPinyin(hanzi);if (pinyins != null && pinyins.length > 0 && pinyins[0].length > 0) {firsts = new HashSet<String>();String[] temp = pinyins[0];for (String str : temp) {if (str != null && !str.trim().equals("")) {firsts.add(Character.toString(str.charAt(0)));}}}return firsts;}// 获取中⽂字符串的全拼⾳(多⾳字的不同组合)private static Set<String> getPinyinAll(String hanzi) {Set<String> set = null;String[][] pinyins = getHanyuPinyin(hanzi);if (pinyins != null && pinyins.length > 0) {List<StringBuffer> list = new ArrayList<StringBuffer>();// 获取⾸个汉字的所有拼⾳(多⾳字)int n = 0;for (int i = 0; i < pinyins[0].length; i++) {list.add(new StringBuffer(pinyins[n][i]));}// 循环取下个中⽂的拼⾳,处理多种组合// 复制⼀份List<StringBuffer> tempList1 = new ArrayList<StringBuffer>();// 确保list⾥的对象不是相同的for (int i = 0; i < list.size(); i++) {tempList1.add(new StringBuffer(list.get(i).toString()));}// 处理多个中⽂的拼⾳组合int n2 = 0;for (int i = 0; i < list.size(); i++) {list.get(i).append(pinyins[n][n2]);}do {// 再复制⼀份确保list⾥的对象不是相同的List<StringBuffer> tempList2 = new ArrayList<StringBuffer>();for (int i = 0; i < tempList1.size(); i++) {tempList2.add(new StringBuffer(tempList1.get(i).toString())); }// 处理多个中⽂的拼⾳组合for (int i = 0; i < tempList2.size(); i++) {tempList2.get(i).append(pinyins[n][n2]);}list.addAll(tempList2);} while (pinyins[n].length > ++n2);}set = new TreeSet<String>();for (int i = 0; i < list.size(); i++) {set.add(list.get(i).toString());}}return set;}// 和获取中⽂全拼⾳相同,这⾥只是获取中⽂拼⾳的⾸字母private static Set<String> getPinyinAcronym(String hanzi) {Set<String> set = null;String[][] pinyins = getHanyuPinyin(hanzi);if (pinyins != null && pinyins.length > 0) {List<StringBuffer> list = new ArrayList<StringBuffer>();int n = 0;for (int i = 0; i < pinyins[0].length; i++) {list.add(new StringBuffer(Character.toString(pinyins[n][i].charAt(0)))); }while (pinyins.length > ++n) {List<StringBuffer> tempList1 = new ArrayList<StringBuffer>();for (int i = 0; i < pinyins[0].length; i++) {tempList1.add(new StringBuffer(list.get(i).toString()));}int n2 = 0;for (int i = 0; i < list.size(); i++) {list.get(i).append(pinyins[n][n2].charAt(0));}do {List<StringBuffer> tempList2 = new ArrayList<StringBuffer>();for (int i = 0; i < tempList1.size(); i++) {tempList2.add(new StringBuffer(tempList1.get(i).toString())); }for (int i = 0; i < tempList2.size(); i++) {tempList2.get(i).append(pinyins[n][n2].charAt(0));}list.addAll(tempList2);} while (pinyins[n].length > ++n2);}set = new TreeSet<String>();for (int i = 0; i < list.size(); i++) {set.add(list.get(i).toString());}}return set;}//把汉字转成拼⾳private static String[][] getHanyuPinyin(String hanzi) {String[][] pinyins = null;//⾃定义转成拼⾳后的模板HanyuPinyinOutputFormat format = new HanyuPinyinOutputFormat();//设置转后的拼⾳为全⼩写字母format.setCaseType(HanyuPinyinCaseType.LOWERCASE);//⽆⾳调format.setToneType(HanyuPinyinToneType.WITHOUT_TONE);//特殊拼⾳(ü)⽤(v)替代format.setVCharType(HanyuPinyinVCharType.WITH_V);//先初始化⼀维数组pinyins = new String[hanzi.length()][];char word = hanzi.charAt(i);try {//如果不是汉字会返回nullString[] temp = PinyinHelper.toHanyuPinyinStringArray(word, format);//去除重复Set<String> set = new HashSet<String>();for (int j = 0; j < temp.length; j++) {set.add(temp[j]);}//初始化对应的⼆维数组pinyins[i] = new String[set.size()];int n = 0;for (String str : set) {pinyins[i][n++] = str;}} catch (BadHanyuPinyinOutputFormatCombination e) {e.printStackTrace();}}return pinyins;}}。

JAVA实现汉字转拼音功能代码实例

JAVA实现汉字转拼音功能代码实例

JAVA实现汉字转拼⾳功能代码实例JAVA中汉字转拼⾳的⽅法并不复杂,可以使⽤pinyin4j包来实现。

⼀、下载pinyin4j的架包,并导⼊项⽬中,如下:如果是maven项⽬,maven依赖如下:<dependency><groupId>com.belerweb</groupId><artifactId>pinyin4j</artifactId><version>2.5.0</version></dependency>⼆、汉字转拼⾳⽅法,附上代码例⼦,如下:public class PinyinUtil {public static void main(String[] args) throws Exception {System.out.println(getPinyin("haha你笑起来真好看", " "));System.out.println(getPinyinInitials("你笑起来真好看"));}/*** 将汉字转换为全拼** @param text ⽂本* @param separator 分隔符* @return {@link String}*/public static String getPinyin(String text, String separator) {char[] chars = text.toCharArray();HanyuPinyinOutputFormat format = new HanyuPinyinOutputFormat();// 设置⼤⼩写format.setCaseType(HanyuPinyinCaseType.LOWERCASE);// 设置声调表⽰⽅法format.setToneType(HanyuPinyinToneType.WITHOUT_TONE);// 设置字母u表⽰⽅法format.setVCharType(HanyuPinyinVCharType.WITH_V);String[] s;String rs = StringUtils.EMPTY;try {StringBuilder sb = new StringBuilder();for (int i = 0; i < chars.length; i++) {// 判断是否为汉字字符if (String.valueOf(chars[i]).matches("[\\u4E00-\\u9FA5]+")) {s = PinyinHelper.toHanyuPinyinStringArray(chars[i], format);if (s != null) {sb.append(s[0]).append(separator);continue;}}sb.append(String.valueOf(chars[i]));if ((i + 1 >= chars.length) || String.valueOf(chars[i + 1]).matches("[\\u4E00-\\u9FA5]+")) {sb.append(separator);}}rs = sb.substring(0, sb.length() - 1);} catch (BadHanyuPinyinOutputFormatCombination e) {e.printStackTrace();}return rs;}/*** 获取汉字⾸字母** @param text ⽂本* @return {@link String}*/public static String getPinyinInitials(String text) {StringBuilder sb = new StringBuilder();for (int i = 0; i < text.length(); i++) {char ch = text.charAt(i);String[] s = PinyinHelper.toHanyuPinyinStringArray(ch); if (s != null) {sb.append(s[0].charAt(0));} else {sb.append(ch);}}return sb.toString();}}其中,拼⾳格式参数说明:HanyuPinyinCaseType设置拼⾳的⼤⼩写LOWERCASE⼩写UPPERCASE⼤写HanyuPinyinToneType设置拼⾳的⾳调WITH_TONE_NUMBER⽤数字表⽰⾳调。

Python将汉字转为拼音

Python将汉字转为拼音
木秀林好吧感谢你的指出我确实没有实践过因为最近有项目需要用到recket才找的资源记录下来的那么这篇我就先隐藏了后面实践了再公开谢谢你
Python将 汉 字 转 为 拼 音
生成不带声调的
import pypinyin
# 将汉字转为拼音 def pinyin(word):
s = '' for i in pypinyin.pinyin(word, style=pypinyin.NORMAL):
s += ''.join(i) + ' ' return s
if __name__ == '__main__': print(yl文件,将中文拼英翻译,保存起来
# 保存Excel # code 保存的值 num 绝对定位 def saveExcel(code, num):
data = openpyxl.load_workbook("./source_file/123.xlsx") # 打开电影.xlsx文件读取数据 table = data["Sheet2"] table["A" + str(num)] = code data.close() data.save("./source_file/123.xlsx")
s += ''.join(i) return s
if __name__ == '__main__': print(yinjie("今天是快乐的一天"))
生成带声调的
# 带声调的,默认 def yinjie(word):
s = '' # heteronym=True 开启多音字 for i in pypinyin.pinyin(word, heteronym=False):

js汉字转拼音实现代码

js汉字转拼音实现代码

复制以下代码到PinYin.js即可。

调用方法:var pinyin = codefans_net_CC2PY("你好吗");PinYin.js复制代码代码如下:varPinYin ={"a":"\u554a\u963f\u9515","ai":"\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c \u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u783 9\u953f\u972d","an":"\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c 19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef","ang":"\u80ae\u6602\u 76ce","ao":"\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\ u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6","ba":" \u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u62 8a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u 94af\u7c91\u9c85\u9b43","bai":"\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\ u859c\u63b0\u97b4","ban":"\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u62 6e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8 228","bang":"\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u50 8d\u8c24\u84a1\u8783","bao":"\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\ u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e2 8\u8913\u8db5\u9f85","bo":"\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u5 35a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4 eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb","bei":"\u676f \u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u71 19\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u 943e","ben":"\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b","beng":"\u5d29\u7ef7\u7 52d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f","bi":"\u903c\u9f3b\u6bd4\u9119\u7b14\u5f 7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5 fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54 d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u9 4cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0","bian":"\u97ad\u8fb9 \u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\ u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca","biao":"\u68 07\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4","bie":"\u9cd6\u618b\u522b\u762a\u8e69\u9cd8","bin":"\u5f6c\u658c\u6fd2 \u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13","bin g":"\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\ u7ee0\u678b\u69df\u71f9","bu":"\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b6 5\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad","ca":"\u64e6\u56 93\u7924","cai":"\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u 8521","can":"\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9ee a","cang":"\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27","cao":"\u64cd\u7cd9\u69fd\u66f9\u 8349\u8279\u5608\u6f15\u87ac\u825a","ce":"\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\ u5e3b\u607b","ceng":"\u5c42\u8e6d\u564c","cha":"\u63d2\u53c9\u832c\u8336\u67e5\ u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce \u6aab\u9497\u9538\u9572\u8869","chai":"\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u8 67f\u9f87","chan":"\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4 \u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\ u89c7\u7985\u9561\u88e3\u87fe\u8e94","chang":"\u660c\u7316\u573a\u5c1d\u5e38\u 957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u 6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3","chao":"\u8d85\u6284\u949e\u67 1d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016","che":"\u8f66\u626f\u 64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817","chen":"\u90f4\u81e3\u8fb0\u5c18\u666 8\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u80 9c\u80c2\u789c\u9f80","cheng":"\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e 9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a 18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172","chi":"\u5403\u75f4\u6301\u5319\u 6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5 880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u 80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f \u9b51","chong":"\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f", "chou":"\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4f e6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b","chu":"\u81ed\u521d\u51fa\u 6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\ u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc","chuan":"\u 63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\ u6c1a\u948f\u9569\u8221","chuang":"\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006", "chui":"\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc","chun":"\u6625\u693f\u 9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d","chuo": "\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a","ci":"\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u878 5\u7ccd\u8d91","cong":"\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u 9aa2\u742e\u7481\u679e","cu":"\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59","cua n":"\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228","cui":"\u6467\u5d14\u50ac\u8106\ u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9","cun":"\u6751\u5b58\u5b f8\u78cb\u5fd6\u76b4","cuo":"\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\ u77ec\u75e4\u9e7e\u8e49\u8e9c","da":"\u642d\u8fbe\u7b54\u7629\u6253\u5927\u803 7\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791","dai":"\u5446\u6b79\u 50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454 \u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb","dan":"\u803d\u62c5\u4e39\u5355\u9 0f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u 5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa","dang":"\u5f 53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6","dao":"\ u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e 8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b","de":"\u5fb7\u5f97\u7684\u951d","de ng":"\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\ u7c26","di":"\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\ u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\ u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9 d\u9ab6","dian":"\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\ u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765 c\u766b\u7c1f\u8e2e","diao":"\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u 8c03\u8f7a\u94de\u8729\u7c9c\u8c82","die":"\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\ u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40 \u9cbd\u9cce","ding":"\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4 e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a","dong":"\u4e 1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5 cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b","dou":"\u515c\u6296\u6597\u9661\u8c46 \u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161","du":"\u90fd\u7763\u6b d2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u8 28f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9","duan":"\u7aef\u77ed \u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16","dui":"\u5806\u5151\u961f\u5bf 9\u603c\u619d\u7893","dun":"\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u 9041\u7096\u7818\u7905\u76f9\u9566\u8db8","duo":"\u6387\u54c6\u591a\u593a\u57 9b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u8 8f0\u8e31","e":"\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u 5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4","en":"\u6069\u84bd \u6441\u5514\u55ef","er":"\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe 9\u73e5\u94d2\u9e38\u9c95","fa":"\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d 0\u57a1\u781d","fan":"\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u7 0e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u 71d4\u7548\u8e6f","fang":"\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf \u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82","fei":"\u83f2\u975e\u5561\u98 de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5 983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u 7fe1\u970f\u9cb1","fen":"\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\ u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22","feng":" \u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\ u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c","fu":"\u4f5b\u5426\u592b\u6577\u80a4 \u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\ u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\ u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644 \u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5 e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864 d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6","ga":"\u5676\u560e\u86e4\u5 c2c\u5477\u5c15\u5c1c\u65ee\u9486","gai":"\u8be5\u6539\u6982\u9499\u76d6\u6e89\ u4e10\u9654\u5793\u6224\u8d45\u80f2","gan":"\u5e72\u7518\u6746\u67d1\u7aff\u80 9d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7 ec0\u6a44\u65f0\u77f8\u75b3\u9150","gang":"\u5188\u521a\u94a2\u7f38\u809b\u7eb 2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b","gong":"\u6760\u5de5\u653b\u529f\u606d\u 9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u 54a3\u73d9\u80b1\u86a3\u86e9\u89e5","gao":"\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd 5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u677 2\u9506","ge":"\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u6 83c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u 8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2","gei":"\u7ed9","gen" :"\u6839\u8ddf\u4e98\u831b\u54cf\u826e","geng":"\u8015\u66f4\u5e9a\u7fb9\u57c2\u 803f\u6897\u54fd\u8d53\u9ca0","gou":"\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\ u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\ u97b2","gu":"\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca \u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\ u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58","gua":"\u522e\u74dc\u5250\u5b e1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39","guai":"\u4e56\u62d0\u602a\u54d9 ","guan":"\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u5 00c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf","guang":"\u5149\u5e7f\u901b\u72b7\u68 44\u80f1\u7592","gui":"\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8b e1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u 7085\u6677\u7688\u7c0b\u9c91\u9cdc","gun":"\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2 \u78d9\u9ca7","guo":"\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63 b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748"," ha":"\u54c8","hai":"\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988 f\u91a2","han":"\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7 ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u 701a\u6657\u7113\u9894\u86b6\u9f3e","hen":"\u592f\u75d5\u5f88\u72e0\u6068","han g":"\u676d\u822a\u6c86\u7ed7\u73e9\u6841","hao":"\u58d5\u568e\u8c6a\u6beb\u90d d\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u86 9d","he":"\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u 9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\ u9616\u76cd\u86b5\u7fee","hei":"\u563f\u9ed1","heng":"\u54fc\u4ea8\u6a2a\u8861\u6 052\u8a07\u8605","hong":"\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2 \u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3","hou":"\u5589\u4faf\u7334\u543c\u539a\u50 19\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba","hu":"\u547c\u4e4e\u5 ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4 e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u 69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b", "hua":"\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9 a85\u6866\u94e7\u7a1e","huai":"\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d","huan ":"\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5 e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u 9ca9\u9b1f","huang":"\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u71 4c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87 e5\u7bc1\u9cc7","hui":"\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u 6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\ u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a \u87ea\u9ebe","hun":"\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6 eb7\u7f17","huo":"\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816","ji":"\u51fb\u573e\u57fa\u673a \u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\ u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7 \u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4 e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e 69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u5 4ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u 621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\ u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82","jia":"\u5609\u67b7 \u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b 6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d 7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf","jian":"\u6b7c\u76d1\u575a\u5c16\u7b3a\u9 5f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u 6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\ u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\ u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726 e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9c a3\u97af","jiang":"\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\ u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47","jiao" :"\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u9 4f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f 83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e 6a\u86df\u91ae\u8de4\u9c9b","jie":"\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u 622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u621 2\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55 df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9 c92\u9ab1\u9aeb","jin":"\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\ u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807 \u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77d c","jing":"\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u 7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u 7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u 80eb\u8148\u65cc","jiong":"\u70af\u7a98\u5182\u8fe5\u6243","jiu":"\u63ea\u7a76\u7e a0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u 5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f","ju":"\u97a0\u62d8 \u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u8 2f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\ u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab","juan":"\u6350\u9e 43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u9 6bd","jue":"\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5 \u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u95 62\u8e76\u89d6","jun":"\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u 90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87","ka":"\u5580\u5496\u5361\u4f67\u5494\ u80e9","ke":"\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef \u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a \u778c\u94b6\u75b4\u7aa0\u874c\u9ac1","kai":"\u5f00\u63e9\u6977\u51ef\u6168\u52 40\u57b2\u8488\u5ffe\u607a\u94e0\u950e","kan":"\u520a\u582a\u52d8\u574e\u780d\ u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0","kang":"\u5eb7\u6177\u7ce0\u6 25b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa","kao":"\u8003\u62f7\u70e4\u9760\ u5c3b\u6832\u7292\u94d0","ken":"\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880","ke ng":"\u542d\u5fd0\u94ff","kong":"\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c","ko u":"\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58","ku":"\u67af\u54ed\ u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7","kua":"\u5938\u57 ae\u630e\u8de8\u80ef\u4f89","kuai":"\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u 72ef\u810d","kuan":"\u5bbd\u6b3e\u9acb","kuang":"\u5321\u7b50\u72c2\u6846\u77ff\ u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36","kui":"\u4e8 f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u59 14\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u 7bd1\u81fe\u8dec","kun":"\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c \u9cb2\u9ae1","kuo":"\u62ec\u6269\u5ed3\u9614\u86de","la":"\u5783\u62c9\u5587\u8 721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c","lai":"\u83b1\u6765\u 8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41","lan":"\u84dd\u5a6a \u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5 \u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934","lang":"\u7405\u6994\u7 2fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782","lao":"\ u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d 1\u94f9\u75e8\u91aa","le":"\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3","lei ":"\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u8 37d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179","ling":"\u68f1\u51b7\u62ce\u73b2\ u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\ u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae","leng":"\u695e\u6123","li":"\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f1 3\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u78 3e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u5 4e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u 7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\ u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9 d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7","lian":"\u4fe9\u8054\u83b2\u8fde\u9570\u5 ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u 6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2","liang":"\u7ca e\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e0 9\u9753\u9b49","liao":"\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6 482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022"," lie":"\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23","lin":" \u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d 99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f","liu":"\u6e9c\u7409\u69b4\u7 86b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u 905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f","long":"\u9f99\u804b\u549 9\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e 7\u783b\u7643","lou":"\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7 618\u8027\u877c\u9ac5","lu":"\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u 9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u 6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u 80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88","lv":"\u9a74\u5415\u94dd\u4fa3\u65c5\ u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u 7a06\u891b","luan":"\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae","lue":"\u6 3a0\u7565\u950a","lun":"\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5","luo":"\u841d \u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u836 6\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2","ma":"\u5988\u9ebb\u739b\u 7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd","mai":"\u57 cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e","man":"\u7792\u9992\ u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\ u87a8\u9cd7\u9794","mang":"\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u7 86d\u87d2","meng":"\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d 0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe","miao":"\u732b\ u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a \u6dfc\u7707\u9e4b\u8731","mao":"\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u 65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6","me":"\u4e48","mei":"\u73ab\u679a\u68 85\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5 a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45","men" :"\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494","mi":"\u772f\u919a\u9761\u7c dc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c2 7\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b","mi an":"\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\ u7704","mie":"\u8511\u706d\u54a9\u881b\u7bfe","min":"\u6c11\u62bf\u76bf\u654f\u6 0af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9","ming":"\u660e\u879f\u9e23\u94ed\u540d\ u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169","miu":"\u8c2c","mo":"\u6478\u6479\u8 611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\ u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a \u8c98","mou":"\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a","mu":"\u62c7\u 7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\ u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc","na":"\u62ff\u54ea\u5450\u94a0\u90a 3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac","nai":"\u6c16\u4e43\u5976\u 8010\u5948\u9f10\u827f\u8418\u67f0","nan":"\u5357\u7537\u96be\u56ca\u5583\u56e 1\u6960\u8169\u877b\u8d67","nao":"\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u 7459\u7847\u94d9\u86f2","ne":"\u6dd6\u5462\u8bb7","nei":"\u9981","nen":"\u5ae9\u8 0fd\u6798\u6041","ni":"\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9 006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u 9cb5","nian":"\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\ u9cb6","niang":"\u5a18\u917f","niao":"\u9e1f\u5c3f\u8311\u5b32\u8132\u8885","nie":" \u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u98 9e\u81ec\u8e51","nin":"\u60a8\u67e0","ning":"\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e \u84e5\u549b\u752f\u804d","niu":"\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86 b4","nong":"\u8113\u6d53\u519c\u4fac","nu":"\u5974\u52aa\u6012\u5476\u5e11\u5f29 \u80ec\u5b65\u9a7d","nv":"\u5973\u6067\u9495\u8844","nuan":"\u6696","nuenue":"\u 8650","nue":"\u759f\u8c11","nuo":"\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u951 8","ou":"\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026"," pa":"\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62","pai":"\u62cd\u6392\u724 c\u5f98\u6e43\u6d3e\u4ff3\u848e","pan":"\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u52 24\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52","pang":"\u4e53\u5e9e\u65c1\u802a \u80d6\u6ec2\u9004","pao":"\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u7 2cd\u5e96\u812c\u75b1","pei":"\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\。

java汉字转换拼音

java汉字转换拼音

java汉字转换拼音1、汉字转换拼音首先引入一个叫pinyin4j-2.5.0.jar下载地址:/detail/yao__shun__yu/46702282、测试代码import demo.Pinyin4jAppletDemo;import net.sourceforge.pinyin4j.PinyinHelper;importnet.sourceforge.pinyin4j.format.HanyuPinyinCaseType;importnet.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;importnet.sourceforge.pinyin4j.format.HanyuPinyinToneType;importnet.sourceforge.pinyin4j.format.HanyuPinyinVCharType;importnet.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutp utFormatCombination;public class T {public static void main(String[] args) throws BadHanyuPinyinOutputFormatCombination {char[] ch = "平淡".toCharArray();HanyuPinyinOutputFormat t3 = new HanyuPinyinOutputFormat();/*** 拼音大小写类型*///t3.setCaseType(HanyuPinyinCaseType.LOWERCASE);//小写拼音//t3.setCaseType(HanyuPinyinCaseType.UPPERCASE);//大写拼音/*** 拼音输出方式*///t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE);//不输出语气,就是几声t3.setToneType(HanyuPinyinToneType.WITH_TONE_NUMBE R);//数字方式输出几声//t3.setToneType(HanyuPinyinToneType.WITH_TONE_MARK) ;//符号方式的输出几声/*** 拼音字母样式*///The option indicates that the output of 'ü' is "v"//t3.setVCharType(HanyuPinyinVCharType.WITH_V);//The option indicates that the output of 'ü' is "ü" in Unicode form//t3.setVCharType(HanyuPinyinVCharType.WITH_U_AND_C OLON);//The option indicates that the output of 'ü' is "u:"//t3.setVCharType(HanyuPinyinVCharType.WITH_U_UNICOD E);System.out.println(ch);//不加样式String[] pinyinHead = PinyinHelper.toHanyuPinyinStringArray(ch[0]);for(String str:pinyinHead){System.out.println(str);}//加样式pinyinHead = PinyinHelper.toHanyuPinyinStringArray(ch[1],t3);for(String str:pinyinHead){System.out.println(str);}}}运行结果:平淡ping2dan4标准案例:import net.sourceforge.pinyin4j.PinyinHelper;importnet.sourceforge.pinyin4j.format.HanyuPinyinCaseType;importnet.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;importnet.sourceforge.pinyin4j.format.HanyuPinyinToneType;importnet.sourceforge.pinyin4j.format.HanyuPinyinVCharType;importnet.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutp utFormatCombination;public class ChineseToEnglish{// ------------------------灏嗘眽瀛楄浆鎹负鍏ㄦ嫾-------------------------------public static String getPingYin(String src){char[] t1 = null;t1 = src.toCharArray();String[] t2 = new String[t1.length];HanyuPinyinOutputFormat t3 = new HanyuPinyinOutputFormat();t3.setCaseType(HanyuPinyinCaseType.LOWERCASE);t3.setToneType(HanyuPinyinToneType.WITHOUT_TONE);t3.setVCharType(HanyuPinyinVCharType.WITH_V);String t4 = "";int t0 = t1.length;try{for (int i = 0; i < t0; i++){// 鍒ゆ柇鏄惁涓烘眽瀛楀瓧绗�if (ng.Character.toString(t1[i]).matches("[\\u4E00-\\u9FA5]+")){t2 = PinyinHelper.toHanyuPinyinStringArray(t1[i], t3);t4 += t2[0];} else{t4 += ng.Character.toString(t1[i]);}}// System.out.println(t4);return t4;} catch (BadHanyuPinyinOutputFormatCombination e1){e1.printStackTrace();}return t4;}// ----------------------------------------杩斿洖涓枃鐨勯瀛楁瘝--------------------public static String getPinYinHeadChar(String str){String convert = "";for (int j = 0; j < str.length(); j++){char word = str.charAt(j);String[] pinyinArray = PinyinHelper.toHanyuPinyinStringArray(word);if (pinyinArray != null){convert += pinyinArray[0].charAt(0);} else{convert += word;}}return convert;}// -------------------------灏嗗瓧绗︿覆杞Щ涓篈SCII鐮�----------------------------public static String getCnASCII(String cnStr){StringBuffer strBuf = new StringBuffer();byte[] bGBK= cnStr.getBytes();for (int i = 0; i < bGBK.length; i++){// System.out.println(Integer.toHexString(bGBK[i]&0xff));strBuf.append(Integer.toHexString(bGBK[i] & 0xff));}return strBuf.toString();}// --------------------------娴嬭瘯鎷奸煶杞眽瀛楁槸鍚︽纭�---------------------------public static void main(String[] args){System.out.println(getPingYin("东软帝国"));// 杩斿洖鎷奸煶鐨勫叏鎷兼牱寮�System.out.println(getPinYinHeadChar("东软帝国"));// 杩斿洖鎷奸煶鐨勯瀛楁瘝System.out.println(getCnASCII("东软帝国")); // 杩斿洖鎷奸煶鐨凙SCII}}运行结果dongruandiguodrdge4b89ce8bdafe5b89de59bbd。

excel-汉字转换成拼音简拼(只取首字母)

excel-汉字转换成拼音简拼(只取首字母)

名字转换为首字母(VBA自定义函数)1、打开EXCEL2、按 ALT+F11 ,点击插入-插入模块,在右面窗口中粘贴下面代码,直接关闭窗口3、输入公式=hztopy(A1),填充所有单元格4、选中所有缩写,复制-选择性粘贴-数值(因为是自定义函数,只有在当前文件中可以显示结果,其他电脑因没有公式而显示错误)5、使用条件格式,检索出含有汉字的单元格:先点中一个单元格(设为D5),条件格式-新建格式规则-使用公式确定要设置格式的单元格:在下面对话框中输入公式 =LENB(D5)>LEN(D5),自己设置格式,确定后退出,再把该单元格的格式用格式刷刷所有单元格。

有汉字的出现所设格式6、选择自定义排序-排序依据“单元格颜色”-次序“无单元格颜色”“在底端”-确定。

7、将汉字手动改写为相应的字母。

8、核对多音字。

注:以上方法只可以在当前文件夹使用,如何将宏保存,使自定义函数可以在所有文件夹中使用1、新建一个EXCEL2、按 ALT+F11 ,点击插入-插入模块,在右面窗口中粘贴下面代码,直接关闭窗口3、另存为-其他格式-文件名改为宏名称、保存类型选择“EXCEL加载宏(*,xlam)”,文件将自动保存在C:\Users\111\AppData\Roaming\Microsoft\AddIns文件夹。

4、打开需要工作的EXLEL,点击开始-EXCEL选项-加载项-转到(G)...-选中上面保存的宏名称-确定。

这样,在该电脑的所有EXCEL中,都可以直接使用自定义公式。

代码(只复制星号内的内容)******************************************************************************* Function hztopy(hzpy As String) As StringDim hzstring As String, pystring As StringDim hzpysum As Integer, hzi As Integer, hzpyhex As Integerhzstring = Trim(hzpy)hzpysum = Len(Trim(hzstring))pystring = ""For hzi = 1 To hzpysumhzpyhex = "&H" + Hex(Asc(Mid(hzstring, hzi, 1)))Select Case hzpyhexCase &HB0A1 To &HB0C4: pystring = pystring + "A"Case &HB0C5 To &HB2C0: pystring = pystring + "B"Case &HB2C1 To &HB4ED: pystring = pystring + "C"Case &HB4EE To &HB6E9: pystring = pystring + "D"Case &HB6EA To &HB7A1: pystring = pystring + "E"Case &HB7A2 To &HB8C0: pystring = pystring + "F"Case &HB8C1 To &HB9FD: pystring = pystring + "G"Case &HB9FE To &HBBF6: pystring = pystring + "H"Case &HBBF7 To &HBFA5: pystring = pystring + "J"Case &HBFA6 To &HC0AB: pystring = pystring + "K"Case &HC0AC To &HC2E7: pystring = pystring + "L"Case &HC2E8 To &HC4C2: pystring = pystring + "M"Case &HC4C3 To &HC5B5: pystring = pystring + "N"Case &HC5B6 To &HC5BD: pystring = pystring + "O"Case &HC5BE To &HC6D9: pystring = pystring + "P"Case &HC6DA To &HC8BA: pystring = pystring + "Q"Case &HC8BB To &HC8F5: pystring = pystring + "R"Case &HC8F6 To &HCBF9: pystring = pystring + "S"Case &HCBFA To &HCDD9: pystring = pystring + "T"Case &HEDC5: pystring = pystring + "T"Case &HCDDA To &HCEF3: pystring = pystring + "W"Case &HCEF4 To &HD1B8: pystring = pystring + "X"Case &HD1B9 To &HD4D0: pystring = pystring + "Y"Case &HD4D1 To &HD7F9: pystring = pystring + "Z"Case Elsepystring = pystring + Mid(hzstring, hzi, 1)End SelectNexthztopy = pystringEnd Function*******************************************************************************。

汉字转拼音公式

汉字转拼音公式

将汉字转换为拼音,可以使用以下两种方法:
方法一(使用Office Excel 2007):
1. 打开一个新的Excel文档。

2. 在D2单元格中输入“=getpy(C2)”,然后按回车键确认。

3. 将鼠标放在D2单元格右下角,当出现“+”后,向下拖动鼠标。

4. 这样,姓名一栏所有的汉字都以拼音形式显示了。

5. 如果需要将拼音的首字母变成大写,可以将鼠标标定在E2单元格中,然后输入“=PROPER(D2)”,按回车键确认。

6. 重复步骤3~5,即可将所有汉字转换为拼音。

方法二(使用Word文档和拼音指南功能):
1. 打开一个新的Word文档,并将表格中的员工姓名复制到Word文档中。

2. 按下CTRL+A,选择所有数据,确保整个文档被选中。

3. 在开始选项卡下找到拼音指南,并点击确认。

这样,Word文档中的汉字都会附带上拼音。

4. 将Word文档中的数据全选并复制回到Excel表格的B列中。

5. 在C列中,输入“=PH”,并选择第2个公式,引用B1单元格。

整体公式为:“=PHONETIC(B1)”。

6. 按回车键确认后即可得到转换后的结果。

通过以上方法,您可以轻松地将汉字转换为拼音,并将其导入Excel表格中进行分析和处理。

中文转拼音函数

中文转拼音函数

中文转拼音函数
中文转拼音的功能在Python中可以使用pypinyin库实现。

您可以先安装pypinyin库,然后使用以下代码示例进行转换:
```python
from pypinyin import pinyin
def chinese_to_pinyin(text):
# 将中文文本转换成拼音并返回
return ''.join([item[0] for item in pinyin(text)])
# 测试
text = "中文转拼音函数"
print(chinese_to_pinyin(text)) # 输出:zhongwenzhuanpinyinhanshu
```
以上代码中,`chinese_to_pinyin()`函数接受一个中文文本作为参数,并使用pinyin函数将其转换为拼音列表。

然后使用列表推导式和join()函数将拼音列表转换为拼音字符串,并最后返回结果。

注意:以上代码使用的是pypinyin库的默认设置,即将汉字转换为拼音的首字母。

如需其他拼音格式,可以参考pypinyin 库的文档进行设置。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

原理,使用Dictionary技术1.添加索引2.遍历词典<%Set d = CreateObject("Scripting.Dictionary")d.add "a",-20319d.add "ai",-20317d.add "an",-20304d.add "ang",-20295d.add "ao",-20292d.add "ba",-20283d.add "bai",-20265d.add "ban",-20257d.add "bang",-20242d.add "bao",-20230d.add "bei",-20051d.add "ben",-20036d.add "beng",-20032d.add "bi",-20026d.add "bian",-20002d.add "biao",-19990d.add "bie",-19986d.add "bin",-19982d.add "bing",-19976d.add "bo",-19805d.add "bu",-19784d.add "ca",-19775d.add "cai",-19774d.add "can",-19763d.add "cang",-19756d.add "cao",-19751d.add "ce",-19746d.add "ceng",-19741d.add "cha",-19739d.add "chai",-19728d.add "chan",-19725d.add "chang",-19715d.add "chao",-19540d.add "che",-19531d.add "chen",-19525d.add "cheng",-19515d.add "chi",-19500d.add "chong",-19484d.add "chu",-19467 d.add "chuai",-19289 d.add "chuan",-19288 d.add "chuang",-19281 d.add "chui",-19275 d.add "chun",-19270 d.add "chuo",-19263 d.add "ci",-19261d.add "cong",-19249 d.add "cou",-19243 d.add "cu",-19242d.add "cuan",-19238 d.add "cui",-19235 d.add "cun",-19227 d.add "cuo",-19224 d.add "da",-19218d.add "dai",-19212 d.add "dan",-19038 d.add "dang",-19023 d.add "dao",-19018 d.add "de",-19006d.add "deng",-19003 d.add "di",-18996d.add "dian",-18977 d.add "diao",-18961 d.add "die",-18952 d.add "ding",-18783 d.add "diu",-18774 d.add "dong",-18773 d.add "dou",-18763 d.add "du",-18756d.add "duan",-18741 d.add "dui",-18735 d.add "dun",-18731 d.add "duo",-18722 d.add "e",-18710d.add "en",-18697d.add "er",-18696d.add "fa",-18526d.add "fan",-18518 d.add "fang",-18501 d.add "fei",-18490 d.add "fen",-18478d.add "fo",-18448 d.add "fou",-18447 d.add "fu",-18446 d.add "ga",-18239 d.add "gai",-18237 d.add "gan",-18231 d.add "gang",-18220 d.add "gao",-18211 d.add "ge",-18201 d.add "gei",-18184 d.add "gen",-18183 d.add "geng",-18181 d.add "gong",-18012 d.add "gou",-17997 d.add "gu",-17988 d.add "gua",-17970 d.add "guai",-17964 d.add "guan",-17961 d.add "guang",-17950 d.add "gui",-17947 d.add "gun",-17931 d.add "guo",-17928 d.add "ha",-17922 d.add "hai",-17759 d.add "han",-17752 d.add "hang",-17733 d.add "hao",-17730 d.add "he",-17721 d.add "hei",-17703 d.add "hen",-17701 d.add "heng",-17697 d.add "hong",-17692 d.add "hou",-17683 d.add "hu",-17676 d.add "hua",-17496 d.add "huai",-17487 d.add "huan",-17482 d.add "huang",-17468 d.add "hui",-17454 d.add "hun",-17433 d.add "huo",-17427 d.add "ji",-17417d.add "jia",-17202d.add "jiang",-16983 d.add "jiao",-16970 d.add "jie",-16942 d.add "jin",-16915 d.add "jing",-16733 d.add "jiong",-16708 d.add "jiu",-16706 d.add "ju",-16689 d.add "juan",-16664 d.add "jue",-16657 d.add "jun",-16647 d.add "ka",-16474 d.add "kai",-16470 d.add "kan",-16465 d.add "kang",-16459 d.add "kao",-16452 d.add "ke",-16448 d.add "ken",-16433 d.add "keng",-16429 d.add "kong",-16427 d.add "kou",-16423 d.add "ku",-16419 d.add "kua",-16412 d.add "kuai",-16407 d.add "kuan",-16403 d.add "kuang",-16401 d.add "kui",-16393 d.add "kun",-16220 d.add "kuo",-16216 d.add "la",-16212 d.add "lai",-16205 d.add "lan",-16202 d.add "lang",-16187 d.add "lao",-16180 d.add "le",-16171 d.add "lei",-16169 d.add "leng",-16158 d.add "li",-16155d.add "lia",-15959 d.add "lian",-15958 d.add "liang",-15944 d.add "liao",-15933 d.add "lie",-15920d.add "ling",-15903 d.add "liu",-15889 d.add "long",-15878 d.add "lou",-15707 d.add "lu",-15701 d.add "lv",-15681 d.add "luan",-15667 d.add "lue",-15661 d.add "lun",-15659 d.add "luo",-15652 d.add "ma",-15640 d.add "mai",-15631 d.add "man",-15625 d.add "mang",-15454 d.add "mao",-15448 d.add "me",-15436 d.add "mei",-15435 d.add "men",-15419 d.add "meng",-15416 d.add "mi",-15408 d.add "mian",-15394 d.add "miao",-15385 d.add "mie",-15377 d.add "min",-15375 d.add "ming",-15369 d.add "miu",-15363 d.add "mo",-15362 d.add "mou",-15183 d.add "mu",-15180 d.add "na",-15165 d.add "nai",-15158 d.add "nan",-15153 d.add "nang",-15150 d.add "nao",-15149 d.add "ne",-15144 d.add "nei",-15143 d.add "nen",-15141 d.add "neng",-15140 d.add "ni",-15139 d.add "nian",-15128 d.add "niang",-15121 d.add "niao",-15119 d.add "nie",-15117d.add "ning",-15109 d.add "niu",-14941 d.add "nong",-14937 d.add "nu",-14933 d.add "nv",-14930 d.add "nuan",-14929 d.add "nue",-14928 d.add "nuo",-14926 d.add "o",-14922 d.add "ou",-14921 d.add "pa",-14914 d.add "pai",-14908 d.add "pan",-14902 d.add "pang",-14894 d.add "pao",-14889 d.add "pei",-14882 d.add "pen",-14873 d.add "peng",-14871 d.add "pi",-14857 d.add "pian",-14678 d.add "piao",-14674 d.add "pie",-14670 d.add "pin",-14668 d.add "ping",-14663 d.add "po",-14654 d.add "pu",-14645 d.add "qi",-14630 d.add "qia",-14594 d.add "qian",-14429 d.add "qiang",-14407 d.add "qiao",-14399 d.add "qie",-14384 d.add "qin",-14379 d.add "qing",-14368 d.add "qiong",-14355 d.add "qiu",-14353 d.add "qu",-14345 d.add "quan",-14170 d.add "que",-14159 d.add "qun",-14151 d.add "ran",-14149 d.add "rang",-14145 d.add "rao",-14140d.add "ren",-14135 d.add "reng",-14125 d.add "ri",-14123d.add "rong",-14122 d.add "rou",-14112 d.add "ru",-14109d.add "ruan",-14099 d.add "rui",-14097 d.add "run",-14094 d.add "ruo",-14092 d.add "sa",-14090d.add "sai",-14087 d.add "san",-14083 d.add "sang",-13917 d.add "sao",-13914 d.add "se",-13910d.add "sen",-13907 d.add "seng",-13906 d.add "sha",-13905 d.add "shai",-13896 d.add "shan",-13894 d.add "shang",-13878 d.add "shao",-13870 d.add "she",-13859 d.add "shen",-13847 d.add "sheng",-13831 d.add "shi",-13658 d.add "shou",-13611 d.add "shu",-13601 d.add "shua",-13406 d.add "shuai",-13404 d.add "shuan",-13400 d.add "shuang",-13398 d.add "shui",-13395 d.add "shun",-13391 d.add "shuo",-13387 d.add "si",-13383d.add "song",-13367 d.add "sou",-13359 d.add "su",-13356d.add "suan",-13343 d.add "sui",-13340 d.add "sun",-13329d.add "ta",-13318 d.add "tai",-13147 d.add "tan",-13138 d.add "tang",-13120 d.add "tao",-13107 d.add "te",-13096 d.add "teng",-13095 d.add "ti",-13091 d.add "tian",-13076 d.add "tiao",-13068 d.add "tie",-13063 d.add "ting",-13060 d.add "tong",-12888 d.add "tou",-12875 d.add "tu",-12871 d.add "tuan",-12860 d.add "tui",-12858 d.add "tun",-12852 d.add "tuo",-12849 d.add "wa",-12838 d.add "wai",-12831 d.add "wan",-12829 d.add "wang",-12812 d.add "wei",-12802 d.add "wen",-12607 d.add "weng",-12597 d.add "wo",-12594 d.add "wu",-12585 d.add "xi",-12556 d.add "xia",-12359 d.add "xian",-12346 d.add "xiang",-12320 d.add "xiao",-12300 d.add "xie",-12120 d.add "xin",-12099 d.add "xing",-12089 d.add "xiong",-12074 d.add "xiu",-12067 d.add "xu",-12058 d.add "xuan",-12039 d.add "xue",-11867 d.add "xun",-11861 d.add "ya",-11847d.add "yang",-11798 d.add "yao",-11781 d.add "ye",-11604d.add "yi",-11589d.add "yin",-11536 d.add "ying",-11358 d.add "yo",-11340d.add "yong",-11339 d.add "you",-11324 d.add "yu",-11303d.add "yuan",-11097 d.add "yue",-11077 d.add "yun",-11067 d.add "za",-11055d.add "zai",-11052 d.add "zan",-11045 d.add "zang",-11041 d.add "zao",-11038 d.add "ze",-11024d.add "zei",-11020 d.add "zen",-11019 d.add "zeng",-11018 d.add "zha",-11014 d.add "zhai",-10838 d.add "zhan",-10832 d.add "zhang",-10815 d.add "zhao",-10800 d.add "zhe",-10790 d.add "zhen",-10780 d.add "zheng",-10764 d.add "zhi",-10587 d.add "zhong",-10544 d.add "zhou",-10533 d.add "zhu",-10519 d.add "zhua",-10331 d.add "zhuai",-10329 d.add "zhuan",-10328 d.add "zhuang",-10322 d.add "zhui",-10315 d.add "zhun",-10309 d.add "zhuo",-10307 d.add "zi",-10296d.add "zong",-10281d.add "zu",-10270d.add "zuan",-10262d.add "zui",-10260d.add "zun",-10256d.add "zuo",-10254function g(num)if num>0 and num<160 theng=chr(num)elseif num<-20319 or num>-10247 then g=""elsea=d.Itemsb=d.keysfor i=d.count-1 to 0 step -1if a(i)<=num then exit fornextg=b(i)end ifend ifend functionfunction c(str)c=""for i=1 to len(str)c=c&g(asc(mid(str,i,1)))nextend functionresponse.write c(request("hz")) %><form method=post>请在此处输入中文:<input >。

相关文档
最新文档