文字转拼音_vba 文字转拼音 - CSDN
精华内容
参与话题
  • 首先,去微软官网下载Microsoft Visual Studio International Pack语言包,下载地址如下: ... 下载后,你会看到vsintlpack1.zip的压缩包,解压该压缩包,然后点击里面的CHSPinYinConv.msi进行安装,记住...

    首先,去微软官网下载Microsoft Visual Studio International Pack语言包,下载地址如下:

    https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=15251

    下载后,你会看到vsintlpack1.zip的压缩包,解压该压缩包,然后点击里面的CHSPinYinConv.msi进行安装,记住安装的路径,因为待会我们需要使用到里面的ChnCharInfo.dll库

    如我的安装路径是“E:\Program Files (x86)\Microsoft Visual Studio International Pack\Simplified Chinese Pin-Yin Conversion Library\ChnCharInfo.dll”

     

     

    如果你懒得下载和安装,其实我也是懒得操作上面的步骤,就是拿到一个dll库而已,麻烦。

    这里直接提供ChnCharInfo.dll库文件下载地址:

    https://pan.baidu.com/s/1X2NgKorHTLwujS6FkHqAWg

     

     

    新建winform项目,然后添加引用ChnCharInfo.dll,添加引用的教程可以参考:

    https://blog.csdn.net/xiangxianghehe/article/details/75050885

     

    winform窗格界面如下:

     

    完整代码如下:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Microsoft.International.Converters.PinYinConverter;    //需要自己添加的命名空间
    
    namespace 文字转拼音
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
            }
            /// <summary>
            /// 汉字转拼音
            /// </summary>
            /// <param name="str">要转换的文字</param>
            /// <returns>返回转换的拼音结果(小写)</returns>
            public string GetPinYin(string str) {
                StringBuilder strResult = new StringBuilder();
                foreach(var item in str){
                    try
                    {
                        ChineseChar chineseChar = new ChineseChar(item);
                        string t = chineseChar.Pinyins[0].ToString();
                        //由于返回的结果t是拼音加序号的字符串,故要去掉后面的序号
                        strResult.Append(t.Substring(0,t.Length-1));
                    }
                    catch (Exception)
                    {
                        strResult.Append(item.ToString());
                        
                    }
                   
                }
                //因为转换得到的结果是全部大写,故在这里全部转换成小写
                return strResult.ToString().ToLower();
            }
            /// <summary>
            /// 获取拼音的首字母
            /// </summary>
            /// <param name="str"></param>
            /// <returns></returns>
            public string GetFirstPinYin(string str) {
                StringBuilder strResult = new StringBuilder();
                foreach (var item in str)
                {
                    try
                    {
                        ChineseChar chineseChar = new ChineseChar(item);
                        string t = chineseChar.Pinyins[0].ToString();
                        strResult.Append(t.Substring(0, 1));
                    }
                    catch (Exception)
                    {
                        strResult.Append(item.ToString());
                       
                    }
                   
                }
                return strResult.ToString().ToLower();
            }
    
            private void btnChange_Click(object sender, EventArgs e)
            {
                //取得输入汉字输入框TextBox的文本
                string chineseInputStr=this.chineseInput.Text;
                //取得拼音的结果
                string resultStr = GetPinYin(chineseInputStr);
                //把取得拼音的结果赋值给拼音输出文本框TextBox中
                this.pinyinOut.Text = resultStr;
            }
        }
    }
    

    运行结果如下:

    源码下载:

    https://pan.baidu.com/s/1Ll_fbTT66mRSL6JY8g1Ibg

    展开全文
  • 汉字转换拼音

    千次阅读 2016-04-12 19:58:14
    汉字转换拼音进行字符串拼配,比较,排序的时候使用汉字很不方便,分享一个汉字转换英文的工具。Api调用PinyinHelper.get().getPinYin("你好"));PinyinHelper.get().getPinYin("你bSfb");PinyinHelper.get().getPinYin...

    汉字转换拼音

    这里写图片描述

    进行字符串拼配,比较,排序的时候使用汉字很不方便,分享一个汉字转换英文的工具。


    Api调用

    PinyinHelper.get().getPinYin("你好"));
    
    PinyinHelper.get().getPinYin("你bSfb");
    
    PinyinHelper.get().getPinYin("JHHihubbb");

    核心方法

    //核心方法
        /**
         * 唯一公开的方法
         *
         * @param input 输入的文字
         * @return 返回的汉字将会转化为大写英文, 如果是英文将会原样返回
         */
        public String getPinYin(String input) {
            ArrayList<Token> tokens = get(input);
            StringBuilder sb = new StringBuilder();
            if (tokens != null && tokens.size() > 0) {
                for (Token token : tokens) {
                    if (Token.PINYIN == token.type) {
                        sb.append(token.target);
                    } else {
                        sb.append(token.source);
                    }
                }
            }
            return sb.toString();
        }

    附源码一份

    package com.march.libs.helper;
    
    /**
     * CdLibsTest     com.march.libs.helper
     * Created by 陈栋 on 16/3/28.
     * 功能:
     */
    
    import android.text.TextUtils;
    import android.util.Log;
    
    import java.text.Collator;
    import java.util.ArrayList;
    import java.util.Locale;
    
    public class PinyinHelper {
        private static final String TAG = "HanziToPinyin";
    
        private static final boolean DEBUG = false;
    
        private static final char[] UNIHANS = {
                '\u963f', '\u54ce', '\u5b89', '\u80ae', '\u51f9', '\u516b',
                '\u6300', '\u6273', '\u90a6', '\u52f9', '\u9642', '\u5954',
                '\u4f3b', '\u5c44', '\u8fb9', '\u706c', '\u618b', '\u6c43',
                '\u51ab', '\u7676', '\u5cec', '\u5693', '\u5072', '\u53c2',
                '\u4ed3', '\u64a1', '\u518a', '\u5d7e', '\u66fd', '\u66fe',
                '\u5c64', '\u53c9', '\u8286', '\u8fbf', '\u4f25', '\u6284',
                '\u8f66', '\u62bb', '\u6c88', '\u6c89', '\u9637', '\u5403',
                '\u5145', '\u62bd', '\u51fa', '\u6b3b', '\u63e3', '\u5ddb',
                '\u5205', '\u5439', '\u65fe', '\u9034', '\u5472', '\u5306',
                '\u51d1', '\u7c97', '\u6c46', '\u5d14', '\u90a8', '\u6413',
                '\u5491', '\u5446', '\u4e39', '\u5f53', '\u5200', '\u561a',
                '\u6265', '\u706f', '\u6c10', '\u55f2', '\u7538', '\u5201',
                '\u7239', '\u4e01', '\u4e1f', '\u4e1c', '\u543a', '\u53be',
                '\u8011', '\u8968', '\u5428', '\u591a', '\u59b8', '\u8bf6',
                '\u5940', '\u97a5', '\u513f', '\u53d1', '\u5e06', '\u531a',
                '\u98de', '\u5206', '\u4e30', '\u8985', '\u4ecf', '\u7d11',
                '\u4f15', '\u65ee', '\u4f85', '\u7518', '\u5188', '\u768b',
                '\u6208', '\u7ed9', '\u6839', '\u522f', '\u5de5', '\u52fe',
                '\u4f30', '\u74dc', '\u4e56', '\u5173', '\u5149', '\u5f52',
                '\u4e28', '\u5459', '\u54c8', '\u548d', '\u4f44', '\u592f',
                '\u8320', '\u8bc3', '\u9ed2', '\u62eb', '\u4ea8', '\u5677',
                '\u53ff', '\u9f41', '\u4e6f', '\u82b1', '\u6000', '\u72bf',
                '\u5ddf', '\u7070', '\u660f', '\u5419', '\u4e0c', '\u52a0',
                '\u620b', '\u6c5f', '\u827d', '\u9636', '\u5dfe', '\u5755',
                '\u5182', '\u4e29', '\u51e5', '\u59e2', '\u5658', '\u519b',
                '\u5494', '\u5f00', '\u520a', '\u5ffc', '\u5c3b', '\u533c',
                '\u808e', '\u52a5', '\u7a7a', '\u62a0', '\u625d', '\u5938',
                '\u84af', '\u5bbd', '\u5321', '\u4e8f', '\u5764', '\u6269',
                '\u5783', '\u6765', '\u5170', '\u5577', '\u635e', '\u808b',
                '\u52d2', '\u5d1a', '\u5215', '\u4fe9', '\u5941', '\u826f',
                '\u64a9', '\u5217', '\u62ce', '\u5222', '\u6e9c', '\u56d6',
                '\u9f99', '\u779c', '\u565c', '\u5a08', '\u7567', '\u62a1',
                '\u7f57', '\u5463', '\u5988', '\u57cb', '\u5ada', '\u7264',
                '\u732b', '\u4e48', '\u5445', '\u95e8', '\u753f', '\u54aa',
                '\u5b80', '\u55b5', '\u4e5c', '\u6c11', '\u540d', '\u8c2c',
                '\u6478', '\u54de', '\u6bea', '\u55ef', '\u62cf', '\u8149',
                '\u56e1', '\u56d4', '\u5b6c', '\u7592', '\u5a1e', '\u6041',
                '\u80fd', '\u59ae', '\u62c8', '\u5b22', '\u9e1f', '\u634f',
                '\u56dc', '\u5b81', '\u599e', '\u519c', '\u7fba', '\u5974',
                '\u597b', '\u759f', '\u9ec1', '\u90cd', '\u5594', '\u8bb4',
                '\u5991', '\u62cd', '\u7705', '\u4e53', '\u629b', '\u5478',
                '\u55b7', '\u5309', '\u4e15', '\u56e8', '\u527d', '\u6c15',
                '\u59d8', '\u4e52', '\u948b', '\u5256', '\u4ec6', '\u4e03',
                '\u6390', '\u5343', '\u545b', '\u6084', '\u767f', '\u4eb2',
                '\u72c5', '\u828e', '\u4e18', '\u533a', '\u5cd1', '\u7f3a',
                '\u590b', '\u5465', '\u7a63', '\u5a06', '\u60f9', '\u4eba',
                '\u6254', '\u65e5', '\u8338', '\u53b9', '\u909a', '\u633c',
                '\u5827', '\u5a51', '\u77a4', '\u637c', '\u4ee8', '\u6be2',
                '\u4e09', '\u6852', '\u63bb', '\u95aa', '\u68ee', '\u50e7',
                '\u6740', '\u7b5b', '\u5c71', '\u4f24', '\u5f30', '\u5962',
                '\u7533', '\u8398', '\u6552', '\u5347', '\u5c38', '\u53ce',
                '\u4e66', '\u5237', '\u8870', '\u95e9', '\u53cc', '\u8c01',
                '\u542e', '\u8bf4', '\u53b6', '\u5fea', '\u635c', '\u82cf',
                '\u72fb', '\u590a', '\u5b59', '\u5506', '\u4ed6', '\u56fc',
                '\u574d', '\u6c64', '\u5932', '\u5fd1', '\u71a5', '\u5254',
                '\u5929', '\u65eb', '\u5e16', '\u5385', '\u56f2', '\u5077',
                '\u51f8', '\u6e4d', '\u63a8', '\u541e', '\u4e47', '\u7a75',
                '\u6b6a', '\u5f2f', '\u5c23', '\u5371', '\u6637', '\u7fc1',
                '\u631d', '\u4e4c', '\u5915', '\u8672', '\u4eda', '\u4e61',
                '\u7071', '\u4e9b', '\u5fc3', '\u661f', '\u51f6', '\u4f11',
                '\u5401', '\u5405', '\u524a', '\u5743', '\u4e2b', '\u6079',
                '\u592e', '\u5e7a', '\u503b', '\u4e00', '\u56d9', '\u5e94',
                '\u54df', '\u4f63', '\u4f18', '\u625c', '\u56e6', '\u66f0',
                '\u6655', '\u7b60', '\u7b7c', '\u5e00', '\u707d', '\u5142',
                '\u5328', '\u50ae', '\u5219', '\u8d3c', '\u600e', '\u5897',
                '\u624e', '\u635a', '\u6cbe', '\u5f20', '\u957f', '\u9577',
                '\u4f4b', '\u8707', '\u8d1e', '\u4e89', '\u4e4b', '\u5cd9',
                '\u5ea2', '\u4e2d', '\u5dde', '\u6731', '\u6293', '\u62fd',
                '\u4e13', '\u5986', '\u96b9', '\u5b92', '\u5353', '\u4e72',
                '\u5b97', '\u90b9', '\u79df', '\u94bb', '\u539c', '\u5c0a',
                '\u6628', '\u5159', '\u9fc3', '\u9fc4',};
    
        private static final byte[][] PINYINS = {
                {65, 0, 0, 0, 0, 0}, {65, 73, 0, 0, 0, 0},
                {65, 78, 0, 0, 0, 0}, {65, 78, 71, 0, 0, 0},
                {65, 79, 0, 0, 0, 0}, {66, 65, 0, 0, 0, 0},
                {66, 65, 73, 0, 0, 0}, {66, 65, 78, 0, 0, 0},
                {66, 65, 78, 71, 0, 0}, {66, 65, 79, 0, 0, 0},
                {66, 69, 73, 0, 0, 0}, {66, 69, 78, 0, 0, 0},
                {66, 69, 78, 71, 0, 0}, {66, 73, 0, 0, 0, 0},
                {66, 73, 65, 78, 0, 0}, {66, 73, 65, 79, 0, 0},
                {66, 73, 69, 0, 0, 0}, {66, 73, 78, 0, 0, 0},
                {66, 73, 78, 71, 0, 0}, {66, 79, 0, 0, 0, 0},
                {66, 85, 0, 0, 0, 0}, {67, 65, 0, 0, 0, 0},
                {67, 65, 73, 0, 0, 0}, {67, 65, 78, 0, 0, 0},
                {67, 65, 78, 71, 0, 0}, {67, 65, 79, 0, 0, 0},
                {67, 69, 0, 0, 0, 0}, {67, 69, 78, 0, 0, 0},
                {67, 69, 78, 71, 0, 0}, {90, 69, 78, 71, 0, 0},
                {67, 69, 78, 71, 0, 0}, {67, 72, 65, 0, 0, 0},
                {67, 72, 65, 73, 0, 0}, {67, 72, 65, 78, 0, 0},
                {67, 72, 65, 78, 71, 0}, {67, 72, 65, 79, 0, 0},
                {67, 72, 69, 0, 0, 0}, {67, 72, 69, 78, 0, 0},
                {83, 72, 69, 78, 0, 0}, {67, 72, 69, 78, 0, 0},
                {67, 72, 69, 78, 71, 0}, {67, 72, 73, 0, 0, 0},
                {67, 72, 79, 78, 71, 0}, {67, 72, 79, 85, 0, 0},
                {67, 72, 85, 0, 0, 0}, {67, 72, 85, 65, 0, 0},
                {67, 72, 85, 65, 73, 0}, {67, 72, 85, 65, 78, 0},
                {67, 72, 85, 65, 78, 71}, {67, 72, 85, 73, 0, 0},
                {67, 72, 85, 78, 0, 0}, {67, 72, 85, 79, 0, 0},
                {67, 73, 0, 0, 0, 0}, {67, 79, 78, 71, 0, 0},
                {67, 79, 85, 0, 0, 0}, {67, 85, 0, 0, 0, 0},
                {67, 85, 65, 78, 0, 0}, {67, 85, 73, 0, 0, 0},
                {67, 85, 78, 0, 0, 0}, {67, 85, 79, 0, 0, 0},
                {68, 65, 0, 0, 0, 0}, {68, 65, 73, 0, 0, 0},
                {68, 65, 78, 0, 0, 0}, {68, 65, 78, 71, 0, 0},
                {68, 65, 79, 0, 0, 0}, {68, 69, 0, 0, 0, 0},
                {68, 69, 78, 0, 0, 0}, {68, 69, 78, 71, 0, 0},
                {68, 73, 0, 0, 0, 0}, {68, 73, 65, 0, 0, 0},
                {68, 73, 65, 78, 0, 0}, {68, 73, 65, 79, 0, 0},
                {68, 73, 69, 0, 0, 0}, {68, 73, 78, 71, 0, 0},
                {68, 73, 85, 0, 0, 0}, {68, 79, 78, 71, 0, 0},
                {68, 79, 85, 0, 0, 0}, {68, 85, 0, 0, 0, 0},
                {68, 85, 65, 78, 0, 0}, {68, 85, 73, 0, 0, 0},
                {68, 85, 78, 0, 0, 0}, {68, 85, 79, 0, 0, 0},
                {69, 0, 0, 0, 0, 0}, {69, 73, 0, 0, 0, 0},
                {69, 78, 0, 0, 0, 0}, {69, 78, 71, 0, 0, 0},
                {69, 82, 0, 0, 0, 0}, {70, 65, 0, 0, 0, 0},
                {70, 65, 78, 0, 0, 0}, {70, 65, 78, 71, 0, 0},
                {70, 69, 73, 0, 0, 0}, {70, 69, 78, 0, 0, 0},
                {70, 69, 78, 71, 0, 0}, {70, 73, 65, 79, 0, 0},
                {70, 79, 0, 0, 0, 0}, {70, 79, 85, 0, 0, 0},
                {70, 85, 0, 0, 0, 0}, {71, 65, 0, 0, 0, 0},
                {71, 65, 73, 0, 0, 0}, {71, 65, 78, 0, 0, 0},
                {71, 65, 78, 71, 0, 0}, {71, 65, 79, 0, 0, 0},
                {71, 69, 0, 0, 0, 0}, {71, 69, 73, 0, 0, 0},
                {71, 69, 78, 0, 0, 0}, {71, 69, 78, 71, 0, 0},
                {71, 79, 78, 71, 0, 0}, {71, 79, 85, 0, 0, 0},
                {71, 85, 0, 0, 0, 0}, {71, 85, 65, 0, 0, 0},
                {71, 85, 65, 73, 0, 0}, {71, 85, 65, 78, 0, 0},
                {71, 85, 65, 78, 71, 0}, {71, 85, 73, 0, 0, 0},
                {71, 85, 78, 0, 0, 0}, {71, 85, 79, 0, 0, 0},
                {72, 65, 0, 0, 0, 0}, {72, 65, 73, 0, 0, 0},
                {72, 65, 78, 0, 0, 0}, {72, 65, 78, 71, 0, 0},
                {72, 65, 79, 0, 0, 0}, {72, 69, 0, 0, 0, 0},
                {72, 69, 73, 0, 0, 0}, {72, 69, 78, 0, 0, 0},
                {72, 69, 78, 71, 0, 0}, {72, 77, 0, 0, 0, 0},
                {72, 79, 78, 71, 0, 0}, {72, 79, 85, 0, 0, 0},
                {72, 85, 0, 0, 0, 0}, {72, 85, 65, 0, 0, 0},
                {72, 85, 65, 73, 0, 0}, {72, 85, 65, 78, 0, 0},
                {72, 85, 65, 78, 71, 0}, {72, 85, 73, 0, 0, 0},
                {72, 85, 78, 0, 0, 0}, {72, 85, 79, 0, 0, 0},
                {74, 73, 0, 0, 0, 0}, {74, 73, 65, 0, 0, 0},
                {74, 73, 65, 78, 0, 0}, {74, 73, 65, 78, 71, 0},
                {74, 73, 65, 79, 0, 0}, {74, 73, 69, 0, 0, 0},
                {74, 73, 78, 0, 0, 0}, {74, 73, 78, 71, 0, 0},
                {74, 73, 79, 78, 71, 0}, {74, 73, 85, 0, 0, 0},
                {74, 85, 0, 0, 0, 0}, {74, 85, 65, 78, 0, 0},
                {74, 85, 69, 0, 0, 0}, {74, 85, 78, 0, 0, 0},
                {75, 65, 0, 0, 0, 0}, {75, 65, 73, 0, 0, 0},
                {75, 65, 78, 0, 0, 0}, {75, 65, 78, 71, 0, 0},
                {75, 65, 79, 0, 0, 0}, {75, 69, 0, 0, 0, 0},
                {75, 69, 78, 0, 0, 0}, {75, 69, 78, 71, 0, 0},
                {75, 79, 78, 71, 0, 0}, {75, 79, 85, 0, 0, 0},
                {75, 85, 0, 0, 0, 0}, {75, 85, 65, 0, 0, 0},
                {75, 85, 65, 73, 0, 0}, {75, 85, 65, 78, 0, 0},
                {75, 85, 65, 78, 71, 0}, {75, 85, 73, 0, 0, 0},
                {75, 85, 78, 0, 0, 0}, {75, 85, 79, 0, 0, 0},
                {76, 65, 0, 0, 0, 0}, {76, 65, 73, 0, 0, 0},
                {76, 65, 78, 0, 0, 0}, {76, 65, 78, 71, 0, 0},
                {76, 65, 79, 0, 0, 0}, {76, 69, 0, 0, 0, 0},
                {76, 69, 73, 0, 0, 0}, {76, 69, 78, 71, 0, 0},
                {76, 73, 0, 0, 0, 0}, {76, 73, 65, 0, 0, 0},
                {76, 73, 65, 78, 0, 0}, {76, 73, 65, 78, 71, 0},
                {76, 73, 65, 79, 0, 0}, {76, 73, 69, 0, 0, 0},
                {76, 73, 78, 0, 0, 0}, {76, 73, 78, 71, 0, 0},
                {76, 73, 85, 0, 0, 0}, {76, 79, 0, 0, 0, 0},
                {76, 79, 78, 71, 0, 0}, {76, 79, 85, 0, 0, 0},
                {76, 85, 0, 0, 0, 0}, {76, 85, 65, 78, 0, 0},
                {76, 85, 69, 0, 0, 0}, {76, 85, 78, 0, 0, 0},
                {76, 85, 79, 0, 0, 0}, {77, 0, 0, 0, 0, 0},
                {77, 65, 0, 0, 0, 0}, {77, 65, 73, 0, 0, 0},
                {77, 65, 78, 0, 0, 0}, {77, 65, 78, 71, 0, 0},
                {77, 65, 79, 0, 0, 0}, {77, 69, 0, 0, 0, 0},
                {77, 69, 73, 0, 0, 0}, {77, 69, 78, 0, 0, 0},
                {77, 69, 78, 71, 0, 0}, {77, 73, 0, 0, 0, 0},
                {77, 73, 65, 78, 0, 0}, {77, 73, 65, 79, 0, 0},
                {77, 73, 69, 0, 0, 0}, {77, 73, 78, 0, 0, 0},
                {77, 73, 78, 71, 0, 0}, {77, 73, 85, 0, 0, 0},
                {77, 79, 0, 0, 0, 0}, {77, 79, 85, 0, 0, 0},
                {77, 85, 0, 0, 0, 0}, {78, 0, 0, 0, 0, 0},
                {78, 65, 0, 0, 0, 0}, {78, 65, 73, 0, 0, 0},
                {78, 65, 78, 0, 0, 0}, {78, 65, 78, 71, 0, 0},
                {78, 65, 79, 0, 0, 0}, {78, 69, 0, 0, 0, 0},
                {78, 69, 73, 0, 0, 0}, {78, 69, 78, 0, 0, 0},
                {78, 69, 78, 71, 0, 0}, {78, 73, 0, 0, 0, 0},
                {78, 73, 65, 78, 0, 0}, {78, 73, 65, 78, 71, 0},
                {78, 73, 65, 79, 0, 0}, {78, 73, 69, 0, 0, 0},
                {78, 73, 78, 0, 0, 0}, {78, 73, 78, 71, 0, 0},
                {78, 73, 85, 0, 0, 0}, {78, 79, 78, 71, 0, 0},
                {78, 79, 85, 0, 0, 0}, {78, 85, 0, 0, 0, 0},
                {78, 85, 65, 78, 0, 0}, {78, 85, 69, 0, 0, 0},
                {78, 85, 78, 0, 0, 0}, {78, 85, 79, 0, 0, 0},
                {79, 0, 0, 0, 0, 0}, {79, 85, 0, 0, 0, 0},
                {80, 65, 0, 0, 0, 0}, {80, 65, 73, 0, 0, 0},
                {80, 65, 78, 0, 0, 0}, {80, 65, 78, 71, 0, 0},
                {80, 65, 79, 0, 0, 0}, {80, 69, 73, 0, 0, 0},
                {80, 69, 78, 0, 0, 0}, {80, 69, 78, 71, 0, 0},
                {80, 73, 0, 0, 0, 0}, {80, 73, 65, 78, 0, 0},
                {80, 73, 65, 79, 0, 0}, {80, 73, 69, 0, 0, 0},
                {80, 73, 78, 0, 0, 0}, {80, 73, 78, 71, 0, 0},
                {80, 79, 0, 0, 0, 0}, {80, 79, 85, 0, 0, 0},
                {80, 85, 0, 0, 0, 0}, {81, 73, 0, 0, 0, 0},
                {81, 73, 65, 0, 0, 0}, {81, 73, 65, 78, 0, 0},
                {81, 73, 65, 78, 71, 0}, {81, 73, 65, 79, 0, 0},
                {81, 73, 69, 0, 0, 0}, {81, 73, 78, 0, 0, 0},
                {81, 73, 78, 71, 0, 0}, {81, 73, 79, 78, 71, 0},
                {81, 73, 85, 0, 0, 0}, {81, 85, 0, 0, 0, 0},
                {81, 85, 65, 78, 0, 0}, {81, 85, 69, 0, 0, 0},
                {81, 85, 78, 0, 0, 0}, {82, 65, 78, 0, 0, 0},
                {82, 65, 78, 71, 0, 0}, {82, 65, 79, 0, 0, 0},
                {82, 69, 0, 0, 0, 0}, {82, 69, 78, 0, 0, 0},
                {82, 69, 78, 71, 0, 0}, {82, 73, 0, 0, 0, 0},
                {82, 79, 78, 71, 0, 0}, {82, 79, 85, 0, 0, 0},
                {82, 85, 0, 0, 0, 0}, {82, 85, 65, 0, 0, 0},
                {82, 85, 65, 78, 0, 0}, {82, 85, 73, 0, 0, 0},
                {82, 85, 78, 0, 0, 0}, {82, 85, 79, 0, 0, 0},
                {83, 65, 0, 0, 0, 0}, {83, 65, 73, 0, 0, 0},
                {83, 65, 78, 0, 0, 0}, {83, 65, 78, 71, 0, 0},
                {83, 65, 79, 0, 0, 0}, {83, 69, 0, 0, 0, 0},
                {83, 69, 78, 0, 0, 0}, {83, 69, 78, 71, 0, 0},
                {83, 72, 65, 0, 0, 0}, {83, 72, 65, 73, 0, 0},
                {83, 72, 65, 78, 0, 0}, {83, 72, 65, 78, 71, 0},
                {83, 72, 65, 79, 0, 0}, {83, 72, 69, 0, 0, 0},
                {83, 72, 69, 78, 0, 0}, {88, 73, 78, 0, 0, 0},
                {83, 72, 69, 78, 0, 0}, {83, 72, 69, 78, 71, 0},
                {83, 72, 73, 0, 0, 0}, {83, 72, 79, 85, 0, 0},
                {83, 72, 85, 0, 0, 0}, {83, 72, 85, 65, 0, 0},
                {83, 72, 85, 65, 73, 0}, {83, 72, 85, 65, 78, 0},
                {83, 72, 85, 65, 78, 71}, {83, 72, 85, 73, 0, 0},
                {83, 72, 85, 78, 0, 0}, {83, 72, 85, 79, 0, 0},
                {83, 73, 0, 0, 0, 0}, {83, 79, 78, 71, 0, 0},
                {83, 79, 85, 0, 0, 0}, {83, 85, 0, 0, 0, 0},
                {83, 85, 65, 78, 0, 0}, {83, 85, 73, 0, 0, 0},
                {83, 85, 78, 0, 0, 0}, {83, 85, 79, 0, 0, 0},
                {84, 65, 0, 0, 0, 0}, {84, 65, 73, 0, 0, 0},
                {84, 65, 78, 0, 0, 0}, {84, 65, 78, 71, 0, 0},
                {84, 65, 79, 0, 0, 0}, {84, 69, 0, 0, 0, 0},
                {84, 69, 78, 71, 0, 0}, {84, 73, 0, 0, 0, 0},
                {84, 73, 65, 78, 0, 0}, {84, 73, 65, 79, 0, 0},
                {84, 73, 69, 0, 0, 0}, {84, 73, 78, 71, 0, 0},
                {84, 79, 78, 71, 0, 0}, {84, 79, 85, 0, 0, 0},
                {84, 85, 0, 0, 0, 0}, {84, 85, 65, 78, 0, 0},
                {84, 85, 73, 0, 0, 0}, {84, 85, 78, 0, 0, 0},
                {84, 85, 79, 0, 0, 0}, {87, 65, 0, 0, 0, 0},
                {87, 65, 73, 0, 0, 0}, {87, 65, 78, 0, 0, 0},
                {87, 65, 78, 71, 0, 0}, {87, 69, 73, 0, 0, 0},
                {87, 69, 78, 0, 0, 0}, {87, 69, 78, 71, 0, 0},
                {87, 79, 0, 0, 0, 0}, {87, 85, 0, 0, 0, 0},
                {88, 73, 0, 0, 0, 0}, {88, 73, 65, 0, 0, 0},
                {88, 73, 65, 78, 0, 0}, {88, 73, 65, 78, 71, 0},
                {88, 73, 65, 79, 0, 0}, {88, 73, 69, 0, 0, 0},
                {88, 73, 78, 0, 0, 0}, {88, 73, 78, 71, 0, 0},
                {88, 73, 79, 78, 71, 0}, {88, 73, 85, 0, 0, 0},
                {88, 85, 0, 0, 0, 0}, {88, 85, 65, 78, 0, 0},
                {88, 85, 69, 0, 0, 0}, {88, 85, 78, 0, 0, 0},
                {89, 65, 0, 0, 0, 0}, {89, 65, 78, 0, 0, 0},
                {89, 65, 78, 71, 0, 0}, {89, 65, 79, 0, 0, 0},
                {89, 69, 0, 0, 0, 0}, {89, 73, 0, 0, 0, 0},
                {89, 73, 78, 0, 0, 0}, {89, 73, 78, 71, 0, 0},
                {89, 79, 0, 0, 0, 0}, {89, 79, 78, 71, 0, 0},
                {89, 79, 85, 0, 0, 0}, {89, 85, 0, 0, 0, 0},
                {89, 85, 65, 78, 0, 0}, {89, 85, 69, 0, 0, 0},
                {89, 85, 78, 0, 0, 0}, {74, 85, 78, 0, 0, 0},
                {89, 85, 78, 0, 0, 0}, {90, 65, 0, 0, 0, 0},
                {90, 65, 73, 0, 0, 0}, {90, 65, 78, 0, 0, 0},
                {90, 65, 78, 71, 0, 0}, {90, 65, 79, 0, 0, 0},
                {90, 69, 0, 0, 0, 0}, {90, 69, 73, 0, 0, 0},
                {90, 69, 78, 0, 0, 0}, {90, 69, 78, 71, 0, 0},
                {90, 72, 65, 0, 0, 0}, {90, 72, 65, 73, 0, 0},
                {90, 72, 65, 78, 0, 0}, {90, 72, 65, 78, 71, 0},
                {67, 72, 65, 78, 71, 0}, {90, 72, 65, 78, 71, 0},
                {90, 72, 65, 79, 0, 0}, {90, 72, 69, 0, 0, 0},
                {90, 72, 69, 78, 0, 0}, {90, 72, 69, 78, 71, 0},
                {90, 72, 73, 0, 0, 0}, {83, 72, 73, 0, 0, 0},
                {90, 72, 73, 0, 0, 0}, {90, 72, 79, 78, 71, 0},
                {90, 72, 79, 85, 0, 0}, {90, 72, 85, 0, 0, 0},
                {90, 72, 85, 65, 0, 0}, {90, 72, 85, 65, 73, 0},
                {90, 72, 85, 65, 78, 0}, {90, 72, 85, 65, 78, 71},
                {90, 72, 85, 73, 0, 0}, {90, 72, 85, 78, 0, 0},
                {90, 72, 85, 79, 0, 0}, {90, 73, 0, 0, 0, 0},
                {90, 79, 78, 71, 0, 0}, {90, 79, 85, 0, 0, 0},
                {90, 85, 0, 0, 0, 0}, {90, 85, 65, 78, 0, 0},
                {90, 85, 73, 0, 0, 0}, {90, 85, 78, 0, 0, 0},
                {90, 85, 79, 0, 0, 0}, {0, 0, 0, 0, 0, 0},
                {83, 72, 65, 78, 0, 0}, {0, 0, 0, 0, 0, 0},};
    
        /**
         * First and last Chinese character with known Pinyin according to zh collation
         */
        private static final String FIRST_PINYIN_UNIHAN = "\u963F";
        private static final String LAST_PINYIN_UNIHAN = "\u9FFF";
    
        private static final Collator COLLATOR = Collator.getInstance(Locale.CHINA);
    
        private static PinyinHelper sInstance;
        private final boolean mHasChinaCollator;
    
        public static class Token {
            /**
             * Separator between target string for each source char
             */
            public static final String SEPARATOR = " ";
    
            public static final int LATIN = 1;
            public static final int PINYIN = 2;
            public static final int UNKNOWN = 3;
    
            public Token() {
            }
    
            public Token(int type, String source, String target) {
                this.type = type;
                this.source = source;
                this.target = target;
            }
    
            /**
             * Type of this token, ASCII, PINYIN or UNKNOWN.
             */
            public int type;
            /**
             * Original string before translation.
             */
            public String source;
            /**
             * Translated string of source. For Han, target is corresponding Pinyin. Otherwise target is
             * original string in source.
             */
            public String target;
        }
    
        protected PinyinHelper(boolean hasChinaCollator) {
            mHasChinaCollator = hasChinaCollator;
        }
    
        public static PinyinHelper get() {
            synchronized (PinyinHelper.class) {
                if (sInstance != null) {
                    return sInstance;
                }
                final Locale locale[] = Collator.getAvailableLocales();
                for (int i = 0; i < locale.length; i++) {
                    if (locale[i].equals(Locale.CHINA)) {
                        // Do self validation just once.
                        if (DEBUG) {
                            Log.d(TAG, "Self validation. Result: " + doSelfValidation());
                        }
                        sInstance = new PinyinHelper(true);
                        return sInstance;
                    }
                }
                sInstance = new PinyinHelper(true);
                return sInstance;
            }
        }
    
    
        private static boolean doSelfValidation() {
            char lastChar = UNIHANS[0];
            String lastString = Character.toString(lastChar);
            for (char c : UNIHANS) {
                if (lastChar == c) {
                    continue;
                }
                final String curString = Character.toString(c);
                int cmp = COLLATOR.compare(lastString, curString);
                if (cmp >= 0) {
                    return false;
                }
                lastString = curString;
            }
            return true;
        }
    
        private Token getToken(char character) {
            Token token = new Token();
            final String letter = Character.toString(character);
            token.source = letter;
            int offset = -1;
            int cmp;
            if (character < 256) {
                token.type = Token.LATIN;
                token.target = letter;
                return token;
            } else {
                cmp = COLLATOR.compare(letter, FIRST_PINYIN_UNIHAN);
                if (cmp < 0) {
                    token.type = Token.UNKNOWN;
                    token.target = letter;
                    return token;
                } else if (cmp == 0) {
                    token.type = Token.PINYIN;
                    offset = 0;
                } else {
                    cmp = COLLATOR.compare(letter, LAST_PINYIN_UNIHAN);
                    if (cmp > 0) {
                        token.type = Token.UNKNOWN;
                        token.target = letter;
                        return token;
                    } else if (cmp == 0) {
                        token.type = Token.PINYIN;
                        offset = UNIHANS.length - 1;
                    }
                }
            }
    
            token.type = Token.PINYIN;
            if (offset < 0) {
                int begin = 0;
                int end = UNIHANS.length - 1;
                while (begin <= end) {
                    offset = (begin + end) / 2;
                    final String unihan = Character.toString(UNIHANS[offset]);
                    cmp = COLLATOR.compare(letter, unihan);
                    if (cmp == 0) {
                        break;
                    } else if (cmp > 0) {
                        begin = offset + 1;
                    } else {
                        end = offset - 1;
                    }
                }
            }
            if (cmp < 0) {
                offset--;
            }
            StringBuilder pinyin = new StringBuilder();
            for (int j = 0; j < PINYINS[offset].length && PINYINS[offset][j] != 0; j++) {
                pinyin.append((char) PINYINS[offset][j]);
            }
            token.target = pinyin.toString();
            if (TextUtils.isEmpty(token.target)) {
                token.type = Token.UNKNOWN;
                token.target = token.source;
            }
            return token;
        }
    
        private ArrayList<Token> get(final String input) {
            ArrayList<Token> tokens = new ArrayList<Token>();
            if (!mHasChinaCollator || TextUtils.isEmpty(input)) {
                // return empty tokens.
                return tokens;
            }
            final int inputLength = input.length();
            final StringBuilder sb = new StringBuilder();
            int tokenType = Token.LATIN;
            for (int i = 0; i < inputLength; i++) {
                final char character = input.charAt(i);
                if (character == ' ') {
                    if (sb.length() > 0) {
                        addToken(sb, tokens, tokenType);
                    }
                } else if (character < 256) {
                    if (tokenType != Token.LATIN && sb.length() > 0) {
                        addToken(sb, tokens, tokenType);
                    }
                    tokenType = Token.LATIN;
                    sb.append(character);
                } else {
                    Token t = getToken(character);
                    if (t.type == Token.PINYIN) {
                        if (sb.length() > 0) {
                            addToken(sb, tokens, tokenType);
                        }
                        tokens.add(t);
                        tokenType = Token.PINYIN;
                    } else {
                        if (tokenType != t.type && sb.length() > 0) {
                            addToken(sb, tokens, tokenType);
                        }
                        tokenType = t.type;
                        sb.append(character);
                    }
                }
            }
            if (sb.length() > 0) {
                addToken(sb, tokens, tokenType);
            }
            return tokens;
        }
    
        private void addToken(
                final StringBuilder sb, final ArrayList<Token> tokens, final int tokenType) {
            String str = sb.toString();
            tokens.add(new Token(tokenType, str, str));
            sb.setLength(0);
        }
    
    
        /**
         * 唯一公开的方法
         *
         * @param input 输入的文字
         * @return 返回的汉字将会转化为大写英文, 如果是英文将会原样返回
         */
        public String getPinYin(String input) {
            ArrayList<Token> tokens = get(input);
            StringBuilder sb = new StringBuilder();
            if (tokens != null && tokens.size() > 0) {
                for (Token token : tokens) {
                    if (Token.PINYIN == token.type) {
                        sb.append(token.target);
                    } else {
                        sb.append(token.source);
                    }
                }
            }
            return sb.toString();
        }
    }
    
    
    展开全文
  • 文字转拼音

    2020-07-30 23:31:48
    可将文字转拼音字符的Python27代码
  • 汉字转拼音例子

    2017-04-11 10:54:38
    pinyin4j是一个功能强悍的汉语拼音工具包,主要是从汉语获取各种格式和需求的拼音,功能强悍,下面看看如何使用pinyin4j。下载地址:http://pinyin4j.sourceforge.net/ package test.PinyinHanzi; import ...
    pinyin4j是一个功能强悍的汉语拼音工具包,主要是从汉语获取各种格式和需求的拼音,功能强悍,下面看看如何使用pinyin4j。下载地址:http://pinyin4j.sourceforge.net/
    

    
    package test.PinyinHanzi;
    
    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.exception.BadHanyuPinyinOutputFormatCombination; 
    
    import java.io.UnsupportedEncodingException; 
    
    /** 
    * 拼音工具 
    * 
    */ 
    public class PinyinToolkit { 
    
            /** 
             * 获取汉字串拼音首字母,英文字符不变 
             * 
             * @param chinese 汉字串 
             * @return 汉语拼音首字母 
             */ 
            public static String cn2FirstSpell(String chinese) {
                    StringBuffer pybf = new StringBuffer(); 
                    char[] arr = chinese.toCharArray(); 
                    HanyuPinyinOutputFormat defaultFormat = new HanyuPinyinOutputFormat(); 
                    defaultFormat.setCaseType(HanyuPinyinCaseType.LOWERCASE); 
                    defaultFormat.setToneType(HanyuPinyinToneType.WITHOUT_TONE); 
                    for (int i = 0; i < arr.length; i++) { 
                            if (arr[i] > 128) { 
                                    try { 
                                            String[] _t = PinyinHelper.toHanyuPinyinStringArray(arr[i], defaultFormat); 
                                            if (_t != null) { 
                                                    pybf.append(_t[0].charAt(0)); 
                                            } 
                                    } catch (BadHanyuPinyinOutputFormatCombination e) { 
                                            e.printStackTrace(); 
                                    } 
                            } else { 
                                    pybf.append(arr[i]); 
                            } 
                    } 
                    return pybf.toString().replaceAll("\\W", "").trim(); 
            } 
    
            /** 
             * 获取汉字串拼音,英文字符不变 
             * 
             * @param chinese 汉字串 
             * @return 汉语拼音 
             */ 
            public static String cn2Spell(String chinese) { 
                    StringBuffer pybf = new StringBuffer(); 
                    char[] arr = chinese.toCharArray(); 
                    HanyuPinyinOutputFormat defaultFormat = new HanyuPinyinOutputFormat(); 
                    defaultFormat.setCaseType(HanyuPinyinCaseType.LOWERCASE); 
                    defaultFormat.setToneType(HanyuPinyinToneType.WITHOUT_TONE); 
                    for (int i = 0; i < arr.length; i++) { 
                            if (arr[i] > 128) { 
                                    try { 
                                            pybf.append(PinyinHelper.toHanyuPinyinStringArray(arr[i], defaultFormat)[0]); 
                                    } catch (BadHanyuPinyinOutputFormatCombination e) { 
                                            e.printStackTrace(); 
                                    } 
                            } else { 
                                    pybf.append(arr[i]); 
                            } 
                    } 
                    return pybf.toString(); 
            } 
    
            public static void main(String[] args) throws UnsupportedEncodingException { 
                    String x = "姚明"; 
                    System.out.println(cn2FirstSpell(x)); 
                    System.out.println(cn2Spell(x)); 
            } 
    }
    


    需要用的Jar包:
    pinyin4j-2.5.0.jar
    展开全文
  • 汉字转拼音

    千次阅读 2017-11-06 16:41:52
    简单发表自己个人对这两个属性的理解,如有误欢迎指出


    项目在开发过程中, 个别的汉字需要转成拼音

    现在跟大家分享一个封装好的类,用于汉字转

    .h文件里

    #import <UIKit/UIKit.h>


    @interface ChineseToPinyin : NSObject {

        

    }


    + (NSString *)pinyinFromChiniseString:(NSString *)string;

    + (char)sortSectionTitle:(NSString *)string; 


    @end


    .m里

    #import "ChineseToPinyin.h"


    NSString *FindLetter(int nCode) {

    NSString *strValue = @"";

    switch(nCode) {

    case 6325:

    case 6436:

    case 7571:

    case 7925:

    strValue = @"A";

    break;

    case 6263:

    case 6440:

    case 7040:

    case 7208:

    case 7451:

    case 7733:

    case 7945:

    case 8616:

    strValue = @"AI";

    break;

    case 5847:

    case 5991:

    case 6278:

    case 6577:

    case 6654:

    case 7281:

    case 7907:

    case 8038:

    case 8786:

    strValue = @"AN";

    break;

    strValue = @"ANG";

    break;

    case 5974:

    case 6254:

    case 6427:

    case 6514:

    case 6658:

    case 6959:

    case 7033:

    case 7081:

    case 7365:

    case 8190:

    case 8292:

    case 8643:

    case 8701:

    case 8773:

    strValue = @"AO";

    break;

    case 6056:

    case 6135:

    case 6517:

    case 7857:

    case 8446:

    case 8649:

    case 8741:

    strValue = @"BA";

    break;

    case 6267:

    case 6334:

    case 7494:

    strValue = @"BAI";

    break;

    case 5870:

    case 5964:

    case 7851:

    case 8103:

    case 8113:

    case 8418:

    strValue = @"BAN";

    break;

    case 6182:

    case 6826:

    strValue = @"BANG";

    break;

    case 6165:

    case 7063:

    case 7650:

    case 8017:

    case 8157:

    case 8532:

    case 8621:

    strValue = @"BAO";

    break;

    case 5635:

    case 5873:

    case 5893:

    case 5993:

    case 6141:

    case 6703:

    case 7753:

    case 8039:

    case 8156:

    case 8645:

    case 8725:

    strValue = @"BEI";

    break;

    case 5946:

    case 5948:

    case 7458:

    case 7928:

    strValue = @"BEN";

    break;

    case 6452:

    case 7420:

    strValue = @"BENG";

    break;

    case 5616:

    case 5734:

    case 6074:

    case 6109:

    case 6221:

    case 6333:

    case 6357:

    case 6589:

    case 6656:

    case 6725:

    case 6868:

    case 6908:

    case 6986:

    case 6994:

    case 7030:

    case 7052:

    case 7221:

    case 7815:

    case 7873:

    case 7985:

    case 8152:

    case 8357:

    case 8375:

    case 8387:

    case 8416:

    case 8437:

    case 8547:

    case 8734:

    strValue = @"BI";

    break;

    case 5650:

    case 5945:

    case 6048:

    case 6677:

    case 6774:

    case 7134:

    case 7614:

    case 7652:

    case 7730:

    case 7760:

    case 8125:

    case 8159:

    case 8289:

    case 8354:

    case 8693:

    strValue = @"BIAN";

    break;

    case 7027:

    case 7084:

    case 7609:

    case 7613:

    case 7958:

    case 7980:

    case 8106:

    case 8149:

    case 8707:

    case 8752:

    strValue = @"BIAO";

    break;

    case 8531:

    strValue = @"BIE";

    break;

    case 5747:

    case 6557:

    case 7145:

    case 7167:

    case 7336:

    case 7375:

    case 7587:

    case 7957:

    case 8738:

    case 8762:

    strValue = @"BIN";

    break;

    case 5787:

    case 5891:

    case 6280:

    strValue = @"BING";

    break;

    case 5781:

    case 6403:

    case 6636:

    case 7362:

    case 7502:

    case 7771:

    case 7864:

    case 8030:

    case 8404:

    case 8543:

    case 8559:

    strValue = @"BO";

    break;

    case 6318:

    case 6945:

    case 7419:

    case 7446:

    case 7848:

    case 7863:

    case 8519:

    strValue = @"BU";

    break;

    case 6474:

    case 7769:

    strValue = @"CA";

    break;

    strValue = @"CAI";

    break;

    case 6978:

    case 7078:

    case 7218:

    case 8451:

    case 8785:

    strValue = @"CAN";

    break;

    case 5687:

    strValue = @"CANG";

    break;

    case 6448:

    case 6878:

    case 8309:

    case 8429:

    strValue = @"CAO";

    break;

    case 6692:

    strValue = @"CE";

    break;

    case 6515:

    case 6825:

    strValue = @"CEN";

    break;

    case 6465:

    strValue = @"CENG";

    break;

    case 6639:

    case 6766:

    case 7017:

    case 7230:

    case 7311:

    case 7322:

    case 7363:

    case 7942:

    case 7979:

    case 8135:

    strValue = @"CHA";

    break;

    case 5713:

    case 7846:

    case 8091:

    case 8218:

    strValue = @"CHAI";

    break;

    case 5770:

    case 5838:

    case 6159:

    case 6667:

    case 6893:

    case 6904:

    case 6981:

    case 7031:

    case 7086:

    case 7472:

    case 7688:

    case 7966:

    case 8324:

    case 8580:

    strValue = @"CHAN";

    break;

    case 5686:

    case 5943:

    case 6041:

    case 6137:

    case 6660:

    case 6568:

    case 6749:

    case 7029:

    case 7047:

    case 7438:

    case 7509:

    case 8680:

    strValue = @"CHANG";

    break;

    case 6687:

    case 7443:

    case 8173:

    strValue = @"CHAO";

    break;

    case 5969:

    case 7726:

    strValue = @"CHE";

    break;

    case 5840:

    case 5863:

    case 6251:

    case 6433:

    case 6923:

    case 7201:

    case 7320:

    case 7755:

    case 8619:

    strValue = @"CHEN";

    break;

    case 5609:

    case 5984:

    case 7239:

    case 7263:

    case 7583:

    case 7810:

    case 7881:

    case 7905:

    case 8146:

    case 8241:

    case 8508:

    strValue = @"CHENG";

    break;

    case 5749:

    case 6015:

    case 6061:

    case 6319:

    case 6374:

    case 6420:

    case 6445:

    case 6633:

    case 7042:

    case 7523:

    case 7787:

    case 8023:

    case 8101:

    case 8161:

    case 8231:

    case 8304:

    case 8355:

    case 8388:

    case 8489:

    case 8556:

    case 8746:

    strValue = @"CHI";

    break;

    case 6091:

    case 6671:

    case 6731:

    case 8409:

    case 8430:

    strValue = @"CHONG";

    break;

    case 5717:

    case 6492:

    case 6716:

    case 8112:

    case 8637:

    strValue = @"CHOU";

    break;

    case 5601:

    case 5927:

    case 6680:

    case 6732:

    case 7109:

    case 7238:

    case 7290:

    case 7343:

    case 8150:

    case 8260:

    case 8573:

    case 8777:

    strValue = @"CHU";

    break;

    case 6285:

    case 6408:

    case 7590:

    case 8563:

    strValue = @"CHUAI";

    break;

    case 6622:

    case 6955:

    case 7516:

    case 7843:

    case 8413:

    strValue = @"CHUAN";

    break;

    case 6675:

    strValue = @"CHUANG";

    break;

    case 5879:

    case 7302:

    case 7319:

    strValue = @"CHUI";

    break;

    case 6127:

    case 8040:

    case 8277:

    strValue = @"CHUN";

    break;

    case 7401:

    case 8554:

    case 8626:

    strValue = @"CHUO";

    break;

    strValue = @"CI";

    break;

    case 6075:

    case 6358:

    case 7684:

    case 8043:

    case 8457:

    strValue = @"4337 À≈";

    break;

    case 6042:

    case 6840:

    case 7085:

    case 7193:

    case 7214:

    case 7240:

    strValue = @"CONG";

    break;

    case 7308:

    case 7403:

    case 7577:

    strValue = @"COU";

    break;

    case 6180:

    case 6562:

    case 6607:

    case 7367:

    case 8501:

    case 8530:

    case 8577:

    strValue = @"CU";

    break;

    case 5764:

    case 6305:

    case 7664:

    case 7973:

    strValue = @"CUAN";

    break;

    case 6718:

    case 6145:

    case 6393:

    case 7213:

    case 7333:

    case 7505:

    case 8631:

    strValue = @"CUI";

    break;

    case 6666:

    case 8169:

    strValue = @"CUN";

    break;

    case 5640:

    case 6547:

    case 7566:

    case 7917:

    case 7983:

    case 8078:

    case 8526:

    case 8567:

    strValue = @"CUO";

    break;

    case 6239:

    case 6353:

    case 6410:

    case 6682:

    case 7007:

    case 8155:

    case 8346:

    case 8716:

    case 8718:

    strValue = @"DA";

    break;

    case 6004:

    case 6316:

    case 6523:

    case 6942:

    case 7110:

    case 7173:

    case 8776:

    strValue = @"DAI";

    break;

    case 5757:

    case 6144:

    case 6402:

    case 7373:

    case 7470:

    case 7781:

    case 8067:

    case 8087:

    case 8185:

    case 8376:

    strValue = @"DAN";

    break;

    case 5852:

    case 5942:

    case 6148:

    case 6920:

    case 7724:

    case 7885:

    case 8141:

    strValue = @"DANG";

    break;

    case 6322:

    case 6665:

    case 7514:

    case 8478:

    strValue = @"DAO";

    break;

    case 7929:

    strValue = @"DE";

    break;

    case 6466:

    case 6556:

    case 7413:

    case 7767:

    case 7975:

    case 8403:

    strValue = @"DENG";

    break;

    case 5621:

    case 5765:

    case 5814:

    case 5848:

    case 5901:

    case 5970:

    case 6122:

    case 6454:

    case 7023:

    case 7116:

    case 7260:

    case 7306:

    case 7475:

    case 7738:

    case 7758:

    case 7791:

    case 7965:

    case 8438:

    case 8730:

    strValue = @"DI";

    break;

    case 6439:

    strValue = @"DIA";

    break;

    case 5871:

    case 5967:

    case 6559:

    case 7172:

    case 7868:

    case 8116:

    case 8118:

    case 8401:

    case 8558:

    strValue = @"DIAN";

    break;

    case 7886:

    case 8585:

    case 8684:

    strValue = @"DIAO";

    break;

    case 5976:

    case 6006:

    case 6273:

    case 6409:

    case 7526:

    case 8012:

    case 8183:

    case 8562:

    case 8688:

    strValue = @"DIE";

    break;

    case 5674:

    case 6404:

    case 7164:

    case 7575:

    case 7754:

    case 7814:

    case 8059:

    case 8184:

    case 8490:

    strValue = @"DING";

    break;

    case 7891:

    strValue = @"DIU";

    break;

    case 5977:

    case 6343:

    case 6520:

    case 6528:

    case 7517:

    case 7543:

    case 7556:

    case 7747:

    case 8020:

    strValue = @"DONG";

    break;

    case 6190:

    case 8128:

    case 8229:

    case 8391:

    strValue = @"DOU";

    break;

    case 6022:

    case 6429:

    case 6834:

    case 7292:

    case 7525:

    case 8328:

    case 8338:

    case 8739:

    case 8782:

    strValue = @"DU";

    break;

    case 7318:

    case 7649:

    case 8393:

    strValue = @"DUAN";

    break;

    case 7701:

    case 7713:

    case 7752:

    strValue = @"DUI";

    break;

    case 6771:

    case 7632:

    case 7727:

    case 7766:

    case 7779:

    case 7970:

    case 8527:

    strValue = @"DUN";

    break;

    case 6345:

    case 6365:

    case 6785:

    case 7122:

    case 7876:

    case 8154:

    case 8566:

    strValue = @"DUO";

    break;

    case 5612:

    case 5832:

    case 5844:

    case 5949:

    case 6035:

    case 6113:

    case 6164:

    case 6332:

    case 6721:

    case 6977:

    case 7025:

    case 7378:

    case 7581:

    case 7916:

    case 7941:

    case 8042:

    case 8206:

    case 8689:

    strValue = @"E";

    break;

    case 6176:

    case 6284:

    strValue = @"EN";

    break;

    case 5706:

    case 6939:

    case 7177:

    case 7879:

    case 8025:

    case 8660:

    strValue = @"ER";

    break;

    case 5950:

    case 7732:

    strValue = @"FA";

    break;

    case 6212:

    case 6232:

    case 6506:

    case 7283:

    case 7660:

    case 7818:

    case 8576:

    strValue = @"FAN";

    break;

    case 5890:

    case 7242:

    case 7853:

    case 8419:

    case 8648:

    strValue = @"FANG";

    break;

    case 6032:

    case 6584:

    case 6713:

    case 6839:

    case 6990:

    case 7119:

    case 7328:

    case 7572:

    case 7619:

    case 7673:

    case 7948:

    case 8082:

    case 8267:

    case 8385:

    case 8468:

    case 8613:

    case 8678:

    strValue = @"FEI";

    break;

    case 5739:

    case 6915:

    case 7291:

    case 8687:

    case 8787:

    strValue = @"FEN";

    break;

    case 5726:

    case 5926:

    case 6155:

    case 6384:

    case 6767:

    case 7731:

    strValue = @"FENG";

    break;

    strValue = @"FO";

    break;

    case 8330:

    strValue = @"FOU";

    break;

    case 5775:

    case 5776:

    case 5914:

    case 6029:

    case 6062:

    case 6119:

    case 6142:

    case 6252:

    case 6327:

    case 6505:

    case 6686:

    case 6870:

    case 6985:

    case 7058:

    case 7066:

    case 7106:

    case 7108:

    case 7285:

    case 7471:

    case 7680:

    case 7741:

    case 7774:

    case 7775:

    case 7823:

    case 7991:

    case 8005:

    case 8222:

    case 8261:

    case 8280:

    case 8283:

    case 8479:

    case 8535:

    case 8538:

    case 8654:

    case 8691:

    strValue = @"FU";

    break;

    case 6246:

    case 7056:

    case 7057:

    case 7424:

    case 7837:

    strValue = @" GA";

    break;

    case 5604:

    case 5875:

    case 5982:

    case 7414:

    case 7464:

    strValue = @"GAI";

    break;

    case 5965:

    case 6053:

    case 6247:

    case 6306:

    case 6779:

    case 6838:

    case 6887:

    case 7104:

    case 7347:

    case 7426:

    case 7723:

    case 8065:

    case 8491:

    strValue = @"GAN";

    break;

    case 7716:

    case 7824:

    case 8364:

    strValue = @"GANG";

    break;

    case 5626:

    case 5830:

    case 5912:

    case 6227:

    case 7141:

    case 7332:

    case 7334:

    case 7429:

    case 7915:

    strValue = @"GAO";

    break;

    case 5610:

    case 5678:

    case 5933:

    case 5957:

    case 6010:

    case 6435:

    case 7092:

    case 7501:

    case 7585:

    case 7749:

    case 7951:

    case 8143:

    case 8220:

    case 8420:

    case 8732:

    strValue = @"GE";

    break;

    strValue = @"GEI";

    break;

    case 5608:

    case 6102:

    case 6371:

    case 8462:

    strValue = @"GEN";

    break;

    case 6376:

    case 6657:

    case 7114:

    case 8665:

    strValue = @"GENG";

    break;

    case 7178:

    case 7537:

    case 8228:

    case 8601:

    strValue = @"GONG";

    break;

    case 5694:

    case 5824:

    case 6524:

    case 6960:

    case 7037:

    case 7135:

    case 7259:

    case 7477:

    case 7616:

    case 8349:

    case 8384:

    case 8724:

    strValue = @"GOU";

    break;

    case 5637:

    case 5812:

    case 6152:

    case 6536:

    case 6773:

    case 7284:

    case 7379:

    case 7484:

    case 7486:

    case 7591:

    case 7617:

    case 7813:

    case 7825:

    case 7860:

    case 7932:

    case 8019:

    case 8083:

    case 8233:

    case 8494:

    case 8593:

    case 8681:

    case 8729:

    strValue = @"GU";

    break;

    case 5652:

    case 5820:

    case 6341:

    case 7273:

    case 7550:

    case 8027:

    strValue = @"GUA";

    break;

    strValue = @"GUAI";

    break;

    case 5736:

    case 6124:

    case 6272:

    case 6842:

    case 7834:

    case 8057:

    case 8170:

    case 8704:

    strValue = @"GUAN";

    break;

    case 6359:

    case 6578:

    case 7270:

    case 7555:

    strValue = @"GUANG";

    break;

    case 5648:

    case 5659:

    case 6649:

    case 7003:

    case 7277:

    case 7433:

    case 7448:

    case 8007:

    case 8394:

    case 8657:

    case 8712:

    strValue = @"GUI";

    break;

    case 5782:

    case 7121:

    case 7762:

    case 8671:

    strValue = @"GUN";

    break;

    case 5769:

    case 6266:

    case 6335:

    case 6494:

    case 6538:

    case 6603:

    case 7304:

    case 7529:

    case 8188:

    case 8268:

    case 8269:

    strValue = @"GUO";

    break;

    case 7894:

    strValue = @"HA";

    break;

    case 6443:

    case 7560:

    case 8516:

    strValue = @"HAI";

    break;

    case 5885:

    case 6153:

    case 6294:

    case 6759:

    case 6911:

    case 7447:

    case 7642:

    case 8192:

    case 8205:

    case 8232:

    case 8793:

    strValue = @"HAN";

    break;

    case 6776:

    case 7112:

    case 8194:

    strValue = @"HANG";

    break;

    case 6179:

    case 6222:

    case 6438:

    case 6467:

    case 6909:

    case 6916:

    case 7427:

    case 8009:

    case 8211:

    case 8226:

    strValue = @"HAO";

    break;

    case 5813:

    case 5932:

    case 5954:

    case 6432:

    case 6756:

    case 7434:

    case 7833:

    case 8202:

    case 8234:

    case 8471:

    strValue = @"HE";

    break;

    strValue = @"HEI";

    break;

    strValue = @"HEN";

    break;

    case 6231:

    case 7181:

    case 7276:

    strValue = @"HENG";

    break;

    case 5768:

    case 5774:

    case 5807:

    case 6106:

    case 6214:

    case 6216:

    case 6740:

    case 6792:

    strValue = @"HONG";

    break;

    case 6009:

    case 6565:

    case 6943:

    case 8090:

    case 8383:

    case 8455:

    case 8655:

    case 8731:

    strValue = @"HOU";

    break;

    case 5792:

    case 6392:

    case 6481:

    case 6518:

    case 6609:

    case 6679:

    case 6717:

    case 6816:

    case 6879:

    case 7190:

    case 7346:

    case 7385:

    case 7618:

    case 7635:

    case 7646:

    case 7670:

    case 7672:

    case 7679:

    case 8013:

    case 8032:

    case 8041:

    case 8055:

    case 8343:

    case 8513:

    case 8590:

    strValue = @"HU";

    break;

    case 7072:

    case 7275:

    case 7725:

    case 7892:

    strValue = @"HUA";

    break;

    case 8555:

    strValue = @"HUAI";

    break;

    case 5928:

    case 6140:

    case 6307:

    case 6487:

    case 6621:

    case 6801:

    case 6829:

    case 6881:

    case 6930:

    case 6953:

    case 7157:

    case 7944:

    case 8673:

    case 8763:

    strValue = @"HUAN";

    break;

    case 5882:

    case 6569:

    case 6850:

    case 6874:

    case 6956:

    case 7211:

    case 7533:

    case 8105:

    case 8308:

    case 8382:

    case 8692:

    strValue = @"HUANG";

    break;

    case 5822:

    case 6078:

    case 6086:

    case 6205:

    case 6352:

    case 6360:

    case 6425:

    case 6736:

    case 6807:

    case 6811:

    case 6971:

    case 7132:

    case 7185:

    case 7445:

    case 7703:

    case 8219:

    case 8319:

    case 8766:

    strValue = @"HUI";

    break;

    case 5827:

    case 6638:

    case 6752:

    case 6867:

    strValue = @"HUN";

    break;

    case 5669:

    case 6229:

    case 6311:

    case 6475:

    case 6623:

    case 7856:

    case 7933:

    case 7976:

    case 8175:

    case 8322:

    strValue = @"HUO";

    break;

    case 5629:

    case 5632:

    case 5662:

    case 5705:

    case 5742:

    case 5952:

    case 6024:

    case 6033:

    case 6193:

    case 6210:

    case 6265:

    case 6320:

    case 6350:

    case 6383:

    case 6507:

    case 6553:

    case 6809:

    case 6976:

    case 7087:

    case 7160:

    case 7165:

    case 7314:

    case 7374:

    case 7410:

    case 7411:

    case 7469:

    case 7473:

    case 7487:

    case 7620:

    case 7722:

    case 7831:

    case 7990:

    case 8002:

    case 8104:

    case 8217:

    case 8337:

    case 8339:

    case 8463:

    case 8550:

    case 8611:

    case 8661:

    case 8674:

    case 8757:

    case 8768:

    strValue = @"JI";

    break;

    case 5704:

    case 5903:

    case 6171:

    case 6521:

    case 6804:

    case 6940:

    case 7176:

    case 7409:

    case 7546:

    case 7702:

    case 7882:

    case 7956:

    case 8072:

    case 8142:

    case 8244:

    case 8353:

    case 8434:

    case 8542:

    strValue = @"JIA";

    break;

    case 5752:

    case 5841:

    case 5857:

    case 6149:

    case 6183:

    case 6286:

    case 6853:

    case 6931:

    case 6932:

    case 7144:

    case 7237:

    case 7305:

    case 7407:

    case 7415:

    case 7480:

    case 7489:

    case 7506:

    case 7576:

    case 7790:

    case 7921:

    case 8047:

    case 8148:

    case 8340:

    case 8469:

    case 8534:

    case 8561:

    case 8668:

    case 8721:

    strValue = @"JIAN";

    break;

    case 6092:

    case 6814:

    case 7113:

    case 7154:

    case 7481:

    case 7768:

    case 8180:

    case 8461:

    case 8488:

    strValue = @"JIANG";

    break;

    case 5714:

    case 5753:

    case 6020:

    case 6090:

    case 6256:

    case 6461:

    case 6572:

    case 7015:

    case 7524:

    case 8008:

    case 8052:

    case 8252:

    case 8520:

    case 8551:

    case 8662:

    strValue = @"JIAO";

    break;

    case 5806:

    case 5821:

    case 6255:

    case 6414:

    case 7028:

    case 7061:

    case 7278:

    case 7757:

    case 8060:

    case 8201:

    case 8227:

    case 8441:

    case 8658:

    case 8726:

    strValue = @"JIE";

    break;

    case 5865:

    case 6103:

    case 6132:

    case 6468:

    case 6643:

    case 6659:

    case 7138:

    case 7210:

    case 7340:

    case 7465:

    case 7478:

    case 8138:

    strValue = @"JIN";

    break;

    case 5751:

    case 5869:

    case 6128:

    case 6616:

    case 6729:

    case 6794:

    case 6941:

    case 6982:

    case 7026:

    case 7534:

    case 7554:

    case 7570:

    case 7626:

    strValue = @"JIANG";

    break;

    case 6936:

    case 7671:

    strValue = @"JIONG";

    break;

    case 5754:

    case 6417:

    case 6746:

    case 7249:

    case 7274:

    case 8015:

    case 8053:

    case 8481:

    case 8761:

    strValue = @"JIU";

    break;

    case 5738:

    case 5810:

    case 6036:

    case 6058:

    case 6076:

    case 6268:

    case 6965:

    case 6980:

    case 7202:

    case 7307:

    case 7316:

    case 7323:

    case 7357:

    case 7381:

    case 7488:

    case 7611:

    case 7850:

    case 7924:

    case 8022:

    case 8132:

    case 8153:

    case 8482:

    case 8522:

    case 8565:

    case 8620:

    case 8634:

    case 8722:

    strValue = @"JU";

    break;

    case 5918:

    case 6590:

    case 6824:

    case 7280:

    case 7835:

    case 7935:

    case 7952:

    case 8633:

    strValue = @"JUAN";

    break;

    case 5642:

    case 5667:

    case 5860:

    case 5939:

    case 6207:

    case 6421:

    case 6457:

    case 6469:

    case 6540:

    case 6617:

    case 7062:

    case 7169:

    case 7286:

    case 7351:

    case 7663:

    case 7967:

    case 8574:

    case 8591:

    strValue = @"JUE";

    break;

    case 6260:

    case 8168:

    case 8362:

    case 8769:

    strValue = @"JUN";

    break;

    case 5671:

    case 6339:

    case 7544:

    strValue = @"KA";

    break;

    case 5660:

    case 5978:

    case 6160:

    case 6673:

    case 6693:

    case 7888:

    case 7920:

    case 7939:

    strValue = @"KAI";

    break;

    case 5709:

    case 6108:

    case 7412:

    case 7772:

    case 7811:

    strValue = @"KAN";

    break;

    case 5688:

    case 6742:

    case 7854:

    strValue = @"KANG";

    break;

    case 6974:

    case 7264:

    case 7491:

    case 7877:

    strValue = @"KAO";

    break;

    case 6430:

    case 6519:

    case 6701:

    case 6859:

    case 7076:

    case 7128:

    case 7170:

    case 7380:

    case 7520:

    case 7807:

    case 7861:

    case 7930:

    case 7993:

    case 8066:

    case 8129:

    case 8204:

    case 8282:

    case 8733:

    strValue = @"KE";

    break;

    case 8144:

    strValue = @"KEN";

    break;

    case 7912:

    strValue = @"KENG";

    break;

    case 5737:

    case 6539:

    case 8377:

    strValue = @"KONG";

    break;

    case 6050:

    case 6202:

    case 6321:

    case 7778:

    case 8356:

    strValue = @"KOU";

    break;

    case 5658:

    case 6005:

    case 6423:

    case 7111:

    case 8728:

    strValue = @"KU";

    break;

    case 5708:

    strValue = @"KUA";

    break;

    case 5665:

    case 5906:

    case 6364:

    case 6586:

    case 7558:

    strValue = @"KUAI";

    break;

    case 8737:

    strValue = @"KUAN";

    break;

    case 5818:

    case 5831:

    case 5887:

    case 5959:

    case 6237:

    case 6349:

    case 7094:

    case 7460:

    strValue = @"KUANG";

    break;

    case 5624:

    case 5649:

    case 5771:

    case 6162:

    case 6281:

    case 6413:

    case 6416:

    case 6720:

    case 6951:

    case 7450:

    case 7805:

    case 8606:

    case 8743:

    strValue = @"KUI";

    break;

    case 6204:

    case 6245:

    case 6458:

    case 6618:

    case 6928:

    case 7152:

    case 7841:

    case 8051:

    strValue = @"LIAO";

    break;

    case 5793:

    case 5988:

    case 6270:

    case 6354:

    case 6803:

    case 8483:

    case 8581:

    case 8764:

    strValue = @"LIE";

    break;

    case 6194:

    case 6388:

    case 6555:

    case 6662:

    case 6733:

    case 6964:

    case 7361:

    case 7405:

    case 7602:

    case 7812:

    case 8452:

    case 8579:

    case 8775:

    strValue = @"LIN";

    break;

    case 5925:

    case 6063:

    case 6342:

    case 6482:

    case 6786:

    case 7117:

    case 7258:

    case 7289:

    case 7418:

    case 8186:

    case 8240:

    case 8465:

    case 8676:

    strValue = @"LING";

    break;

    case 6815:

    case 6962:

    case 7082:

    case 7124:

    case 7628:

    case 7654:

    case 7919:

    case 7954:

    case 8050:

    case 8644:

    strValue = @"LIU";

    break;

    case 5966:

    case 6055:

    case 6781:

    case 7171:

    case 7248:

    case 7542:

    case 7735:

    case 8110:

    strValue = @"LONG";

    break;

    case 5745:

    case 6168:

    case 6422:

    case 6548:

    case 7946:

    case 8092:

    case 8179:

    case 8287:

    case 8735:

    strValue = @"LOU";

    break;

    case 6744:

    case 7321:

    case 7586:

    case 7918:

    case 7989:

    case 8158:

    strValue = @"L®π";

    break;

    case 5968:

    case 6303:

    case 6464:

    case 6782:

    case 6843:

    case 6885:

    case 6954:

    case 7220:

    case 7251:

    case 7354:

    case 7391:

    case 7404:

    case 7510:

    case 7545:

    case 7969:

    case 8021:

    case 8056:

    case 8392:

    case 8421:

    case 8652:

    strValue = @"LU";

    break;

    case 5785:

    case 7014:

    case 7279:

    case 8029:

    case 8639:

    strValue = @"LUAN";

    break;

    strValue = @"L®µE";

    break;

    strValue = @"LUN";

    break;

    case 5732:

    case 5789:

    case 6093:

    case 6259:

    case 6291:

    case 6604:

    case 6788:

    case 6880:

    case 7183:

    case 7301:

    case 7565:

    case 7961:

    case 8107:

    case 8635:

    strValue = @"LUO";

    break;

    case 6328:

    strValue = @"M";

    break;

    case 6373:

    case 6579:

    case 7054:

    case 7231:

    case 8301:

    strValue = @"MA";

    break;

    case 5929:

    case 6104:

    case 8618:

    strValue = @"MAI";

    break;

    case 6012:

    case 6503:

    case 7147:

    case 7655:

    case 7960:

    case 8209:

    case 8293:

    case 8709:

    case 8720:

    strValue = @"MAN";

    break;

    case 5888:

    case 6861:

    case 7743:

    case 8294:

    strValue = @"MANG";

    break;

    case 5783:

    case 6066:

    case 6525:

    case 6787:

    case 7203:

    case 7436:

    case 7483:

    case 7503:

    case 7624:

    case 7714:

    case 7806:

    case 8317:

    case 8754:

    strValue = @"MAO";

    break;

    case 6114:

    case 6550:

    case 6613:

    case 6828:

    case 6856:

    case 7325:

    case 7949:

    case 8044:

    case 8139:

    case 8740:

    strValue = @"MEI";

    break;

    case 6249:

    case 7643:

    case 7715:

    case 7845:

    strValue = @"MEN";

    break;

    case 5934:

    case 6189:

    case 6211:

    case 6734:

    case 7592:

    case 7770:

    case 8221:

    case 8276:

    case 8323:

    case 8427:

    case 8431:

    strValue = @"MENG";

    break;

    case 5634:

    case 5855:

    case 6234:

    case 6368:

    case 6455:

    case 6608:

    case 6772:

    case 6921:

    case 6984:

    case 7563:

    case 7682:

    case 8445:

    case 8767:

    case 8771:

    strValue = @"MI";

    break;

    case 6770:

    case 6837:

    case 6847:

    case 7579:

    case 7777:

    strValue = @"MIAN";

    break;

    case 6387:

    case 6967:

    case 7131:

    case 7149:

    case 7234:

    case 7721:

    case 7780:

    case 8037:

    strValue = @"MIAO";

    break;

    case 5631:

    case 6367:

    case 8326:

    case 8390:

    strValue = @"MIE";

    break;

    case 6069:

    case 6526:

    case 6741:

    case 6793:

    case 7137:

    case 7168:

    case 7175:

    case 7710:

    case 8710:

    case 8628:

    strValue = @"MIN";

    break;

    case 5804:

    case 6088:

    case 6873:

    case 7452:

    case 7808:

    case 8504:

    strValue = @"MING";

    break;

    strValue = @"MIU";

    break;

    case 5851:

    case 6052:

    case 6175:

    case 6641:

    case 7038:

    case 7366:

    case 7950:

    case 7987:

    case 8102:

    case 8182:

    case 8586:

    case 8588:

    case 8765:

    strValue = @"MO";

    break;

    case 5716:

    case 6372:

    case 7788:

    case 8254:

    case 8290:

    case 8642:

    strValue = @"MOU";

    break;

    case 5679:

    case 5973:

    case 6057:

    case 6769:

    case 7504:

    case 7866:

    strValue = @"MU";

    break;

    case 6437:

    strValue = @"N";

    break;

    case 6264:

    case 7539:

    case 7953:

    case 8136:

    strValue = @"NA";

    break;

    case 5630:

    case 6021:

    case 6133:

    case 7245:

    strValue = @"NAI";

    break;

    case 6411:

    case 6478:

    case 6479:

    case 7310:

    case 7578:

    case 8279:

    case 8486:

    strValue = @"NAN";

    break;

    case 6313:

    case 6476:

    case 6646:

    case 7457:

    strValue = @"NANG";

    break;

    case 5611:

    case 5981:

    case 6346:

    case 6614:

    case 7207:

    case 7748:

    case 7883:

    case 8245:

    strValue = @"NAO";

    break;

    case 5811:

    strValue = @"NE";

    break;

    strValue = @"NEI";

    break;

    case 7705:

    strValue = @"NEN";

    break;

    strValue = @"NENG";

    break;

    case 5703:

    case 5972:

    case 6605:

    case 6685:

    case 7439:

    case 7627:

    case 7711:

    case 7794:

    case 7874:

    case 8682:

    strValue = @"NI";

    break;

    case 5605:

    case 5994:

    case 7393:

    case 8004:

    case 8651:

    case 8683:

    strValue = @"NIAN";

    break;

    strValue = @"NIANG";

    break;

    case 6064:

    case 7053:

    case 7569:

    case 8433:

    strValue = @"NIAO";

    break;

    case 5877:

    case 6233:

    case 6431:

    case 8208:

    case 8411:

    case 8570:

    strValue = @"NIE";

    break;

    strValue = @"NIN";

    break;

    case 5690:

    case 6344:

    case 6924:

    case 8187:

    strValue = @"NING";

    break;

    case 6580:

    case 6678:

    case 7004:

    strValue = @"NIU";

    break;

    case 5715:

    case 6370:

    strValue = @"NONG";

    break;

    case 8181:

    strValue = @"NOU";

    break;

    case 6983:

    case 7032:

    case 7059:

    case 7069:

    strValue = @"NU";

    break;

    case 7704:

    case 7847:

    case 8412:

    strValue = @"N®µ";

    break;

    strValue = @"NUAN";

    break;

    strValue = @"NUE";

    break;

    case 5748:

    case 6289:

    case 6386:

    case 7927:

    strValue = @"NUO";

    break;

    case 6424:

    case 6462:

    strValue = @"O";

    break;

    case 5809:

    case 6670:

    case 7417:

    case 8178:

    strValue = @"OU";

    break;

    case 6166:

    case 7243:

    case 8365:

    strValue = @"PA";

    break;

    case 5729:

    case 6169:

    case 6363:

    strValue = @"PAI";

    break;

    case 6761:

    case 6790:

    case 8140:

    case 8165:

    case 8320:

    case 8571:

    strValue = @"PAN";

    break;

    case 6561:

    case 6872:

    case 6944:

    case 8306:

    strValue = @"PANG";

    break;

    case 6243:

    case 6583:

    case 6650:

    case 7567:

    case 8069:

    strValue = @"PAO";

    break;

    case 6446:

    case 6490:

    case 7623:

    case 7934:

    case 8512:

    case 8612:

    strValue = @"PEI";

    break;

    case 6852:

    strValue = @"PEN";

    break;

    case 6001:

    case 6456:

    case 6681:

    case 8318:

    strValue = @"PENG";

    break;

    case 5607:

    case 5682:

    case 5880:

    case 5892:

    case 5915:

    case 5960:

    case 6017:

    case 6037:

    case 6308:

    case 6472:

    case 6647:

    case 6836:

    case 7039:

    case 7102:

    case 7233:

    case 7422:

    case 7802:

    case 7828:

    case 7875:

    case 8117:

    case 8166:

    case 8223:

    case 8271:

    case 8589:

    strValue = @"PI";

    break;

    case 5850:

    case 7073:

    case 7490:

    case 7561:

    case 8470:

    case 8568:

    strValue = @"PIAN";

    break;

    case 5666:

    case 6449:

    case 7046:

    case 7146:

    case 7372:

    case 7809:

    case 8310:

    strValue = @"PIAO";

    break;

    case 6054:

    case 7513:

    strValue = @"PIE";

    break;

    case 7041:

    case 6253:

    case 7016:

    case 7315:

    case 7482:

    case 8213:

    strValue = @"PIN";

    break;

    case 5723:

    case 7019:

    case 7250:

    case 8650:

    strValue = @"PING";

    break;

    case 5647:

    case 5922:

    case 7174:

    case 7839:

    case 7862:

    case 8011:

    case 8345:

    strValue = @"PO";

    break;

    case 5786:

    case 6269:

    strValue = @"POU";

    break;

    case 5773:

    case 6459:

    case 6863:

    case 6907:

    case 7217:

    case 7511:

    case 7968:

    case 7972:

    case 8575:

    strValue = @"PU";

    break;

    case 5633:

    case 5725:

    case 5963:

    case 6027:

    case 6046:

    case 6089:

    case 6129:

    case 6134:

    case 6161:

    case 6213:

    case 6366:

    case 6450:

    case 6508:

    case 6510:

    case 6764:

    case 6831:

    case 7075:

    case 7118:

    case 7187:

    case 7189:

    case 7229:

    case 7271:

    case 7342:

    case 7440:

    case 7605:

    case 7687:

    case 7712:

    case 7751:

    case 8193:

    case 8251:

    case 8264:

    case 8475:

    case 8476:

    case 8572:

    case 8702:

    case 8772:

    strValue = @"QI";

    break;

    case 6154:

    case 8736:

    strValue = @"QIA";

    break;

    case 5727:

    case 5761:

    case 5868:

    case 6023:

    case 6045:

    case 6071:

    case 6271:

    case 6509:

    case 6705:

    case 6727:

    case 6925:

    case 6926:

    case 6929:

    case 7155:

    case 7293:

    case 7541:

    case 7709:

    case 7852:

    case 8215:

    case 8373:

    strValue = @"QIAN";

    break;

    case 6762:

    case 7045:

    case 7341:

    case 7408:

    case 7633:

    case 7926:

    case 7947:

    case 7974:

    case 8163:

    case 8262:

    case 8439:

    case 8536:

    strValue = @"QIANG";

    break;

    case 5668:

    case 5829:

    case 5859:

    case 6081:

    case 6529:

    case 6724:

    case 6730:

    case 7352:

    case 7745:

    case 8546:

    case 8719:

    strValue = @"QIAO";

    break;

    case 5907:

    case 6711:

    case 7010:

    case 7492:

    case 7938:

    case 8370:

    strValue = @"QIE";

    break;

    case 6043:

    case 6276:

    case 6336:

    case 6426:

    case 6463:

    case 6858:

    case 7353:

    case 7923:

    case 8291:

    case 8432:

    strValue = @"QIN";

    break;

    case 6060:

    case 6485:

    case 7349:

    case 7764:

    case 8263:

    case 8332:

    case 8368:

    case 8605:

    case 8675:

    case 8784:

    strValue = @"QING";

    break;

    case 5886:

    case 6068:

    case 8123:

    case 8243:

    case 8344:

    case 8528:

    case 8638:

    strValue = @"QIONG";

    break;

    case 5720:

    case 5947:

    case 6576:

    case 6848:

    case 6947:

    case 6957:

    case 7317:

    case 7468:

    case 8216:

    case 8239:

    case 8288:

    case 8435:

    case 8460:

    case 8690:

    case 8792:

    strValue = @"QIU";

    break;

    case 5816:

    case 5930:

    case 6201:

    case 6230:

    case 6511:

    case 6573:

    case 6754:

    case 7219:

    case 7479:

    case 7512:

    case 7552:

    case 7678:

    case 7765:

    case 8119:

    case 8248:

    case 8329:

    case 8480:

    case 8636:

    case 8781:

    strValue = @"QU";

    break;

    case 5825:

    case 6085:

    case 6710:

    case 7125:

    case 7390:

    case 7816:

    case 7893:

    case 8273:

    case 8360:

    case 8760:

    strValue = @"QUAN";

    break;

    case 6755:

    case 6758:

    case 7708:

    strValue = @"QUE";

    break;

    case 6950:

    strValue = @"QUN";

    break;

    case 6059:

    case 8237:

    case 8755:

    strValue = @"RAN";

    break;

    case 7692:

    case 8006:

    strValue = @"RANG";

    break;

    case 6073:

    case 7012:

    case 7267:

    strValue = @"RAO";

    break;

    strValue = @"RE";

    break;

    case 5680:

    case 6083:

    case 6156:

    case 6631:

    case 7377:

    case 7994:

    case 8137:

    strValue = @"REN";

    break;

    strValue = @"RENG";

    break;

    strValue = @"RI";

    break;

    case 6541:

    case 6585:

    case 7337:

    case 7532:

    case 8278:

    strValue = @"RONG";

    break;

    case 8459:

    case 8569:

    case 8723:

    strValue = @"ROU";

    break;

    case 6174:

    case 6224:

    case 6473:

    case 6818:

    case 6865:

    case 6906:

    case 7140:

    case 7908:

    case 8164:

    case 8212:

    strValue = @"RU";

    break;

    case 7535:

    strValue = @"RUAN";

    break;

    case 6039:

    case 6208:

    case 7236:

    case 7803:

    case 8224:

    strValue = @"RUI";

    break;

    strValue = @"RUN";

    break;

    case 5728:

    case 8372:

    strValue = @"RUO";

    break;

    case 5606:

    case 5677:

    case 7493:

    case 7559:

    case 7610:

    strValue = @"SA";

    break;

    case 6471:

    strValue = @"SAI";

    break;

    case 6644:

    case 7507:

    case 8454:

    strValue = @"SAN";

    break;

    case 6290:

    case 7763:

    case 8210:

    strValue = @"SANG";

    break;

    case 6003:

    case 7150:

    case 7156:

    case 7593:

    case 8094:

    case 8694:

    strValue = @"SAO";

    break;

    strValue = @"SE";

    break;

    strValue = @"SEN";

    break;

    strValue = @"SENG";

    break;

    case 6394:

    case 7606:

    case 7901:

    case 8080:

    case 8436:

    case 8614:

    case 8672:

    strValue = @"SHA";

    break;

    case 8507:

    strValue = @"SHAI";

    break;

    case 5663:

    case 5808:

    case 5923:

    case 5979:

    case 6047:

    case 6890:

    case 7009:

    case 7051:

    case 7083:

    case 7594:

    case 7844:

    case 8062:

    case 8321:

    case 8414:

    case 8539:

    case 8713:

    strValue = @"SHAN";

    break;

    case 5980:

    case 7120:

    case 7368:

    case 7656:

    case 8592:

    strValue = @"SHANG";

    break;

    case 5931:

    case 6070:

    case 6891:

    case 7228:

    case 8366:

    case 8425:

    strValue = @"SHAO";

    break;

    case 5639:

    case 5760:

    case 6606:

    case 6860:

    case 7608:

    case 7820:

    case 8774:

    strValue = @"SHE";

    break;

    case 5837:

    case 6123:

    case 6351:

    case 6841:

    case 7309:

    case 7547:

    case 7982:

    case 8255:

    strValue = @"SHEN";

    break;

    case 6551:

    case 7441:

    case 7782:

    case 8347:

    strValue = @"SHENG";

    break;

    case 5854:

    case 5985:

    case 6110:

    case 6173:

    case 6317:

    case 7388:

    case 7459:

    case 7634:

    case 7870:

    case 8307:

    case 8334:

    case 8363:

    case 8525:

    case 8669:

    case 8685:

    strValue = @"SHI";

    break;

    case 6587:

    case 7123:

    case 8428:

    strValue = @"SHOU";

    break;

    case 5731:

    case 5951:

    case 6136:

    case 6283:

    case 6780:

    case 6888:

    case 7013:

    case 7508:

    case 7582:

    case 7988:

    strValue = @"SHU";

    break;

    case 6407:

    strValue = @"SHUA";

    break;

    case 8316:

    strValue = @"SHUAI";

    break;

    case 6737:

    case 6844:

    strValue = @"SHUAN";

    break;

    case 7055:

    strValue = @"SHUANG";

    break;

    strValue = @"SHUI";

    break;

    strValue = @"SHUN";

    break;

    case 6184:

    case 6287:

    case 6989:

    case 7335:

    case 7869:

    strValue = @"SHUO";

    break;

    case 5643:

    case 5778:

    case 5944:

    case 6348:

    case 6765:

    case 6784:

    case 6889:

    case 7006:

    case 7065:

    case 7133:

    case 7675:

    case 7940:

    case 8024:

    case 8174:

    case 8247:

    case 8351:

    strValue = @"SI";

    break;

    case 5801:

    case 6131:

    case 6534:

    case 6552:

    case 6676:

    case 6704:

    case 6833:

    case 8121:

    strValue = @"SONG";

    break;

    case 5937:

    case 6220:

    case 6418:

    case 6453:

    case 6640:

    case 6849:

    case 7612:

    case 7804:

    case 7943:

    case 8284:

    strValue = @"SOU";

    break;

    case 5777:

    case 5853:

    case 6188:

    case 6428:

    case 6726:

    case 6819:

    case 8389:

    case 8602:

    case 8653:

    strValue = @"SU";

    break;

    case 6601:

    strValue = @"SUAN";

    break;

    case 5839:

    case 6120:

    case 6901:

    case 6968:

    case 7661:

    case 7785:

    case 7801:

    strValue = @"SUI";

    break;

    case 6105:

    case 6588:

    case 6624:

    case 7330:

    case 8632:

    strValue = @"SUN";

    break;

    case 6379:

    case 6434:

    case 6442:

    case 7022:

    case 7288:

    case 7792:

    case 8440:

    strValue = @"SUO";

    break;

    case 6743:

    case 6866:

    case 6961:

    case 7329:

    case 7719:

    case 7872:

    case 8533:

    case 8703:

    strValue = @"TA";

    break;

    case 5902:

    case 6223:

    case 6330:

    case 7070:

    case 7536:

    case 7638:

    case 7849:

    case 8544:

    case 8656:

    strValue = @"TAI";

    break;

    case 5916:

    case 6903:

    case 7428:

    case 7694:

    case 7867:

    case 7936:

    case 8191:

    strValue = @"TAN";

    break;

    case 5746:

    case 6491:

    case 6871:

    case 7209:

    case 7344:

    case 7906:

    case 7959:

    case 8177:

    case 8305:

    case 8311:

    case 8442:

    case 8517:

    strValue = @"TANG";

    break;

    case 5627:

    case 6391:

    case 6812:

    case 7226:

    case 7666:

    strValue = @"TAO";

    break;

    strValue = @"1845 ≤Õ";

    break;

    case 6315:

    case 7693:

    case 7911:

    strValue = @"TE";

    break;

    case 7588:

    strValue = @"TENG";

    break;

    case 5735:

    case 6709:

    case 6949:

    case 7130:

    case 8035:

    case 8151:

    case 8514:

    strValue = @"TI";

    break;

    case 6261:

    case 6735:

    case 6757:

    case 7369:

    case 7817:

    strValue = @"TIAN";

    break;

    case 5712:

    case 7686: