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 軟件.*/

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 20,129 12/21/2017