/*
微软刚刚推出
Microsoft Visual Studio International Pack 1.0 Beta1
支持 汉字 拼音 笔画 转换
http://www.microsoft.com/downloads/details.aspx?FamilyID=e432aeaa-7b6f-4b0d-968b-b6aafda05e34&DisplayLang=en
我已经提取了 dll assembly
ChnCharInfo.dll
ChnCharInfoResource.dll
下载分享
https://files.cnblogs.com/Microshaoft/vsipk1beta.zip
*/
//命令行编译:
//csc.exe noname1.cs /r:ChnCharInfo.dll
namespace Microshaoft
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.International.Converters.PinYinConverter;
public class Class1
{
static void Main(string[] args)
{
//汉字的笔画数
int i = ChineseChar.GetStrokeNumber('饕');
Console.WriteLine(i);
//汉字的所有拼音拼写
ChineseChar x = new ChineseChar('说');
ReadOnlyCollection<string> roc = x.Pinyins;
foreach(string s in roc)
{
Console.WriteLine(s);
}
//拼音拼写的所有汉字
Char[] chars = ChineseChar.GetChars("YUE4");
foreach(Char c in chars)
{
Console.WriteLine(c);
}
//笔画数的所有汉字
chars = ChineseChar.GetChars(20);
foreach(Char c in chars)
{
Console.WriteLine(c);
}
Console.WriteLine(Environment.Version.ToString());
}
}
}
补充一下,哈哈 微软刚刚推出
Microsoft Visual Studio International Pack 1.0 Beta1
支持 汉字 拼音 笔画 转换
http://www.microsoft.com/downloads/details.aspx?FamilyID=e432aeaa-7b6f-4b0d-968b-b6aafda05e34&DisplayLang=en
我已经提取了 dll assembly
ChnCharInfo.dll
ChnCharInfoResource.dll
下载分享
https://files.cnblogs.com/Microshaoft/vsipk1beta.zip
*/
//命令行编译:
//csc.exe noname1.cs /r:ChnCharInfo.dll
namespace Microshaoft
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.International.Converters.PinYinConverter;
public class Class1
{
static void Main(string[] args)
{
//汉字的笔画数
int i = ChineseChar.GetStrokeNumber('饕');
Console.WriteLine(i);
//汉字的所有拼音拼写
ChineseChar x = new ChineseChar('说');
ReadOnlyCollection<string> roc = x.Pinyins;
foreach(string s in roc)
{
Console.WriteLine(s);
}
//拼音拼写的所有汉字
Char[] chars = ChineseChar.GetChars("YUE4");
foreach(Char c in chars)
{
Console.WriteLine(c);
}
//笔画数的所有汉字
chars = ChineseChar.GetChars(20);
foreach(Char c in chars)
{
Console.WriteLine(c);
}
Console.WriteLine(Environment.Version.ToString());
}
}
}
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=e432aeaa-7b6f-4b0d-968b-b6aafda05e34
Visual Studio International Pack 包含一组类库,该类库扩展了.NET Framework对全球化软件开发的支持。使用该类库提供的类,.NET 开发人员可以更方便的创建支持多文化多语言的软件应用。 该软件包1.0版提供下面七个组件以增强.NET Framework对全球化软件应用开发的支持。
East Asia Numeric Formatting Library - 支持将小写的数字字符串格式化成简体中文,繁体中文,日文和韩文的大写数字字符串。
Japanese Kana Conversion Library - 支持将日文假名(Kana)转化为另一种日文字符。
Japanese Text Alignment Library - 支持日文特有的一种对齐格式。
Japanese Yomi Auto-Completion Library - 类库支持感知日文输入法的输入自动完成和一个文本框控制的示例。
Korean Auto Complete TextBox Control - 在文本框中支持韩文输入法的智能感知和输入自动完成。
Simplified Chinese Pin-Yin Conversion Library - 支持获取简体中文字符的常用属性比如拼音,多音字,同音字,笔画数。
Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool - 支持简繁体中文之间的转换. 该组件还包含一个Visual Studio集成开发环境中的插件(Add-in)支持简繁体中文资源文件之间的转换。