|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pinyin4j.PinyinFormatter
class PinyinFormatter
Contains logic to format given Pinyin string
Constructor Summary | |
---|---|
PinyinFormatter()
|
Method Summary | |
---|---|
private static java.lang.String |
convertToneNumber2ToneMark(java.lang.String pinyinStr)
Convert tone numbers to tone marks using Unicode Algorithm for determining location of tone mark A simple algorithm for determining the vowel on which the tone mark appears is as follows: First, look for an "a" or an "e". |
(package private) static java.lang.String |
formatHanyuPinyin(java.lang.String pinyinStr,
HanyuPinyinOutputFormat outputFormat)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PinyinFormatter()
Method Detail |
---|
static java.lang.String formatHanyuPinyin(java.lang.String pinyinStr, HanyuPinyinOutputFormat outputFormat) throws BadHanyuPinyinOutputFormatCombination
pinyinStr
- unformatted Hanyu Pinyin stringoutputFormat
- given format of Hanyu Pinyin
BadHanyuPinyinOutputFormatCombination
private static java.lang.String convertToneNumber2ToneMark(java.lang.String pinyinStr)
pinyinStr
- the ascii represention with tone numbers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |