Home | Trees | Indices | Help |
|
---|
|
Provides an operator on strings in Mandarin Chinese written in the International Phonetic Alphabet (IPA).
Features:
Tones in IPA can be expressed using different schemes. The following schemes are implemented here:
Unlike other operators for Mandarin, distinction is made for six different tonal occurrences. The third tone is affected by tone sandhi and basically two different tone contours exist. Therefore getTonalEntity() and splitEntityTone() work with string representations as tones defined in TONES. Same behaviour as found in other operators for Mandarin can be achieved by simply using the first character of the given string:
>>> from cjklib.reading import operator >>> ipaOp = operator.MandarinIPAOperator(toneMarkType='IPAToneBar') >>> syllable, toneName = ipaOp.splitEntityTone(u'mən˧˥') >>> tone = int(toneName[0])
The implemented schemes render tone information differently. Mapping might lose information so a full back-transformation can not be guaranteed.
|
|||
set of str |
|
||
tuple of str |
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
READING_NAME =
Unique name of reading |
|||
TONE_MARK_PREFER =
Mapping of tone marks to tone name which will be preferred on ambiguous mappings. |
|||
TONES =
List of tone names. |
|||
TONE_MARK_MAPPING =
Mapping of tone names to tone mark for each tone mark type. |
|||
Inherited from |
|
|||
Inherited from |
|
Gets the list of plain entities supported by this reading. These entities will carry no tone mark.
|
Splits the given plain syllable into onset (initial) and rhyme (final).
|
|
TONE_MARK_PREFERMapping of tone marks to tone name which will be preferred on ambiguous mappings. Needs to be implemented in child classes.
|
TONESList of tone names. Needs to be implemented in child class.
|
TONE_MARK_MAPPINGMapping of tone names to tone mark for each tone mark type. Needs to be implemented in child classes.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 19 22:38:38 2009 | http://epydoc.sourceforge.net |