This code is a transformation, not too deep technical difficulty, just exclude the original code errors, add some general requirements. Currently, this class can implement the following functions:
1. The basic function of pinyin conversion to Chinese string
2, support and can customize the separator between phonetic words
3, support and can customize whether to capitalize the first letter of phonetic words
4, support and customizable multi-tone word preset tone
5, support and can customize the conversion process to exclude the resolution of characters, such as Chinese punctuation
Output Example:
Raises system. Web.UI.Control.Init event to initialize the page
YIN-FA System. Web.UI.Control.Init Shi-jian-yi-dui-ye-jin-xing-chu-shi-hua
What are the characteristics of hello! Chongqing and Shenzhen?
Hello! Chong Qing He Shen Zhen De Te Se Ge Shi shenme Ne?