PHP Chinese Pinyin Class (UTF-8)
Demo
Demo text: People's Republic of China
You can implement any of the following three conversions
① into Hanyu Pinyin with a tonal tone
Zhōng Huárén Mín Gòng Héguó
② into Hanyu Pinyin with no tone
Zhong Hua ren min gong he guo
③ into the first letter of Hanyu Pinyin
Zhrmghg
If yo
Use CFStringTransform to convert Chinese characters to PinYin (excluding tones) and cfstringtransform
Usage:
NSMutableString * source = [sourceString mutableCopy];
CFStringTransform (_ bridge CFMutableStringRef) source, NULL, kCFStringTransformMandarinLatin, NO );
CFStringTransform (_ bridge CFMutableStringRef) source, NULL, kCFStringTransformStripDiacritics, NO );
Return source;
In this method, kCFStringTr
In Baidu Encyclopedia created an entry, the name is "Local goods (Běn tǔhuò)" When the actual to the entry pinyin found that playing pinyin can not play out the tone, due to the previous repeated each dozen tones of the phrase pinyin, the use of commonly used input method also can't come out, after looking for some inf
With the growing popularity of Apple Mac computers, more and more users will buy a day Mac computer as their own games, office equipment, in office, want to improve work efficiency, text input played a great role, and Mac computer is just for users with a very convenient input method, It can allow the user in the process of input text, add tone for Pingyin, thus greatly improve the accuracy of input, then in the Mac system for Input method to add tone input and? Below see Small series for you to
Other};Later slowly found that the dictionary file there are many errors, such as the 虐 pinyin written in nue (the correct wording should be Nve), 躺 written thang , and does not support Polyphone, so I later based on other dictionary files to regenerate a copy of the dictionary file in this format:
A total of 404 pinyin combinations
6,763 commonly used Chinese characters are included
Suppo
Tags: result requires package COM HTTP BSP collation ACL OracleOracle Kanji Pinyin (get full spell/pinyin initials/Pinyin intercept, etc.)The effect is as follows: Oracle character Set GBK no problem, UTF-8 needs to be modifiedSQL code--oracle Kanji to Pinyin package--1. Get full spellSELECT gethzpy. Gethzfullpy (' kan
Have a lot of friends reaction, do not know how to input phonetic tones in Word, this tutorial is to solve this problem for everyone. Have the need of friends to learn to learn it!
There are two ways of doing this.
Method One:
Use the feature that inserts special characters in Word to enter the tones. After inputting good pinyin, for example: White, Bai, to ad
Pinypinyin. Java pinyin format class
Pinyinhelper. Java Chinese character to PinYin class
Pinyinresource. Java resource file loading class
This article only introduces the conversion of Chinese characters to PinYin pinyinhelper, and the simplified and traditional conversion of chinesehelper is not described. The public interfaces of pinyinhelper are as follows:
Method One: Use the function of inserting special characters in Word to achieve the input of tones. After inputting good pinyin, for example: White, Bai, to add two on a, we directly select a, open "insert" select "Special Characters", with special characters in the pinyin instead. As shown in figure:
Do you understand? It's OK to replace it.
Meth
Oracle Chinese character to PinYin (get full spell/pinyin first letter/pinyin interception, etc.) effect: Oracle Character Set GBK no problem, UTF-8 need to modify the SQL code-oracle Chinese character to PinYin PACKAGE-- 1. Obtain the full spelling www.2cto.com select gethzpy. GETHZFULLPY ('kanji ') from dual; Result:
Conversion
2. Simple Optimization
In fact, the conversion between each other is achieved through key-value pairs, such as a variety of mappings. since the authors use static to save these data dictionaries, these conversion functions are not commonly used in applications. Therefore, it is optimized that objects are released when memory is insufficient by instantiating them.
The optimization scheme here is to store the db data dictionary under the asset/py directory.
Public class
Usually read articles or speeches often encounter some do not read the word, then we need to note the Pinyin, this tutorial for you to introduce how to play phonetic tone. Here I will introduce a few ways to help you.
Operation method
Using the Smart ABC Input method: Switch to Smart ABC, press v first while pressing 8, will pop all phonetic tones, and then choose the tone letter you need.
IOS-how to return the pinyin mnemonic code of a string, ios-pinyin
I also modified the sample code on the Internet based on it. Because projects will be used, I believe many people will also use projects. After implementation, we will share it with you, hoping that it will not take time for later users.
Tip: the regular expression is used here, and a third-party open-source component: RegexKitLite (how to u
The use of soft tones in Web pages is more than just a recent trend, a designer's use of many years of skill to create impactful visuals.When you hear the word "soft", you may think of light pink, light blue, and yellowish color, but this color is far more than these colors. Softness does not necessarily feel like a newborn. These tones can also be quite distinct in some appropriate way, in conjunction with
The use of soft tones in Web pages is not just a recent trend, it is a technique that designers have used for years to create an impact visual effect.
When you hear the word "soft," you may think of light pink, pale blue, and yellowish color, but this color is far more than that. Softness does not necessarily feel like a newborn. These tones can also be quite distinct, in some appropriate way, with other e
I don't know which of the following Chinese and western cultures has integrated Chinese pinyin. This kind of thing is naturally not difficult, but it has brought a disaster to Chinese characters After computer invention. Of course, if Chinese people start to use English at the end, this Chinese Character disaster may not be a good thing, but in any case, it is definitely not the original intention of the Chinese p
sogou Pinyin Input method to enter the pinyin and candidate word inconsistency how to do?
1. What is a fuzzy tone?
Fuzzy tones are designed for people who are easily confused by certain syllables. When the fuzzy tone is enabled, such as Sh
2. How do I set a blur tone?
Right-click the Input Method candidate box-property settings-Advanced Settings-blur tone se
control slider, the beginner may accidentally because of the setting of errors resulting in high light exposure or the loss of dark details of the problem, using a preset is a simple and safe choice. In addition, we will also tell you how to use non-destructive editing methods for the screen to highlight and deepen the processing, so that the details become more prominent.
Separate tones
Black and white photographic works have enough vi
, ang, eng, ING, ONG, assuming the combination of consonant and vowel 22, there will be 24x21=504 combinations, and the actual situation is that some combinations are meaningless, than such as BV, Gie, ve, and so on, after removing this part, there are still 412 species remaining.
Phonetic dictionary file
The size of the dictionary file is described in turn from small to large.
Dictionary one: Pinyin first letter
The contents of the dictionary fil
In the examination paper typesetting, or textbook typesetting often encounter pinyin tone spelling input problem, the first encounter this problem often overwhelmed, here blue1000 to word2003 as an example of how to play in word pinyin tone.
① will need to add phonetic tones of Chinese characters to the Word document, and then add 1 to 2 spaces between each char
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.