Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.42 KB

pinyin4net

Pinyin4net helps to convert "中文" to "zhōng wén".

This is a fork for supporting PCL(Portable Class Library) and .NET Core platforms.

Getting started

using Pinyin4net;  

...  
string[] pinyinStr = PinyinHelper.ToHanyuPinyinStringArray(someChineseChar);  
...  

Features

  • Convert Chinese to Hanyu Pinyin system.
  • Support both Simplified Chinese and Tranditional Chinese.
  • Multiple options for output format i. All uppercase or lowercase ii. Can out put Unicode ü or v or u: iii. With tone numbers (lü3) or tone marks (lǚ) or without tone (lü)

Acknowledgments

Most code of pinyin4net is based on the code of project pinyin4j.
Thanks Li Min for the great code ^_^.

Bug tracker

Have a bug? Please create an issue here on GitHub!
https://github.com/YangKuang/pinyin4net/issues

Authors

Yang Kuang([email protected])

License

Pinyin4net is released under the MIT licence: