CHTCHSConv 1.0.0
Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool provides API that converts the string between Traditional Chinese and Simplified Chinese languages.
Install-Package CHTCHSConv -Version 1.0.0
dotnet add package CHTCHSConv --version 1.0.0
<PackageReference Include="CHTCHSConv" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CHTCHSConv --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
以下代码演示了繁体及简体中文字符串之间的转换。
using System;
using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;
namespace Example_CS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The simplified format of 北京時間 is {0}.", ChineseConverter.Convert("北京時間", ChineseConversionDirection.TraditionalToSimplified));
Console.WriteLine("The traditional format of 软件 is {0}.", ChineseConverter.Convert("软件", ChineseConversionDirection.SimplifiedToTraditional));
Console.ReadLine();
}
}
}
/*
This code produces the following output with Office12 Chinese edition installed:
The simplified format of 北京時間 is 北京时间.
The traditional format of 软件 is 軟體.
This code produces the following output without Office12 Chinese edition installed:
The simplified format of 北京時間 is 北京时间.
The traditional format of 软件 is 軟件.*/
以下代码演示了繁体及简体中文字符串之间的转换。
using System;
using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;
namespace Example_CS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The simplified format of 北京時間 is {0}.", ChineseConverter.Convert("北京時間", ChineseConversionDirection.TraditionalToSimplified));
Console.WriteLine("The traditional format of 软件 is {0}.", ChineseConverter.Convert("软件", ChineseConversionDirection.SimplifiedToTraditional));
Console.ReadLine();
}
}
}
/*
This code produces the following output with Office12 Chinese edition installed:
The simplified format of 北京時間 is 北京时间.
The traditional format of 软件 is 軟體.
This code produces the following output without Office12 Chinese edition installed:
The simplified format of 北京時間 is 北京时间.
The traditional format of 软件 is 軟件.*/
Dependencies
-
.NETStandard 2.0
- No dependencies.
Used By
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CHTCHSConv:
Package | Downloads |
---|---|
SinGooCMS.Utility
SinGooCMS.Utility是一个工具类集合,包括配置、文件、日期、数据、序列化、反射、图像处理、网络、缓存、Web相关、加解密、压缩、类扩展等工具类,几乎囊括了开发中的所有工具需求!支持netstandard2.1和net framework 4.6.1。
|
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 46,450 | 12/21/2017 |