Ios/mac OS X kanji to pinyin network Popular Chinese pinyin program is a phonetic code table with a fast speed. In fact, the core Foundation also provides a solution, but also with a tone!Java code
nsmutablestring *ms = [[Nsmutablestring alloc] initwithstring:@"I am Chinese"];
if (Cfstringtransform (__bridge cfm
Stringhelper String Handling HelpThe features that have been implemented now are:1. Fill the left side of the source string with the given character to reach the specified length2. Fills the right side of the source string with the given character to reach the specified length3. function to turn half angle (DBC case)4. function to turn full angle (SBC case)5. Chinese pinyin abbreviation6. Take the phonetic
PHP: Chinese character to pinyin (full spelling and first letter ). Chinese character to pinyin (full spelling and first letter )? A-20319, ai-20317, an-20304, ang-20295, ao-20292, ba-20283, ban-20257, bang-20242, bai-20265
Conversion of Chinese characters to
Original requirements:
The OA system used SSH + extjs. When we tried it for the customer, the customer began to complain that the Chinese character data in the list was not properly sorted by pinyin, make changes to the customer.
At first, I thought it was a problem with extjs's gird support. Google checked and found that grid only supported ASCII code sorting. Later I thought that my sorting was performed
PHP converts Chinese characters to Pinyin is one of the tasks that programmers often need to operate, although this small function can play a great role, the following is the correct pinyin method of Chinese characters, we can learn from.
The specific code looks like this:
The above code is based on how PHP
Sogou Input method before a period of time can also be normal use, suddenly today can not input Chinese. This situation is very common in Ubuntu, with 3 possible reasons: 1. There may be a problem with the dependency. 2. There is an error in the configuration file. 3 run error, need to reboot.Because my this is a sudden problem, I should be judged to be a configuration file problem.The solution is as follows:1. In the ~/directory there is a hidden fol
This code is a transformation, not too deep technical difficulty, just exclude the original code errors, add some general requirements. Currently, this class can implement the following functions:
1. The basic function of pinyin conversion to Chinese string
2, support and can customize the separator between phonetic words
3, support and can customize whether to capitalize the first letter of phonetic wor
ASP Chinese characters converted into Hanyu Pinyin code, the following code saved as an ASP file to run the results can be seenSet d = CreateObject ("Scripting.Dictionary")D.add "A",-20319D.add "AI",-20317D.add "An",-20304D.add "Ang",-20295D.add "AO",-20292D.add "Ba",-20283D.add "Bai",-20265D.add "Ban",-20257D.add "Bang",-20242D.add "Bao",-20230D.add "Bei",-20051D.add "Ben",-20036D.add "Beng",-20032D.add "B
Chinese character | pinyin | string gets the Chinese phonetic initials in the string (modified according to http://blog.csdn.net/iwebsms/archive/2004/09/28/119851.aspx)
Perhaps the code is bloated, hope to have friends to help correct
Returns the first letter of a given string
private string Indexcode (String indextxt)
{
String _temp=null;
for (int i=0;i_temp
Recently use Sogou Input method, found in the Chinese state, can only play to pinyin, can not play Chinese characters. Start thinking is the input method problem, later in the Sogou Input method prompt bar Right-click, found that there is an "E-English input" This option is on, clicked to make it invalid after found normal, but again switch to other documents or
The recent use of Sogou input method, found in the Chinese state, can only play to pinyin, can not play Chinese characters. Start thinking is the input method of the problem, and then in the Sogou input prompt bar Right, found that there is an "E-English input" this option when the light, click to make it invalid found normal, but again to switch to other documen
Problem Solving ideas: the use of Chinese characters in the computer code to the Chinese character of the first pinyin.
static public string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; for(int i=0;i { myStr += getSpell(strText.Substring(i,1)); } return myStr; } static public string getSpell(string cnChar) { byte[] arrCN = Enco
Php Chinese character to pinyin example. Copy the code as follows :? Bytes
The code is as follows:
Class Helper_Spell {Public $ spellArray = array ();Static public function getArray (){Return unserialize(file_get_contents('pytable_without_tune.txt '));}/*** @ Desc get the first letter of the string* @ Param $ string the string to be converted* @ Param $ whether isOne is the first letter* @ Param $ wheth
This article mainly introduces the example of converting Chinese characters into pinyin in php. For more information, see
The code is as follows:
Class Helper_Spell {
Public $ spellArray = array ();
Static public function getArray (){
Return unserialize(file_get_contents('pytable_without_tune.txt '));
}
/**
* @ Desc get the first letter of the string
* @ Param $ string the string to be converted
* @ Para
", "Zang", "Zao", "Ze", "Zei", "Zen", "Zeng", "Zha", "Zhai", "Zhan", "Zhang","Zhao", "Zhe", "Zhen", "Zheng", "Zhi", "Zhong", "Zhou", "Zhu", "Zhua", "Zhuai", "Zhuan", "Zhuang","Zhui", "Zhun", "Zhuo",#endregion
2. Then is the Pinyin processing method
#region Pinyin Processing
Translate a string of Chinese into pinyinIf a given character is a non-
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.