This article is a mirror article of machine translation, please click here to jump to the original article.

View: 31986|Reply: 0

[.NET Core] .NET Core Chinese Character Generation Pinyin Solution

[Copy link]
Posted on 2/26/2021 1:52:50 PM | | | |
.net/c# get all Chinese characters and all pinyin [source code]
https://www.itsvse.com/thread-4736-1-1.html

Scenario: Project development needs to convert the article title into pinyin, so that it is convenient to search through pinyin when searching.

Microsoft provides a Microsoft Visual Studio International Pack 1.0 SR1 class library package, vsintlpack1.zip

There is a class library: Simplified Chinese Pin-Yin Conversion Library supports obtaining common attributes of Chinese Simplified characters

Download Address:The hyperlink login is visible.

atCentOS 8The test under the system can run normally as shown in the figure below, first look at the renderings:



Source:



Option 1: (Not recommended)

Download vsintlpack1, install CHSPinYinConv.msi file, installed by default to: C:\Program Files (x86)\Microsoft Visual Studio International Pack\Simplified Chinese Pin-Yin Conversion Library\

The program references the "ChnCharInfo.dll" file, just call it.

Option 2:

Using the nuget command, install the package like this:


In fact, it is the "ChnCharInfo.dll" file that we install, download, install, and then reference, as shown in the figure below:


(End)




Previous:jQuery gets the URL parameter value extension
Next:Intel NUC8i5BEH 2700 yuan with a working host
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com