This article describes the Java implementation of the transformation of Chinese characters into Hanyu Pinyin method. Share to everyone for your reference, specific as follows:
On the internet, accidentally saw a very interesting gadget, named Pinyin4j, can convert Chinese characte
The first letter of Chinese characters in php to pinyin. PHP obtains the first letter of pinyin.
After running the program, some characters in the string cannot be converted. If you enter these words separately, you can directly convert them to read the first letter of the a
Special effects for converting Chinese characters to PinYin Based on jQuery. Hz2Py. js plug-in
JQuery. hz2Py. the conversion of Chinese characters to PinYin implemented by the js plug-in is a very practical online Conversion Funct
Company needs every year, this year a little special, haha.Suddenly added a demand, said to achieve the Chinese character to pinyin query.In the effort to write out, now share it!!/** * Kanji Pinyin abbreviation * * @param str * character string to convert * @return string phonetic abbreviation */public static string g
python3.4 environment, in the version below 3.0, some places are different, can be modified by themselves.All articles can be converted, the only flaw is that punctuation is normal and cannot be converted. Think about making changes later.1 #CODING=GBK2 " "3 Created on 2014-8-294 5 @author: Administrator6 " "7 #Import OS8 9 defCONVERT (CH):Ten """the function returns its phonetic alphabet by entering Chinese c
Today I have an idea about Chinese characters and I will use Pinyin. So I searched the internet for how to automatically convert Chinese characters to pinyin. Paste the code here and learn it together.
Using system;Using system.
JQuery. hz2Py. the conversion of Chinese characters to PinYin implemented by the js plug-in is a very practical online Conversion Function. This plug-in has packaged Chinese characters into a plug-in library, and the call time is very simple, only one method can be called to
JQuery. hz2Py. the conversion of Chinese characters to pinyin implemented by the js plug-in is a very practical online conversion function. this plug-in has packaged Chinese characters into a plug-in library, and the call time is very simple, only one method can be called to
Recently HANLP wanted to support pinyin and traditional features, so I learned a few open source Java implementations, optimized for integration. Stuxuhai/jpinyin principle This is the most one of the stars on GitHub, the main principle is to use a Hashtable to match the word pinyin one by one. At the same time, in the scanning time will also be the current Chinese
Original: http://blog.csdn.net/stuxuhai/article/details/8932715"Jpinyin Main Features"1, accurate, perfect font;Unicode encoding from the 4e00-9fa5 range and 3007 (0) of the 20,903 Chinese characters, Jpinyin can convert all the Chinese characters except the 46 allogeneic words (the non-standard
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
'),
(' T ',' he ',' 籜 '),
(' W ',' 屲 ',' clamoring '),
(' X ',' XI ',' 鑂 '),
(' Y ',' ya ',' Wan Leng '),
(' Z ',' as','n ');
after execution, check to see if the data records in the added table have "? The question mark, if any, indicates a problem with the database encoding.2, query the database table in the first character phonetic AlphabetSELECT ' Pinyin '. py, ' corresponding table '. *From ' corresponding table ', '
I have previously written a Chinese character conversion using SQL stored procedures and triggers. Address: http://www.cnblogs.com/Capricornus/archive/2010/02/08/1665783.html
In fact, this can also be done in C.
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// /// Abbreviation for converting Chinese
(tempcarray [idx]); Else { For ( Int I = Pyvaluearr . Length -1 ; I > = 0 ; I-- ){ If (Pyvaluearr [I] Cascii) {sbresult . Append (pycharacterarr [I]); Break ;}}}}} Return Sbresult . Tostring ();} /// Output only the combination of the first letter /// "Cnstring" > Chinese string to be converted Pinyin initial character combination result Public static string Capitalcovert ( String Cnstring ){
/**//*
Microsoft has just launched
Microsoft Visual Studio International Pack 1.0 Beta1
Supports conversion of Chinese characters and Pinyin strokes
Http://www.microsoft.com/downloads/details.aspx? FamilyID = e432aeaa-7b6f-4b0d-968b-b6aafda05e34 DisplayLang = en
I have extracted dll assembly
ChnCharInfo. dll
ChnCharInfoResource. dll
Download and share
Http://fil
There are many sub-topics in the background of the company's game channel. each operation needs to find the corresponding game name in a lot of data. since the game name entered into the database is in Chinese, someone wants to convert Chinese to pinyin, then, extract the first letter and search by the first letter. So I found this function-how to convert
The problem of converting Chinese characters to pinyin is found online, but some Chinese characters cannot be converted to pinyin. I wonder if it is related to the input method? For example, Outputs. the output is empty. Lt ;? Ph
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.