[Powershell] Gets the strokes of the kanji, pinyin.

Source: Internet
Author: User

This artical'll be is published in 中文版 as Well:http://www.cnblogs.com/larryatcnblog/p/4740454.html

In the Royal Park into the job of an internet company, it facilities were previously outsourced or with the cloud, im what all use groups, such as QQ. Now the company grows, so spend money on the domain, on Exchange, on Lync. Compared to foreign enterprises in the management of a lot of trouble, such as Chinese pinyin a variety of mixed, a will pinyin a will Chinese characters, plus pinyin, such as the first letter, so the premonition of Chinese and pinyin mixed this piece will become a pit in the future, in order to pre-fill this hole, the study of the Chinese characters in PowerShell into Pinyin method.

There are already a lot of WebService API can be used in the network, with the Web class call, here I only mention the official approach, in fact, do not want to rely on the network.

Giant hard already have a library do a similar conversion of common languages, download the following,

http://www.microsoft.com/en-us/download/details.aspx?id=15251

Note: Simplified and traditional are not the same

For specific use, see the post-installation Help documentation, which must be seen, very straightforward, such as

C:\Program Files (x86) \microsoft Visual Studio International pack\simplified Chinese Pin-yin Conversion Library

The following

Simplified Chinese pin-yin Conversion Library document.chm

For PowerShell, the only thing to use is to ChnCharInfo.dll the library file and copy it to the love.

Is it swollen? Import this library file?

Tall on the use [Reflection.assembly]::loadfile

After loading, you can call the class in this DLL, and the name of the class can be obtained from the previously mentioned CHM document.

This library has only one namespace and only one class, which is really the gospel.

For example, the pinyin of a Chinese character is as follows

The number followed in Pinyin is the sound tone, and 5 is softly. Strokenumber is the number of strokes.

[Powershell] Gets the strokes of the kanji, pinyin.

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.