主要用于模糊查询,或者快速查找
代码如下
<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame Remove this if you use the .htaccess --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>汉字简拼</title> <meta name="description" content=""> <meta name="author" content="Administrator"> <meta name="viewport" content="width=device-width; initial-scale=1.0"> <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references --> <link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> </head> <body> <center> <input type="text" id="wordC" /> <input type="button" id="btn" value="获取简拼" /> <h1 id="wordE"> </h1> </center> </body> <script type="text/javascript"> window.onload = function() { document.getElementById("btn").onclick = function() { var wordC = document.getElementById("wordC").value; var wordE = letterArr(wordC); document.getElementById("wordE").innerHTML = wordE.toUpperCase(); }; //获取字符串首字母 /** * arrInitialChart数组将unicode 19968-40869 编码分为26个元素,每个元素的首字母都相同,按英文字符排序 * arrNumLetter数组为每个arrInitialChart数组的元素id所对应的英文字母 * arrPolyphone数组为377个声母不同的多音字的首字母字符串 */ var arrInitialChart = new Array(); arrInitialChart[0]=" 俺傲 凹 哀哎唉 啊 嗄嗌嗳嗷 坳 埃埯 奥 媪嫒 安 岙 岸 庵廒 懊 按挨捱揞 敖 昂 暗暧 案桉 氨 澳熬 爱犴獒 瑷 癌皑 盎 矮砹 碍 翱 聱肮胺 艾 蔼 螯袄 谙 遨 鏊鏖 铵锕锿 阿 隘 霭 鞍 骜 鳌 鹌黯 "; arrInitialChart[1]="不丙 亳 伯伴 佛 佰 便保 俾 倍 傍 傧 八兵冰 别剥办勃 勹 包匕北匾半卑博卜卞卟 变叭吡吧呗 哔 哺 啵 嘣坂坌 坝 埠 堡 壁 备 夯 奔 妣 婊婢 嬖 孛孢 宀宝宾 岜 崩 巴币布帛帮 并 庇 庳 弁弊 弼 彪彬彼 必忭 怖 悖悲惫 愎 憋 扁扒扮扳 把 报 抱拌拔拜 拨 捌捕 捭 掰 搏搬摆摈摒 播擘 敝 斌斑 晡暴 本 杯板 柄柏 标 梆 棒 榜槟 檗 步 殡 比毕毖毙 汴 泊 波泵浜 渤 滗滨 濒濞 瀑 灞 炳焙 煲煸 爆爸版 狈 狴 玢 玻 班 璧 瓣 瓿 甏甭畀 畚 疒 疤 病痹瘢瘪瘭癍 白百 砭碑碚碥碧磅 礴禀 秉秕 稗 窆 笆笔 笨笾 筚箅箔 篦 簸簿 粑 绊绑绷缏编缤 罢 背胞脖 膀膊膑膘臂 舨般舭舶 芭苄 苞 苯茇荜荸 菝菠 萆 葆 蒡蓓蓖 蔽 薄薜 蚌 蝙 补表 被 裨裱褊褒褓褙 襞 谤 豳豹 贝败贬贲 趵跋跛跸 踣 蹦蹩 辈 辨辩辫 边迸逋 逼遍避 邦 邴邶 部 鄙 醭 鐾 钚钡钣钵钸钹铂铋锛 镑镔镖 镳 闭阪陂 陛雹 霸 靶 鞭鞴 颁 飑飙飚 饱饼饽 驳骠 髀髌 髟 鬓 魃 鲅 鲍 鳊鳔鳖 鸨鹁鹎 鼻 龅 "; arrInitialChart[2]="丑 丛丞串 乘 亍产仇从仓 传伥伧 侈 侧侪 促俦 倡 偿 储催 傺 充 冁册冲凑 出刂 刍创初 刹刺 匆 厂厕厝厨 参叉 叱 吃 吵吹呈 呲哧唇 唱啐 啜啻 喘 嗔嗤 嘈 嘬嘲 噌 嚓 囱 场坼垂 城埕 塍 墀 处 姹 娼 婵 媸嫦 存 孱宠 宸 察寸尘尝尺层 屮 岑岔 崇 崔 嵯 巛川巢 差帱常 床 廛 弛 彩 彳彻徂 徜 忏忖忡 忱怅怆怊 怵 恻 悴 惆 惝惨惩惭 愁 慈 憧 憷 成 戳才扯承抄 抻抽 拆持挫 捶 掣措掺插揣 搀搋搐搓搽 摧 撑 撤 撮撺 操擦 敕敞斥 昌春昶晁晨 曹 曾朝 杈材村 杵 枞枨 查柴 柽 棰 椽椿楚楮楱榇 榱 槌槎槽 樗 橙橱 檫 次 此 殂残 毳氅氚汆汊 池沉 沧 测 涔 淙淬淳 滁 漕 潮 潺 澄澈 澶 灿炊炒炽 焯 爨 猖猜猝 猹 琛 琮 璀璁璨 瓷 畅畜畴 疮疵 痤痴 瘁 瘛 瘥 瘳 皴 眵 睬 瞅 瞠 矗矬砗础 碜碴磁磋 礤 祠 禅 秤称程稠 穿 窗 窜 笞 策 筹 篡 篪 簇 粗粢粲粹糍糙 纯绌绰绸缠 羼 翅 翠 耖 耻 聪 肠 脆脞 腠 膪 臣臭 舂舛舡舱船 艚艟 艹 苁苌苍茈茌 茨茬茶茺 草 莼 菖 菜萃 葱蒇 蔟蔡 藏 虫虿 蚕蚩蛏 蜍 蝉蝽 螬螭 蟾 蠢 衩衬 裁裎 褚褫 觇 触 词诚诧谄谌谗谶豉 豺 财赐赤 趁超 踌踔踟踩 踹蹉 蹙蹭蹰蹴 蹿躇 躔 车辍辏 辞 辰 迟 逞 遄 郴 酬酲醇醋 采 钏钗钞铖铛铲铳锄锉错 锤锸镡镩镲 闯阊阐 陈 除陲 雌雏 雠 颤 餐 饬馇馋 驰骋骖骢骣 鬯魑 鲳 鸱鹑鹚 鹾 黜黪 齿龀龊 "; arrInitialChart[3]="丁东 丢丶丹 亻仃代 佃但低侗 倒 傣 儋 兑党兜 典冬冻凋 凳凼刀刁 到 剁 动 单卩 叠叨叮叼 吊 吨呆 咄 咚哆哒哚 啖 啶 嗒嗲嘀 嘟 噔 地 坫坻 垌 垛 垤垫 埭 堆堕堞堤堵 墩 夂多大夺 奠 妒 妲 娣 嫡 宕定对导 岛岱岽 峒 嶝 巅 帝带 底店度 弟 弹当 待得 德忉怛 怠怼 恫 悼 惦 惮惰 憝 懂 戥戴 打 抖抵担 挡捣 掂掇掉 掸 揲 搭 敌 敦 斗 断 旦 朵 杜 柢 栋 档 棣 椟 椴 歹殆殚 段殿 毒 氐氘氡 氮 沌沲 洞 涤 淀 淡渎渡滇 滴 澹 灯炖 点 煅 爹 牍牒 犊 狄 独 玎 玳玷 瓞 甙电甸町 疔疸痘 瘅 瘩 癜癫 登的 盗 盯盹盾眈 睇督睹 瞪短 砀 砘砥硐碇碉碓碘碟 碲 磴 礅 祷 稻 窦 端 笃 笛笪第等答 箪 篼 簖 簟 簦 籴 纛绐 缍缎缔 羝 耋耵耷 耽聃 肚 胆胨胴 腚 舵 芏 荡 荻 菪 萏 董 蒂 蔸 蚪 蛋 蝶 蠹 袋 裆 裰 褡 觌 订诋诞读谍谛谠 豆 貂 贷赌赕 趸跌 跺 踮踱 蹀蹈 蹬蹲 躲 达迨迪迭 递 逗逮遁道 邓邸 郸都 酊 钉钓钝钿铎铞铤铥铫锝锭锻镀镝镦镫 队 阽 陡 雕 靛 靼鞑 顶顿颠 骶髑 鲷鲽 鸫 黛黩 鼎 "; arrInitialChart[4]=" 二 佴 俄 儿 厄呃 唔嗯噩 垩 娥 婀尔屙 峨 恩恶 愕 扼 摁 洱 珥 而耳 腭苊 莪萼蒽 蛾 讹诶谔 贰 轭 迩 遏 鄂 铒锇锷阏 颚额 饵饿 鲕鳄 鸸鹅鹗 "; arrInitialChart[5]="丰 乏 付 份仿伏伐 俘俯 俸 偾傅 冯 凡 凤 凫 分 副 匐 匪 反发吠否吩呋 咐 唪啡 坊 坟 垡 复夫奉奋 妃妇 妨 孚孵富 封 峰 帆 幅幞幡 府废 弗 忿 怫悱愤 房扉 扶抚拂拊 攵放敷斐斧方 服 枋 枫 桴 梵 棼 榧樊 氛氟 汾沣 沸法泛 浮涪 淝 滏 瀵 烦 烽焚 燔父 犭犯狒 珐 甫 畈 番疯 痱 矾 砜砝砩 祓 福 稃 符 筏 篚 粉粪 繁 纷纺绂绋绯缚缝缶 罘罚 翡翻肤肥 肪肺 腐腑腓腹 舫 艴芙 芬芳芾苻 范茯 莩菔菲 葑 蕃 藩 蘩 蚨 蜂蜉蜚 蝠蝮 袱 覆 讣讽访诽 负贩费赋 赙赴趺跗 蹯 辅辐 返逢 邡 郛 酆酚 釜 钒钫锋镄 阀阜防附 霏 非 风 飞 饭 馥 驸 鲂鲋鲱鲼鳆 麸 黻黼 鼢 "; arrInitialChart[6]="丐个乖 亘 估伽佝 供 倌 光 公共关冈 冠 刚刮 刽刿剐 割 功 勾 匦 卦 古 各 告呙呱呷咕咣咯哏哥哽哿 嗝 嘎嘏 噶 固 国 圪圭坩 垓 垢埂埚 塥 够 妫姑 媾 孤宄官宫 寡尕尜尬 尴 岗 岣 崞崮工巩 帼 干 广 庋庚 弓彀 归 怪 恭 惯 感 戆戈 戤 拐拱 挂 掴 掼 搁 搞搿 擀 改攻故 敢旮旰 晷更杆 杠杲构果 枸柑柜 根格桂桄桧梏梗棍 棺椁 概 槁 槔 橄 歌毂 汞汩沟沽 泔 涫 淦港 溉 滚 澉 灌 炅 牯 牿 犷狗猓 珙 瑰 瓜甘 疙疳 痼 癸皈皋 盖盥 睾 瞽矸硅硌 磙 秆 稿 竿 笱 筻 箍 管 篙篝 簋 糕 纥纲绀给绠绲缑缟缸 罐 罟罡 羔 羹 耕耿聒 肛肝股肱胍胱胳 膈膏臌 舸艮 苟苷 茛 莞菇 菰葛 藁虢虼蚣蛄蛊 蜾蝈 衮 袼 裹 褂 观规觏觚 觥 诂诖诟诡该诰谷 贡购贯贵赅赓赣赶 跟跪 躬 轨轱辊辜 过逛 遘 郜 郭酐酤 钆钙钢钩钴铬锅锆锢镉镐 闺阁 陔隔雇 革 鞲 顾 馆 馘 骨 骼 高 鬲 鬼 鲑鲠鲧鲴鳏鳜 鸪鸹鸽 鹘鹳 鼓 龚龟"; arrInitialChart[7]=" 乎 互亥亨 伙会 何 侯 候 冱 凰函 划 劐劾化 卉华 厚 号 合后 含 吼呵呼 和 咴哄哈哕哗 哼 唤唬唿 喉喊 喙 喝 嗥嗨嗬 嘿 嚆嚎 嚯 回囫 圜坏 堠 壑壕 壶 夥 奂 好 婚 孩宏 宦害 寒 寰 岵 幌 幻 弘弧 彗 很徊後徨 徽 忽怀 怙 恍 恒恚 恢恨 悍悔 患惑 惚惠惶 慌慧 憨憾 或 户 戽扈 护 挥 捍换 撖 撼擐攉 斛 旱 昊昏 晃 晖晗 晦 曷杭 核桁桓桦 槐 槲 横 欢 毁 毫氦汇汉汗 沆 沪河 泓 洄 洪 洹活浍浑浒 浣 浩 海 涣 涵涸 淮 混 湖湟 溷 滑 滹漶 潢 濠 瀚 灏 火灰 烀 烘 烩 焊焓焕 煌 煳 狐狠 猢猴猾 獾 环珩珲 琥 瑚 璜 瓠 画 痕痪瘊 癀 皇皓 盍盒 砉 磺祜祸 禾 秽 笏 篁 篌 簧 糇糊 红 绗绘缋缓缳罕 翮 翰 耗耠 肓胡胲 航 花 茴 荒荟荤荭荷 获菏菡 萑 葫蒿 蕙蕻 薅 薨 藿蘅 虍虎 虹虺蚝 蚶蛔 蛤 蝗蝴 蟥蟪 蠖 行 衡褐 觳訇 讧讳诃诙话诨诲谎 豁 豢 豪 货贺贿赫 踝 轰轷辉还 逅 逭 遑邗 邯 郝 酣 醐醢 钬铧铪锪 锾镬 闳阂阍 阖 隍 隳 霍 韩 顸颃颌颔颢 馄 骅骇骸骺 鬟 魂 鲎 鲩鳇 鸿鹄鹕 鹤 鹱 麾 黄黉 黑 鼾 "; arrInitialChart[8]=""; arrInitialChart[9]="丌 举久 九 乩 井亟交京 仅今介件价 伎 佳佶佼 俊 俭俱 倔借倦倨 假偈健 僦僬僭僵 儆 兢具兼 冀 军 决 净 减 几 击 刭 剂 剑剞 剧剪 剿劂 加 劫劲 匠 即卷卺 厥厩及 句叫叽吉君 咀咎咭哜唧啾喈 嗟 嘉 噍噘噤 嚼 囝 圾 均 坚 基 堇 境 墼 夹 奖 奸 妓妗姐 姜 姣 姬娇娟 婕 婧 嫁嫉 孑 孓季 家寂寄 将 尖就尽局居 届屐屦 岌 岬 峻 崛 嵇 嵴 巨己 巾 廑 廴建 弪 径 徼忌 急恝 悸惊 惧 憬 戋戒 戛 戟戢 截戬扃 技 抉 拒拘 拣拮 挟挢挤 捃捐捡据捷掎掘接掬 揪 揭搅搛 撅 攫 救教敫敬 斤 旌 既 旧 晋 景晶 暨 机 杰极 枧架枷柩柬 桀桊桔桕 桨 桷 检棘 椐椒 楗楫 榉 榘 槿 橘橛 歼 殛 毽 江 汲沮 泾洁 洎洚津 浃 浆浇济 浚浸 涓涧 渐 湔 溅 激 灸炬炯烬 焦 煎 爝 爵 牮犄犋 犍 犟 狙狡 狷 獍 獗 玑玖 珈珏 琚 瑾 甲界 畸 畿 疆疖疚疥疽疾 痂痉 瘕 瘠 皆 皎 皲 监 眷 睑睛 睫 矍矜 矩矫 矶 硷 碣碱 礁 礓 祭 禁 积秸 稷稼稽 究 窖窘窭竞竟竣 竭 笄 笈 笕笳笺 筋 筠 简 箕 箭 籍 粳 精 糨 紧 纟纠级纪经结绛绝绞绢继绩缄缉缙缣缰缴 羁 羯 翦 耩 聚 肌肩肼胛胫胶脊脚 腈 腱 臼舅 舰 艰 艽 节芥芨芰 苣苴 茎 茧茭茳荆 荐荚荩莒 菁菅菊菌 葭蒋 蒹蒺蓟 蕉 蕨 蕺 藉 虮 蚧 蛟蛱 蠲 街 衿 袈 裥裾 襟 见觉觊觐角 觖 解 謇 警 计讥讦记讲讵诀诘诫谏谨谫谲 豇 贱贾赆赍赳 趼跏距 跤 践跻跽 踞踺踽蹇 蹶 轿较辑近进迥迦迳迹 遽 郊郏 郡 鄄酒酱酵 醮醵 金 鉴 钅钜钧钾铗铰锏锔锦锩键锯镌镓镜镢 间阄阱阶际降 隽集雎 霁 靖静 靳 鞠鞫 鞯 韭 颈颉颊 飓 饥饯 饺 馑 驹驾骄骏骥骱 髻 鬏 鲒鲚鲛鲣 鲫鲸 鸠鸡鹃 鹣鹪鹫 麂麇 齑 龃 "; arrInitialChart[10]=" 亏亢伉佧侃侉侩 倥 傀 克 况凯 刊 刳刻剀 勘 匡 匮 卡 口叩可吭咔咖咳 哐哙哭 啃喀喟 喹喾嗑 困 圹坎坑块坤坷垦垮 垲 堀 堪 壳 夔夸夼奎 孔客 宽寇 尻岢 岿 崆 库 康廓 开 快 忾 恐 恪恳恺悃 悝 愦愧 慨慷 戡 扛扣扩抗抠 括拷 挎 捆控 揆揩 旷昆 暌 枯柯栝 栲框 棵 楷 槛 款 氪 渴溃溘 炕 烤 犒 狂 狯 珂琨 疴 盔 看眍 眶 睽 瞌 瞰 矿 砍 磕 科 稞 空 窟窠窥 筐筘筷 箜篑 糠 纩绔缂 考 聩 肯 胩胯 脍 芤苛苦莰 葵蒈蒉蒯 蔻 蚵蛞 蝌蝰 裉 裤 诓诳课 贶 跨跬 轲逵邝 郐 酷醌 钪钶铐铠铿锎锞锟锴 闶 阃阔阚 靠 颏颗 馈馗 骒 骷 髁髋 髡 魁 鲲 龛"; arrInitialChart[11]=" 两临丽乐乱 了亮 仂仑令伦伶佬 例 侣 俐俚俩俪 倮 偻傈 僚 儡 六兰冫冷冽凉凌 凛 列刘 利 剌 力劣励劳 勒 卢卤卵历厉厘 另叻吏吕吝 呖呤咙咧 哩 唠 唳 啉 啦 啷喇 喱喽 嘞嘹 噜 囵囹 坜 垃垄垅垆 垒 埒 塄 墚 奁 姥 娄娈娌 婪 嫘嫠 孪 寥寮 尥 屡 履 岚 岭 峦 崂崃 嵝 嶙 帘 庐 廉廊 廖 廪 录 律徕 怜 恋 愣 懒懔 戮戾 抡拉拎拢拦 挛捋 捞捩 掠掳 揽搂 摞 撂 撩撸 擂 敛 斓 料 旅 旒旯 晾 朗 李来林枥 柃 柳 栊栌栎栏栗 栳 栾 梁 梨 棂 棱 椋椤 楝楞楼 榄榈榔榴 橹 檑檩 殓 氇 氯 沥沦泐泠泪泷泸泺洌洛 流浏 浪 涝涞涟 淋 渌 溜 溧滤滥滦 漉 漏漓 漤漯潋潞潦 澜 澧 濂濑 灵炉 炼烂烈烙 熘 燎 牢犁 狸狼猁 猎 猡 獠 率 玲 珑 珞 琅理琉 琏 琳 璃 璐 瓴 留略 疗疠疬痢痨 瘌瘘 瘤瘰 癃 癞 睐 瞵 砬 砺砻砾 硫 碌 磊 磷 礼 禄 离 稂稆 窿 立 笠 笼 箩 篓 篥 篮篱 簏 籁 类粒 粝 粮粱 粼 累 纶练络绫绺绿缆缕缡缧缭 罗罱 罹 羚 羸 翎 老耒耢 耧 聆聊聋联 肋胧胪脔脶 脸 腊 膂 膦 臁 舻 良 芦苈苓 茏 荔 荦 莅莉莨莱莲 菱 萝 落 蒌蒗 蓝蓠 蓼 蔹蔺 蕾 藜 虏虑 蛉蛎 蜊 蜡 蝼螂 螺 蠃 蠊 蠡 裂 裢裣 裸褛 褴 览 詈 论诔谅谰 赁赂赉赖 趔 跞路踉 躏躐 轮轳轹辂辆 辘辚 辣辽连 逦 逯逻遛 遴 邋 邻郎 郦 酃酪酹 醪醴 里量 銮 鎏 钌铃铑铝铹铼链锂锊锍锒锣镂镏镙 镣镥镧镭镰 闾阆阑 陆陇陋 陵 隆 隶 雒 雳零雷 霖 露 靓 颅领 馏 驴骆骊骝骡髅 鬣 魉 鲁鲈鲡鲢鲤鲮鳓鳞鳢 鸬 鸾鹂 鹨鹩鹭 鹿 麓 麟 黎黧 龄 龙"; arrInitialChart[12]=" 么 买 亩仫们 侔 免 冒冕 冥 劢 勉勐 募 卖卯 名吗呒 命咩咪 哞 唛 喵 嘛 嘧 坶 埋 墁墓墨 妈妙妹 姆 娩 媒 媚 嫫 嬷 孟 宓 密寐寞 岷峁 嵋 帽幂 幔幕 庙 弥弭 忙 悯 愍 慕 慢 懋懑 懵 扪抹 抿拇 描 摩 摸摹 敉敏 旄 明昧 昴 暝 暮 曼 朦木末 杩杪 枚 某 梅梦棉 楣 模 檬 殁 母 每毛 毪 民氓 汨沐 沔没沫 泌泖泯 浼 淼渑 渺 湄 湎 溟 满 漠漫漭 灭 焖 煤 熳 牟牡 牦牧 犸 猕猛猫猸 玛玟 玫珉 瑁 甍 瘼 皿盟目盲 眄眇眉 眠眯 眸 睦 瞀瞄 瞑瞒 瞢 矛码 硭 磨礞 祢 秒秘秣穆 篾 米 糜 糸 縻 绵缅缈缗缦缪 美 耄耱 脉脒 腼膜 艋 艨 芈芒 苗苜苠 茂茅茆茉茗茫 荬 莓莫 莽 萌 蒙 蓦 蔑蔓 藐 蘑 蘼 虻蚂 蛑 蛮蜜蜢 蝥 螟螨 蟆 蟊 蟒 蠓蠛 袂袤 觅 谋谜谟谧谩谬 貉貊貌 貘 贸 迈迷 邈邙 酩酶醚 鍪 钔钼铆 铭锚锰镁镅镆镘 门闵闷闽陌 霉 霾 靡面 鞔 颟 馍馒 马骂 髦 魅魔 鳗鳘 鸣鹋鹛 麋 麦 麻 麽 默 黾 "; arrInitialChart[13]="乃乜 伲佞你 侬 倪 傩 内农凝努 匿 南 呐呢呶咛 哝哪 啮 喃喏嗫 囊 囔 囡 坭垴埝 奈女奴奶 妞 妮 娘 娜 嫩 嬲 孥孬 孽宁 尼尿 年 廾廿弄弩 念忸怒 怩恁恧恼您 懦 扭 拈 拗拟拧 拿 挠挪 捏捺捻 搦 撵 攮 旎昵 暖 曩 柠柰 楠 氖 泞泥浓涅 淖 溺 牛 狃 狞猊猱 瑙甯男 疟 睨 硇 碾 糯 纳纽 耐耨聂聍 肭 胬能 脑脓脲 腩腻 臬 艿 茑 萘 蔫 蘖虐 蛲 蝻 衄衲袅 讷诺 赧 蹑 辇 逆 那 酿 钕钠钮铌铙锘镊镍镎 闹陧 难 霓 颞 馁馕 驽 鲇鲵鲶 鸟 黏鼐 "; arrInitialChart[14]="î偶 呕哦噢 怄 欧 殴沤 瓯 耦 藕 讴 鸥"; arrInitialChart[15]="丕丿乒乓仆仳 佩 俜俳 偏 僻 冖 凭 判刨剖 剽劈 匍匏匹 叛叵 呸 咆品哌 啤啪 喷 嘌 嘭噗 噼 圃 圮坡 坪坯 埔埤培堋 姘 娉 婆 媲 嫔嫖 屁屏 帔帕 平庀庖庞 彭 彷徘 怕怦 扑批 抛抨 披 拍拚拼 捧掊排 撇 擗攀 攴 旁旆 普 曝 朋 朴杷枇 枰 棚 榀 殍毗 氆氕 沛 泡泮泼 派 浦 淠 湃 湓 溥 滂漂 潘 澎 濮 炮 烹 爬 爿片 牌 牝 犏 狍 珀 琵琶璞 瓢 瓶 甓 畔 疱疲痞 癖 皤 皮 盆盘盼 睥瞟瞥 砒 砰 破 硼 碰 磐 票 笸筢 篇 篷 粕 纰缥 罴 翩 耙 耪聘 胖胚 胼 脬脯 脾 膨 芘 苤 苹 莆 菩萍 葡葩蒎 蒲 蓬 蚍 蜱螃 螵 蟛蟠 袍 袢裒裴 襻 譬评谝谱 貔 贫赔趴 跑 蹁蹒 蹼 辔辟 迫逄 邳郫 鄱配 醅 钋钯钷 铍铺锫镤镨 陪 陴 霈 霹 颇频 颦 飘 骈 骗 魄 鲆 鹏 鼙 "; arrInitialChart[16]="七且丘 乔乞 乾亓亲仟 企 佥 侨侵俅俏 倩倾 全其 凄 切 券前 劁劝劬 勤 匚 区 千 却卿 去取 吣启 呛 嗪 嘁 噙器 囚 圈圊 圻 堑 墙 奇契 妻妾 娶 嫱 寝 屈屺岂岍岐 岖 峤峭 崎 嵌 巧巯 庆 弃 强 怯 恰悄 悛悫悭 情 惬 愀愆 慊 憔憩 戕戗戚 扦 抢 拳挈 掐 掮 揿 搴 撬 擎 擒 敲 旗 晴 曲 朐 期 权 杞枪柒 栖 桤桥 棋 椠 楸 榷 槭 樯樵橇 檎檠 欠 欺 歉 歧 氍气 氢 氰 求汔 汽沁沏泅泉泣 洽 浅 淇 清 渠 湫 溱 漆 潜 炔炝 牵 犬犰 球琦琪 琴 琼 璩 畎畦 痊瘸 癯 瞧瞿 砌 硗 确 碛 磬磲 祁祈祛祺 禽秋 秦 穷穹窃窍 筇筌签箐 箝 箧 糗 綦 綮 绮绻缱缲缺 罄 羌羟 群 翘 耆 肷 脐 腔 芊芑 芡芩芪芹 苘茄茕茜 荃 荞荠 萁萋 葜 葺 蔷 蕖蕲 蘧 虔虬 蚯蛆蛐 蛩 蛴 蜞蜣蜷 蜻蝤 螓 蠼 衢衾 袷裘裙 褰襁 觑 謦 讫诎诠诮请谦谯谴 赇起 趄趋 趣 跄 跫跷 蹊 躯 轻辁迁迄 逑逡遒遣 邛邱郄 酋 醛 銎 钎钤钦钱钳铅铨锓锖锲锵锹镪 阒阕阙阡 雀 青 鞒鞘 顷颀颧 驱 骐骑骞髂 鬈 鲭 鳅 鳍 鸲鹊 麒 麴 黔 黢黥 鼽齐 龋 "; arrInitialChart[17]="乳人 仁仍仞 任 偌 儒 入 冉冗刃 嚅嚷 壤壬如妊 娆 孺 容 嵘 弱 忍 惹 戎扔 扰 揉 攘日 朊 枘染柔 桡 榕 汝洳 润 溶溽 濡 热 然 熔 燃 狨 瑞 瓤 睿 禳 稔 穰 箬 糅 纫 绒绕缛 肉 肜 芮 苒若 茸茹荏荛荣 蓉蓐蕊 蕤薷 蚋 蚺 蝾融 蠕 衽 褥 襦 认让 蹂 轫软辱 铷锐 闰阮 鞣 韧 颥 饪饶 髯 "; arrInitialChart[18]=" 三上世 丝丧丨 书 事 什仕仨 伞伤伸伺似 佘 使 侍 俗俟 倏 傻 僧僳 兕 兽 凇 凵删 刷 剩 劭势 勺匙 十卅升 厍 厦厮厶叁 双 叔受叟史司吮 呻咝 哂哨 唆唢 售唰唼商啥啬善 嗉嗍嗓嗖嗜嗣嗦 嗽嗾 嘶 噬噻 四圣 垧 埏埘 埽 塑 塞 塾墅墒 士 声 夙失奢 妁 始姒姗姝 娑 娠 婶 嫂 嬗 孀 孙 孰守宋实 审室 寺寿射少 尚尸 屎属山 岁 崧 嵊 嵩 巳 市帅师 庶 式弑 彡忄忪 怂思 恃恕 悚 愫 慎慑 戍所 扇手 扫 抒拭拴 拾 挲 捎 损 授 搔搜搠搡 摄摅 摔 撒撕擅 擞 收 散数 斯施 时 是 晌晒晟 暑 曙 朔 术杀杉杓束 松 枢 柿栅 树栓 桑 桫 梢 梭梳 森 椹 榫 槊 歃 死 殇殊 殳 毵 毹 氏 水氵 汕汜沈沙沭 泗 洒 涉涑 涩涮 淑淞 深 渖渗 湿 溯溲 滠 漱 潲 潸 澌澍 濉 灬 炻烁 烧 煞 煽 熟 熵 燧爽 牲 狩狮狲狻 猞 珊 琐 瑟 甚生 甥 甩申 畲疋 疏疝 痧 瘙瘦 盛省 眚 眭睃 睡睢瞍 瞬 矢 矧石砂 砷硕 碎 磉 示礻社祀 神祟 私秫稍税稣 穑穗 竖 竦 笋 笙笥 筛 筮筲算 簌 粟 糁 素索 纱纾绅绍绥绱绳绶缌 缩缫缮 署 羧 耍耜耸 肃 肆肾胂胜脎 腧 腮 膳 膻臊舌舍 舐舒 舜舢艄艏艘 色芍 芟苏苫 荪荽 莎 莘莳菘 菽 萨葚 蒜蒴 蓍蓑 蔌 蔬 薮薯 虱虽蚀蛇 蛳蛸蜀蜃 螋 螫蟀 蟮 衫衰 裟裳 视觞 觫 誓 讪讼设识诉试诗诜说诵谁谂谇 谡谥 豕 贳赊赎赏赛赡赦 跚 身 轼输 述送适逝速 遂 邃 邵 鄯 酥酸酾 释 钐铄铈铩铯锁锶锼 闩闪 陕 隋随 隧 隼 霎霜 韶 顺颂颡 飒 飕食 飧 饣饰饲馊馓首 驶驷 骚骟 髓 鲥鲨 鲺鳃鳋鳝 鸶 麝黍鼠 "; arrInitialChart[19]="乇 亭 他仝 体佗佟佻 倘倜 停偷 傥 僮 兔 冂 凸剃剔 厅 台叹同吐吞听 呔 唐 唾 啕 啼 嗵 嚏 团 囤 图 土 坍坛 坦坨 堂堍 塌塔 塘填 天太 头 套 她妥 婷 它 屉屠屯 帑帖 庭庹 廷 彖彤徒 忐忑忒 忝 态 恬恸悌 惕 慝 扌托投抟抬拓 拖挑挞 挺捅 掏探 推掭提 搪 摊 昙 暾 替 条 柁柝桃桐桶梃 梯 棠椭 榻 樘 橐 檀 殄 毯 氽汀 汤 汰沓 沱 泰 洮 涂 涕涛 淌淘 添 湍 溏 溻滔滕滩 潭潼 炭炱 烃 烫 焘 煺 特 獭 瑭 甜田畋 疃疼 痛 痰 瘫 眺 瞳 砣 砼 碳 祧 秃 突窕 童笤筒 箨 粜 糖 统绦绨 缇 羰 耥 肽 胎 脱腆 腾腿 膛 臀 舔 艇 苔苕茼 荼 莛 菟 萄 萜 葶 薹藤 蜓蜕蜩 螗 螳 袒 裼 褪 覃 誊 讨 调谈谭 豚 贪贴 趟 趿 跆跎跳 踏踢 蹄 蹋 躺 迢 退逃透途逖通 遢 邰郯 酞 酡酮酴 醍 醣 钍钛钭钽铁铊铜铴铽锑锬 镗 闼阗 陀陶 霆 韬 颓题 餮 饕 饧饨 驮驼骀骰 髫 鲐 鲦 鳎 鸵鹈 鼍鼗 龆"; arrInitialChart[20]=" "; arrInitialChart[21]=""; arrInitialChart[22]="万丸为 乌五亠亡 仵 伍伟伪位佤侮 倭 偎 兀 刎 剜 务 勿午 卧卫危吴吻吾 呜 味 哇 唯 喂 喔 嗡 囗围 圬坞 外 妄 妩委 威娃 娓 娲婉 婺 完宛寤 尉 尾屋 崴 嵬 巍巫帏 帷 幄 庑 弯 往 微忘 忤 怃 悟 惋惘惟 慰 戊我 挖挝挽捂 握 文 斡无旺 晚晤 望 未 杌 枉桅 梧 武歪 毋 污汪汶沃 沩 洧洼 浯涠涡 渥 温渭 湾 潍 炜 烷焐 煨 物牾 猥 猬王 玩玮 琬 璺 瓦瓮 畏 畹痦痿 瘟 皖 硪 碗 稳 窝 紊 纨纬纹维绾 网罔 翁 肟 胃 脘腕 腽 舞艉 芄 芜 芴苇 莴菀 萎 葳 蓊 蔚 蕹薇 蚊 蛙 蜈蜗 蜿 袜 诬误诿谓豌 軎 辋 迕违 逶 邬 鋈 钨 问闱闻阌阢 隈 隗 雯 雾 韦韪 顽 骛 魍魏 鲔 鹉鹜 鼯 龌 "; arrInitialChart[23]=" 下习乡 些享 亵仙 休 侠 信 修 偕 像僖 儇 兄 先兮兴 写 冼 凶刑削 勋勖 勰 匈匣 协 卸 厢县叙 吁 向吓 吸 咸 咻 响哓 哮 唏 啸喜 喧 嗅 嘘 嘻 噱 嚣 囟圩 型 埙 墟 夏 夕 奚 姓 娴 婿 媳嫌 嬉 孝 学 宣 宪 宵宿 寻 小 屑 屣 岘 岫 峋峡 崤 巡巷巽希席 幸 序庠庥 廨 弦 彐形 徇徐徙 循 心 忻性 恂 恤息 悉 悬悻 惜 想惺 懈 戌戏 掀 揎 携 撷 擤 效 斜新旋 旬旭 昔昕星 显 晓 晰 暄 暇 暹 曛曦 朽 杏 析 枭 枵柙 校栩 械 楔楦 榍 榭 樨 橡 檄 欣 欷 歆歇 歙 殉 氙 汐汛汹 泄 泫 泶泻 洗 洫洵 浔浠 消 涎 淅淆 渫渲 湘 溆 溪溴 漩 潇 瀣 炫 烯 煊 煦 熄 熊熏熙熹 燮 燹 牺犀 狎 狭 猃 猩献 獬 獯 玄现 玺 瑕璇 痃 痫 癣 皙 盱 相 眩 瞎 矽硎硒硖硝 碹 祆祥 禊 禧 秀 稀 穴穸 窨 笑 筅 筱 箫 箱 籼粞 糈 系 絮 纤线绁细绚绡绣 绪续缃 缬 罅羞羡 羲 翔翕 肖 胁 胥 胸 腥腺 膝 舄 舷 舾 芎 芗芯苋 荀荇荨 莶菥萧 萱 葙 葸 蓄 蓰 蓿 蕈 薛 薤薪 薰 藓 虚 虾 蚬 蜥蝎 螅 蟋 蟓 蟹 血衅 衔 袖 袭 襄 西 觋 训讯许 询详诩谐谑谖 谢 象 貅 贤 跣 跹 踅 躞 轩辖辛迅 选逊逍遐 邂 邢 邪 郇 郗 酗酰 醑醒醯醺 鑫 铉 铣 销锈锌锡锨镟 镶 闲阋 陉限 险陷 隙 隰 雄 雪 需霄霞 霰 靴鞋 项须顼 飨 饩饷 馅馐香 馨 驯骁 骧 髹 魈 鲜鲞鲟鳕 鸺鹇 黠 鼷 "; arrInitialChart[24]="一 与业 严丫 义乙 也 予于 云亚 亦 亿仡以仪仰 伊 优伛 伢 佑 余佚佣佯佾 侑依侥 俑 俞俣俨 倚 偃 允元兖 养 冤冶 刈刖 剡 劓 勇 匀 医 卣 印 压厌 原 厣 又友 右叶吆 吖 吟吲 呀 呓员呦 咏咦咬咽咿 哑哟 唁 唷 喁 喑 喻 嘤 噎 噫 因 园囿 圄圆圉 圯 垠垣垭垸 域 埸 堙 堰 塬墉 壅 壹 夜夤夭央 夷 奄 奕 妍妖 妤 妪 姚姨 姻娅 娱 婴 媛 媵 嫣 嬴 孕 宇 宜宥 宴 寅寓 尢 尤尧 尹 屹屿 岈 岩岳峄 峪 崖 崦 崾 嵛 嶷 已 幺幼幽 应 庸 庾 延异 弈弋 引 彝 彦 影 役徉御徭 忆 忧 怏 怡 怨 怿 恙 恹恽恿 悒 悠 悦 愈愉意 愚 愠 愿 慵 懿 扬 抑 押 拥 挹 掖 掩掾 揄 揖 揠援揶 摇 撄 攸 於 旖 昀易 映昱 晏晔晕 曜 曰 曳 月有 杨 杳 柚 样 桠 椅 椰 楹 榆 樱樾 橼 檐 欤 欲欹 殃殒 殪殷 毅 毓 氤氧氩 氲 永 沂 沅 油沿 泱泳 洇洋 浴涌 涯液 淤淫 淹 渊渔 渝 游 湮 源 溢 滟滢 演 漪 漾 潆 瀛 瀹 炀 炎 烊 烟烨 焉 焰焱 煜 熠 熨 燕 燠 爰爷 爻 牖 牙 犹 狁 狱狳狺 猗 猷 猿 玉 珧 琊 琰 瑗 瑛瑜 瑶 璎 用甬由 疑疡疣 疫痈痍 痒痖 瘀 瘐 瘗 瘾瘿 癔 盂盈益盐 眙眢 眼睚 矣 砑研砚 硬 禹禺 秧 移 窈窑 窬 窳 竽 筵 箢 粤 繇 纡约纭绎 缘缢缨罂 罨 羊 羽羿翊翌 翳翼耀耘 耶 聿肀肄 育肴胤 胭胰 腋腌 腰腴 膺臃臆 臾舀舁舆 舣 艳 艺 芋 芫芸芽 苑 苡 英茔茚 茵荑 荥荧荫药 莜莠 莸莹莺 菸 萤营萦 萸 蓣蓥 蕴 薏 虞 蚁 蚓 蚜蚰蚴 蛘 蛹 蜒 蜮蜴 蝇蝓 蝣 螈 衍 衙衣衤 袁 裔裕 要 觎 言 誉 讠议讶译诒诣语诱谀谊谒谕谚谣谳 豫 贻赝 赢 越 跃 踊 轶轺 辕 迂 迎运迓远迤 逸 逾 遇 遗 遥 邀 邑邕 邮邺郁郓 郢郧 郾 鄞鄢 酉酏 酝 酽 釉 野 钇 钥钰钺铀 铕铘铟铱银 镒镛镱 闫阅阈阉阎 阳阴 院陨 隅隐 雁雅雍 雨雩 霪 靥 鞅 韫音韵 页预颍颐 颖 颜 餍 饔 饫饮饴馀 驭驿 验 鬻魇 鱼鱿 鳐鳙 鸢鸦鸭鸯鸳鹆 鹞 鹦鹬鹰 黝黟 鼋 鼬 鼹 龈龉 龠 "; arrInitialChart[25]="丈专丬中 主之乍ໞ 争ા 仄仉仔仗 仲 众 伫 住佐 作侄侏 侦 俎 倬 债值 做 偬 兆兹 再 冢准 凿则 制 助 匝 卒卓占卮 只召 吒吱周 咂咋咒 咤 咨咫 咱哉 哲哳唑 唣 啁啄 啧 啭 喋 喳 嘱嘴 噪 在 圳 址 坐坠 埴 增 壮 奏 奘妆 妯 姊 姿 嫜 子 字孜 孳 宅 宗宙宰 寨 尊 展 峙峥 崭 崽 嵫 嶂 州左 帐帙帚帜帧 帻 幛 幢 庄 座 张 彘彰 征 徵 志忠忮 怍怎怔 总 恣 惴 憎 战 扎 执 找 抓折 拄拙招 择拯 拶拽 指 挚挣振 捉 掌 掷 揍 揸 搌 摘 摭 摺 撙 撞 撰 擢 攒 攥支政 整 斋 斟 斩斫 旃族 旨早 昃 昝 昨昭 昼 智暂 最朕 札朱 杂 杖 杼 枕 枝 枣 枳 柘柞 柱 栀 栈栉 株 栽桌桎 桢桩 梓 棕 棹 植椎 楂 榛 榨 槠 樟 樽 橥 止正 殖 毡 汁 治沼沾 注泽 洙洲 浈浊浙浞 涨 涿淄 渍渚渣 湛 滋 滓 滞 漳 潴澡 濯 灶 灼 灾 炙 炷炸 烛 照煮 燥 爪 状 狰 猪 獐 珍 珠 琢 璋 瓒 甄 甑 甾畛 疰 疹 痄症痔痣 瘃 瘴瘵 皂 皱 盅盏 直 真 眦眨 着睁 瞩瞻 知 砖砟 砦砧 砸 碡 磔 祉 祖祗祚祝 祯 禚 种 租 秩 秭 稚 稹 窀窄 窒 站 章 竹竺 笊 笫笮筑 筝 箦箴箸篆 簪 籀 籽 粘 粥 粽 糌 糟 紫 絷 纂 纣纵纸 组织终绉综绽缀缁缒缜缯缵 罩罪 置罾 翟 翥 者 耔 职 肇 肘肢肫肿胀胄 胗胙胝 脂脏 腙 膣 臧自至致 臻舟舯舳舴 芝 芷 苎 茁 茱 荮 菹 著 葬 蒸蓁 蔗 蕞 藻 蘸 蚤蚱 蛀 蛛蛭蛰 蜇蜘 螽 蟑 衷 装 褶 觜 觯 訾 詹 证诅诈诊诌诏诛诤 诸诹诼谆谘谪谮谵 豸 贞责账质贮贼贽赀赃资赈 赘赚赜赞赠赭走 赵 趑 趱 足趾 跖 踪踬 踯踵 躁躅 躜 轧转轴轵轸载轾 辄辎辗辙 辶 这 迮追逐造 遭遮 遵 邹邾郅郑 鄣 鄹 酌酎 酢 酯 醉 重 錾 针钊钟钲钻 铡铢铮铸锃锗锥 锱锺 镇镞镯 长 闸阝 阵阻阼 陟 陬 障 隹 雉 震 颛 馔 驵驺驻骓 骘骤 髭 鬃 鲰鲻鳟 鸩鸷 鹧 麈 黹 齄 龇"; var arrNumLetter={"0":"A","1":"B","2":"C","3":"D","4":"E","5":"F","6":"G","7":"H","8":"I","9":"J","10":"K","11":"L","12":"M","13":"N","14":"O","15":"P","16":"Q","17":"R","18":"S","19":"T","20":"U","21":"V","22":"W","23":"X","24":"Y","25":"Z"}; var arrPolyphone={"丁":"DZ","万":"WM","且":"QJ","乐":"YL","乘":"SC","乜":"NM","乾":"QG","亟":"QJ","仇":"QC","仡":"YG","会":"KH","传":"ZC","伺":"SC","伽":"QJG","佃":"TD","佚":"YD","佴":"NE","侗":"TD","侥":"YJ","侧":"CZ","便":"PB","俞":"YS","俟":"SQ","倘":"TC","傀":"KG","其":"QJ","兹":"ZC","冯":"PF","倘":"TC","傀":"KG","其":"QJ","兹":"ZC","冯":"PF","凹":"AW","刨":"PB","券":"XQ","刹":"SC","剡":"YS","剿":"JC","勺":"SB","匙":"SC","匹":"YP","区":"QO","卒":"ZC","单":"SDC","卡":"QK","厂":"CA","厕":"SC","厦":"XS","参":"SC","句":"JG","叨":"TD","召":"ZS","叶":"YX","吁":"YX","合":"HG","吓":"XH","吡":"PB","否":"PF","吭":"KH","呃":"E","呆":"DA","呔":"TD","呕":"O","呲":"ZC","呵":"KHA","咀":"ZJ","咖":"KG","咯":"LKG","咳":"KH","哎":"A","哗":"YH","哦":"WOE","唉":"A","唔":"WN","唬":"XH","啊":"A","喋":"ZD","喏":"RN","喔":"WO","喳":"ZC","嗄":"SA","嗌":"YA","嗒":"TD","嗳":"A","嘏":"JG","嘘":"XS","嘬":"ZC","嘲":"ZC","嘿":"MH","噱":"XJ","嚣":"XA","囝":"NJ","囤":"TD","圈":"JQ","圜":"YH","圩":"XW","圻":"YQ","均":"YJ","坏":"PH","坻":"DC","垌":"TD","埔":"PB","埤":"PB","堆":"ZD","堕":"DH","堡":"PB","塔":"TD","壳":"KQ","夯":"HB","夹":"JG","奇":"QJ","契":"XQ","姥":"ML","娩":"WM","宿":"SX","将":"QJ","尉":"YW","尢":"YW","尾":"YW","尿":"SN","屏":"PB","属":"ZS","屯":"ZT","屹":"YG","峒":"TD","峙":"ZS","峤":"QJ","嵌":"QK","巷":"XH","帱":"DC","幢":"ZC","广":"GA","廑":"QJ","弄":"NL","弹":"TD","强":"QJ","彷":"PF","忪":"ZS","恫":"TD","恶":"WE","悝":"LK","慝":"TN","戆":"ZG","戌":"XQ","戏":"XH","扁":"PB","扒":"PB","扛":"KG","扳":"PB","折":"ZS","拂":"FB","拗":"NA","括":"KG","拽":"ZY","挝":"WZ","挟":"XJ","挨":"A","捱":"A","掸":"SD","掺":"SC","提":"TD","撮":"ZC","攒":"ZC","於":"YW","无":"WM","暴":"PB","曝":"PB","曳":"ZY","曾":"CZ","朝":"ZC","期":"QJ","术":"ZS","杓":"SB","枞":"ZC","枸":"JG","柁":"TD","柜":"JG","查":"CZ","栅":"ZS","栎":"YL","栖":"XQ","栝":"KG","校":"XJ","桧":"HG","椎":"ZC","椹":"ZS","楂":"ZC","楷":"KJ","槛":"KJ","欹":"YQ","歙":"XS","殖":"ZS","氏":"ZS","汤":"TS","沈":"SC","沌":"ZD","沓":"TD","沤":"O","泊":"PB","泌":"MB","泷":"SL","泺":"PL","浅":"QJ","浍":"KH","浒":"HX","浚":"XJ","涌":"YC","涡":"WG","渑":"SM","湫":"QJ","溃":"KH","溱":"ZQ","漯":"TL","澄":"DC","澹":"TD","瀑":"PB","炅":"JG","炔":"QG","炮":"PB","焘":"TD","焯":"ZC","熬":"A","犍":"QJ","率":"SL","玢":"FB","町":"TD","畜":"CX","番":"PF","疋":"YSP","疟":"YN","瘕":"XJ","盛":"SC","省":"SX","瞧":"YQ","瞿":"QJ","矜":"QJG","石":"SD","砉":"XH","硌":"LG","磅":"PB","祢":"NM","祭":"JZ","禅":"SC","种":"ZC","秘":"MLB","稽":"JQ","窨":"YX","筠":"YJ","粘":"ZN","粥":"ZY","系":"XJ","繁":"PF","繇":"ZY","红":"HG","纤":"XQ","纥":"HG","纶":"LG","给":"GJ","绨":"TD","缉":"QJ","缏":"PB","缲":"ZSQ","缴":"JZ","翟":"ZD","耙":"PB","脯":"PF","腊":"XL","腌":"YA","膀":"PB","臭":"CX","般":"BP","舵":"TD","艾":"YA","芒":"WM","芘":"PB","芥":"JG","苎":"ZN","苕":"TS","苣":"QJ","茄":"QJ","茈":"ZC","茜":"XQ","荑":"YT","荠":"QJ","荤":"XH","荥":"YX","荨":"QX","莞":"WG","莩":"PF","菀":"YW","葚":"SR","蔓":"WM","蔚":"YW","蕉":"QJ","藏":"ZC","藓":"XL","虹":"JH","虾":"XH","蚵":"KH","蛇":"YS","蛤":"HG","蛸":"XS","蛾":"YE","蜡":"ZL","蝤":"YQ","螫":"SZ","行":"XH","衰":"SC","袷":"QJ","裨":"PB","裳":"SC","褚":"ZC","覃":"TQ","见":"JX","解":"JX","识":"SZ","说":"YS","诶":"E","调":"TD","谷":"YG","貉":"MH","贾":"JG","趄":"QJ","蹊":"XQ","蹲":"DC","车":"JC","轧":"ZYG","辟":"PB","适":"SK","遗":"YW","邪":"YX","郇":"XH","酢":"ZC","重":"ZC","钯":"PB","钿":"TD","铅":"QY","铛":"DC","铤":"TD","铫":"YD","镐":"HG","镡":"XTC","长":"ZC","阏":"YE","阚":"KH","阽":"YD","阿":"AE","陂":"PB","降":"XJ","陶":"YT","隗":"WK","隹":"ZC","霰":"XS","靓":"LJ","革":"GJ","鞘":"SQ","颈":"JG","颉":"XJ","颌":"HG","颤":"CZ","饧":"XT","驮":"TD","骀":"TD","骠":"PB","髟":"SB","鬲":"LG","魄":"TPB","鲭":"ZQ","鸟":"ND","鹄":"HG","鹘":"HG","麇":"QJ","鼽":"YQ","齐":"QJ","龈":"YK","龟":"QJG"}; /** * 获得所有结果 * @param str 输入的字符串 * @return 首字母的字符串数组 */ function letterArr(str) { var res = ""; for ( var i = 0; i < str.length; i++) { // 输入的字符串的每一个字符,作为参数调用checkCh()函数 res += checkCh(str.charAt(i)); } return res; } /** * 根据输入返回不同值 * @param ch 输入的字符串中的一个字符 * @return 不是汉字(unicode 19968-40869 为汉字),返回原字符 * @return 是汉字且为多音字,返回汉字对应的首字母字符串 * @return 是汉字且不为多音字,调用getCh函数,并返回汉字对应的首字母字符 */ function checkCh(ch) { var uni = ch.charCodeAt(0); if (uni > 40869 || uni < 19968){ // 不是汉字,返回原字符 return ch; }else{ return getCh(ch); } } /** * 根据汉字所属数组的id获取该汉字的首字母 * @param str 输入的字符串中的一个字符 * @return 字符对应的首字母 */ function getCh(ch) { var letter = ""; for ( var i = 0; i < arrInitialChart.length; i++) { if (arrInitialChart[i].indexOf(ch) >= 0) { // 当str在arrInitialChart[i]数组中 letter = arrNumLetter[i]; // letter被赋值arrNumLetter数组对应的字符首字母 } } return letter; } }; </script></html>
这种方法在多种浏览器下可用,绝大部分汉字均可获取其简拼。如果你有更好的实现方法,欢迎分享!!谢谢
新闻热点
疑难解答