#define PINYIN_FORMAT_FLAG_ASCII_ONLY 0x10 |
With this flag, ü is outputted as v, and ê is as E. If PINYIN_FORMAT_FLAG_NFD
is also set, diaeresis '‥' (U+0302) is converted to ':'; while circumflex '^' (U+0302) is converted. Show only ASCII symbol, ü is outputted as v, and ê is as E,
#define PINYIN_FORMAT_FLAG_STRIP_TRIVIAL_ACCENT 0x1 |
This flag indicate that trivial accents, that is, combining circumflex '^' (U+0302) or diaeresis accent '‥' (U+0302) which are omissible, should be stripped.
#define PINYIN_FORMAT_FLAG_TONE_AS_ACCENT 0x20 |
By default the tone is represented as trailing number of With this flag, ü is outputted as v, and ê is as E. If PINYIN_FORMAT_FLAG_NFD
is also set, diaeresis '‥' (U+0302) is converted to ':'; while circumflex '^' (U+0302) is converted.
enum PinyinAccentFormat |
PinyinFormatFlags pinyinAccentFormat_to_pinyinFormatFlags | ( | PinyinAccentFormat | toFormat, | |
gboolean | useTrailNumber | |||
) |
This function converts PinyinAccentFormat
to PinyinFormatFlags
.
toFormat | PinyinAccentFormat to be converted. | |
useTrailNumber | TRUE trailing number is preferred, FALSE to use traditional tonemark. |