C # Chinese Pinyin functional class

Source: Internet
Author: User

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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.