PinyinNet is a .NET library for converting Chinese characters to pinyin.
Name | Version | Downloads |
---|---|---|
PinyinNet |
Add nuget reference
PM> Install-Package PinyinNet
PinyinConvert is a static class that contains the following methods:
// You will get "huan|ying|shi|yong|pin|yin|zhuan|huan|gong|ju";
var pinyin = PinyinConvert.GetPinyin("欢迎使用拼音转换工具");
// You will get "hysypyzhgj"
var firstLetters = PinyinConvert.GetPinyinFirstLetter("欢迎使用拼音转换工具");
Leave a comment on GitHub if you have any questions or suggestions.
Turn on the star if you like this project.
This project is licensed under the MIT License