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.
Conversion from Chinese to PinYin----- Audio-tone and multi-tone Word Recognition
1,
Background
I saw Chinese characters converted to PinYin on the Internet a few years ago.ProgramMost of them are encoded and converted according to Chinese characters.Algorithm. Search
billion)
1 string temp_6 = string.Format(new Microsoft.International.Formatters.EastAsiaNumericFormatter(), "{0:Ln}", 1234567890.45);
-- Convert the number into a currency (hundreds of millions of yuan of data can be used to collect tens of thousands of yuan of data)
1 string temp_7 = string.Format(new Microsoft.International.Formatters.EastAsiaNumericFormatter(), "{0:Lc}", 1234567890.45);
Instance code:
// Switch string temp_1 = ChineseConverter in simplified/Traditional
(Author: finallyly Source: Author and source)
Converting Chinese characters into Pinyin is actually a non-technical activity, nothing more than a look-up table. There may be fewer open-source conversion programs on the network due to the valuable resources of converting tables from Chinese characters to pinyin. In addi
This article mainly introduces the python library for converting Chinese characters into Chinese pinyin, which involves Python calling word. the data field function is very useful for converting Chinese characters to pinyin. For more information, see the following example. S
[Pinyin4j] converting Chinese characters into pinyin (case sensitive) in java, and pinyin4j in case sensitive
Pinyin4J is a lib that can convert Chinese characters into pinyin, which is very practical. Its maven address is: http://mvnrepository.com/artifact/com.belerweb/pinyin4j/2.5.0.
Pinyin4J provides the static cla
Classic SQL Server user-defined function: query of the first character in pinyin
/* -- Obtain the first letter of a Chinese character stringAccording to the strong posts, I changed the two strong functions into a function.It can be applied to the query of mnemonic codes.Author: zhujian--*/If exists (select *
Oracle function gets Chinese Pinyin first letter
/*------Increase: yl--*/
Use of Nlssort functions in Oracle
Nlssort (), used for language sorting
Pinyin
SELECT * from Team orders by Nlssort (sort field name, ' Nls_sort = Schinese_pinyin_m ')
Strokes
SELECT * from Team orders by Nlssort (sort field name, ' Nls_sort = Schinese_stroke_m ')
Radical
SELECT * from T
In actual projects, we may need to use Chinese characters to generate pinyin into a database. For example, to generate a pinyin url for news titles, or to splice the category items for easy query, there are many application scenarios. My current project is to generate the first pinyin for the sub-city substation as the
; charset ['out'], $ word);} return $ nstr;}/*** obtain the core function * @ param string $ word, gbk encoding * @ return string, UTF-8 encoding */protected function _ getInitial ($ word) {$ high = ord ($ word {0}); $ low = ord ($ word {1 }); // extract the first letter of 20902 Chinese characters $ hexc = $ high * 256 + $ low; // GBK/2: gb2312 Chinese character
, tenSelect * from # t order by name collate chinese_prc_stroke_cs_as_ks_wsDrop table # t/* Result:Id name-------------------------------4yi2 B3 II5th1 3*/4. Application extension of sorting rules in practiceSQL server Chinese Character sorting rules can be sorted by pinyin, strokes, etc. How can we use this function?To solve
/* Result:ID name-------------------------------42 countries3 personsMedium*/
Example 2: sort the content of the table name column by the last name strokes:
Create Table # T (ID int, name varchar (20 ))
Insert # T select 1, 3Union all select 2, BUnion all select 3, twoUnion all select 4, oneUnion all select 5, tenSelect * from # T order by name collate chinese_prc_stroke_cs_as_ks_wsDrop table # T/* Result:ID name-------------------------------4yi2 B3 II5th1 3*/
4. Application extension of sortin
As a result of the project needs, the middle of the need for a Chinese character to pinyin and the first spell of the function to do the query, feeling that this function has been basically mature, and then find the relevant code, the first to introduce the eye is the following two articles
1.c# Chinese
Python to convert Chinese characters into Pinyin implementation program article a concise dry Chinese character to Pinyin program, copy download can be directly used, the students need to refer to the next.#coding: Utf-8#基于python2.6Table = ' a,-20319;ai,-20317;an,-20304;ang,
programming, the code is relatively simple do not repeat.
Code explanation
Model definition
Code See model/table.py file, for hidden Markov three probability matrix, respectively, designed three data table storage. The advantage is obvious that the transfer probability matrix of Chinese characters is a very large sparse matrix, the direct file storage occupies a large space, and the time of loading can only be read into memory at once, not only high
Later I thought that I had a pinyin player in Delphi.
Code . So I found it. The Code is as follows:
Copy code The Code is as follows: function get_hz_pywb (hzstr: string; pytype: integer): string;
VaR
I: integer;
Allstr: string;
Hh: thandle;
PP: pointer;
SS: tstringlist;
Function retturn_wbpy (tempstr: string; tqtype: integer): string;
VaR
Outstr, STR: string;
I: integer;
Begin
// #################### Chinese
MySQL is sorted by Chinese characters and Pinyin letters, and mysql is sorted by Chinese Characters
If the MySQL encoding format is GBK character set, you can add
Order by name asc; -- sort in ascending order
If the utf8 character set is used, fields must be transcoded
One: Demo:As in the console input: Beijing welcome you
Printed pinyin: Bei Jing Huan Ying ni
Two: Import the jar to depend on:
Chinese character conversion pinyin jar download
Three: Code writing
Copy Code code as follows:
public static string Getpinyin (String src) {
char[] T1 = null;
T1 = Src.tochara
There are times when we need to index a set of data using letters from A to Z. If the data format is all half-width English is easy to achieve, but if the index of a group of Chinese data will cause a little trouble, data input database may not have specified an index letter, This requires the application to automatically generate information for indexing.
In general, the index of Chinese data uses the fir
When using Word2010 to make a 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
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.