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.