微软中文转拼音的一个类库文档
using System; using System.Collections.Generic; using System.Text; using Microsoft.International.Converters.PinYinConverter; namespace Example_CS { class Program { static void Main(string[] args) { ChineseChar chineseChar = new ChineseChar('微'); Console.WriteLine("Stroke number of 微 in Chinese is {0}.", chineseChar.StrokeNumber); Console.WriteLine("{0} characters' pinyin is \"wei1\".", ChineseChar.GetHomophoneCount("wei1")); if(ChineseChar.IsHomophone('微', '薇')) { Console.WriteLine("微 and 薇 have the same pinyin."); } else { Console.WriteLine("微 and 薇 have different pinyins."); } } } }
- kang163_19822013-08-20多音字确实无法处理,但是一般的问题确实可以解决,谢了
- dwert2012-06-26这个很一般,多音字问题没有处理好
- 粉丝: 1
- 资源: 5
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助