Pinyin format.


Define Documentation

#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.


Enumeration Type Documentation

Enumerator:
PINYIN_ACCENT_ALWAYS  ü is always represented as ü, ê is always represented as ê.
PINYIN_ACCENT_ORIGINAL  MOE CN standard ISO 7098:1991. Trivial accent mark is omitted.
PINYIN_ACCENT_UNIHAN  ü is represented as ü, ê is represented as e.
PINYIN_ACCENT_TRAILING  ü is represented as u:, ê is represented as e.
PINYIN_ACCENT_INPUT_METHOD  ü is represented as v, ê is represented as e.
PINYIN_ACCENT_NONE  ü is represented as u, ê is represented as e.
PINYIN_ACCENT_INTERNAL  ü is represented as v, ê is represented as E.


Function Documentation

PinyinFormatFlags pinyinAccentFormat_to_pinyinFormatFlags ( PinyinAccentFormat  toFormat,
gboolean  useTrailNumber 
)

This function converts PinyinAccentFormat to PinyinFormatFlags.

Parameters:
toFormat PinyinAccentFormat to be converted.
useTrailNumber TRUE trailing number is preferred, FALSE to use traditional tonemark.
Returns:
Converted Pinyin format flags


Generated on Tue Jan 13 10:49:25 2009 for libUnihan by  doxygen 1.5.7.1