Alibabacloud.com offers a wide variety of articles about hanyu pinyin to chinese character, easily find your hanyu pinyin to chinese character information here online.
Yesterday, a user reminded me that the method for extracting Chinese characters and pinyin can use Microsoft's class library Visual Studio International pack. Today I tried it and it is really easy to use! The usage is as follows:
First download Visual Studio International pack 1.0, official: http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = 44cac7f0-633b-477d-aed2-99aee642fc10 displaylan
Public class converttopinying{/// /// Abbreviated Chinese character to PinYin/// /// /// Public static string getpystring (string Str){String tempstr = "";If (! Ischina (STR )){Return STR;}Foreach (char C in Str){If (INT) C >=33 (INT) C {// Reserved letters and symbolsTempstr + = C. tostring ();}Else{// Accumulate the pinyin
1, the problem background:
encountered a small display of customer department name (Pinyin) business in the project, is under the department name has the corresponding pinyin, and in the existing database does not have the corresponding field, and the number of departments, add more time-consuming, would like to be able to implement in JS, in the page processing.
2, principle description
program pr
When word2010 made the primary language test, pinyin will be added to the Chinese character, and the pinyin to the right of the Chinese characters, although you can use Word "phonetic guide" function for Chinese characters to add
How to obtain the first letter of each Chinese character field in mysql, mysql Chinese Character
Drop function if exists 'getpy'; DELIMITER; create function 'getpy' (in_string VARCHAR (65534) RETURNS mediumtext CHARSET utf8 begin declare tmp_str VARCHAR (65534) charset gbk DEFAULT ''; # truncate string. The string afte
Generate a Chinese name and pinyin table for the railway station! One appendix is the list of Chinese names of railway stations nationwide, and the other is the Chinese pinyin Database. based on the two documents, a table (one row, use a colon to separate
lowercase Numeric strings into uppercase Numeric strings in simplified Chinese, traditional Chinese, Japanese, and Korean.
Japanese Kana Conversion Library-supports converting Japanese Kana to another Japanese character.
Japanese Text Alignment Library-supports a Japanese-specific Alignment format.
The Japanese Yomi Auto-Completion Library-Class Library suppo
, $ _ TDataValue); arsort ($ data); reset ($ data ); $ str = $ this-> safe_encoding ($ str); $ _ Res = ''; for ($ I = 0; $ I
The test code is as follows:
$ Pinyin = new Pinyin (); echo $ pinyin-> getFirstChar ("Hubei Wuhan "). "
Running result:
Hbei shang guang huo ying HT
PS: here we will provide you with several Pinyin
The method is to use a matrix. the Chinese character is composed of two ascii characters, one high-bit code and one low-bit code. the boundary is 128-26464-128. Each Chinese character can contain a maximum of eight characters, A two-dimensional matrix is formed for query. The drawback is that the problem of polyphonic
1. The size of pinyin is the smallest, and the declaration of POAPinyin is about 500 rows.
2. The speed is almost the same, but do not use the convert of POAPinyin native. It is very slow to traverse and search every time.
3. Compared with pinyin, you can only obtain the first letter of the Chinese character correspo
Chinese character conversion Pinyin is a common problem in daily development. For example, if we enter "Wh" in the place name of "Great 12306", "Wuhan", "Wuhu", and "Weihai", and enter "Wuhu", the "Wuhu" will appear ".
Java obtains the Chinese pinyin,Pinyin4jThis library ca
1. Pinyin the smallest size, Poapinyin's statement is almost 500 lines.
2. The speed is in fact similar to three, but do not use the Poapinyin native of that convert, that each time traversal lookup is very slow.
3. Contrast pinyin can only get the first letter of Chinese phonetic Alphabet, Pymethod was originally applied to the stock query, its number of
"-"Select All" or press "Ctrl" + "A" all selected, and then click on the toolbar "Font Color" button next to the triangle arrow, in the font color select "Black", the hidden part can be displayed normally.
2, add pinyin
Read Pinyin fill words
Primary school in order to test the pinyin of students, teachers often give C
This article mainly introduces a piece of PHP-made Chinese Pinyin initials tool code, which is very practical and recommended to kids shoes with the same requirements. The code is very simple. there will be no more code here. let's take a look at comments. if you can't understand comments, please let go of PHP !!!
The code is as follows:
/*** Tool for the first letter of
Functions.php, and the Create_gallery function is modified as follows: (Red Bold is the newly added row)
Copy Code code as follows:
Require_once (' cn2pinyin.php ');
/**
* Nggadmin-class for admin operation
*
* @package NextGEN Gallery
* @author Alex Rabe
* @copyright 2007-2010
* @access Public
*/
Class nggadmin{
/**
* Create a new gallery folder
*
* Add Chinese support by:elf Sundae
*
* @class Nggadmin
* @param string $
"edit"-"Select All" or press "Ctrl" + "A" all selected, and then click on the toolbar "Font Color" button next to the triangle arrow, in the font color select "Black", the hidden part can be displayed normally.
2, add pinyin
Read Pinyin fill words
Primary school in order to test the pinyin of students, teachers often give
In order to do the database Pinyin keyword search Think of the product name generation Pinyin as the key word into the database, so the Internet to collect information to complete a such thing
/**
* Chinese Pinyin Conversion class
* @author Julian.song
* Part of the code source with the Internet, the copyright be
This article mainly introduces a piece of PHP-made Chinese Pinyin initials tool code, which is very practical and recommended to kids shoes with the same requirements. The code is very simple. there will be no more code here. let's take a look at comments. if you can't understand comments, please let go of PHP !!!
The code is as follows:
/*** Tool for the first letter of
Tags: SP code on C R SQL BS MySQL asAccording to the phonetic sorting of Chinese characters, the comparison is more in the sort of the name, according to the phonetic Alphabet of the surname, from A to Z sort;If the name of the field is stored in the GBK character set, that would be good, because the GBK code encoding itself using the phonetic sorting method (commonly used first-class
Recently, the conversion from Chinese characters to PinYin was used, so this article was found in many search result interference items. Because the original article has clear ideas and unique points of view, it is reproduced here. In essence, this article uses the lookup table method. The full text is basically a dictionary acquisition method.
Note: This article is transferred from http://blog.verycd.com/d
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.