public class HanyuPinyinToneType extends Object
Chinese has four pitched tones and a "toneless" tone. They are called Píng(平, flat), Shǎng(上, rise), Qù(去, high drop), Rù(入, drop) and Qing(轻, toneless). Usually, we use 1, 2, 3, 4 and 5 to represent them.
This class provides several options for output of Chinese tones, which are listed below. For example, Chinese character '打'
| Options | Output |
|---|---|
| WITH_TONE_NUMBER | da3 |
| WITHOUT_TONE | da |
| WITH_TONE_MARK | dǎ |
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
name |
static HanyuPinyinToneType |
WITH_TONE_MARK
The option indicates that hanyu pinyin is outputted with tone marks
|
static HanyuPinyinToneType |
WITH_TONE_NUMBER
The option indicates that hanyu pinyin is outputted with tone numbers
|
static HanyuPinyinToneType |
WITHOUT_TONE
The option indicates that hanyu pinyin is outputted without tone numbers
or tone marks
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
HanyuPinyinToneType(String name) |
public static final HanyuPinyinToneType WITH_TONE_NUMBER
public static final HanyuPinyinToneType WITHOUT_TONE
public static final HanyuPinyinToneType WITH_TONE_MARK
protected String name
protected HanyuPinyinToneType(String name)
Copyright © 2016. All Rights Reserved.