| 程序包 | 说明 |
|---|---|
| net.sourceforge.pinyin4j |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
PinyinHelper.toHanyuPinyinString(String str,
HanyuPinyinOutputFormat outputFormat,
String seperater)
已过时。
DO NOT use it again because the first retrived pinyin string
may be a wrong pronouciation in a certain sentence context.
This interface will be removed in next release.
|
static String[] |
PinyinHelper.toHanyuPinyinStringArray(char ch,
HanyuPinyinOutputFormat outputFormat)
Get all Hanyu Pinyin presentations of a single Chinese character (both
Simplified and Tranditional)
For example,
If the input is '间', the return will be an array with two Hanyu Pinyin strings: "jian1" "jian4" If the input is '李', the return will be an array with single Hanyu Pinyin string: "li3" Special Note: If the return is "none0", that means the input Chinese character is in Unicode CJK talbe, however, it has no pronounciation in Chinese |
Copyright © 2013. All Rights Reserved.