Home | Trees | Indices | Help |
|
---|
|
Provides an operator on strings of the Cantonese language written in the International Phonetic Alphabet (IPA).
CantonteseIPAOperator does not supply the same closed set of syllables as other ReadingOperators as IPA provides different ways to represent pronunciation. Because of that a user defined IPA syllable will not easily map to another transcription system and thus only basic support is provided for this direction.
This operator supplies an additional method getOnsetRhyme() which allows breaking down syllables into their onset and rhyme.
Features:
Tones in IPA can be expressed using different schemes. The following schemes are implemented here:
See Also:
|
|||
|
|||
list |
|
||
set of str |
|
||
tuple of str |
|
||
str |
|
||
tuple |
|
||
str |
|
||
str |
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
dict |
|
|
|||
READING_NAME =
Unique name of reading |
|||
TONES =
List of tone names. |
|||
STOP_TONES =
Cantonese stop tone mapping to general level tones. |
|||
STOP_TONES_EXPLICIT =
Cantonese stop tone mapping to general level tones with stop tones realised for explicit marking short/long pronunciation. |
|||
TONE_MARK_PREFER =
Mapping of tone marks to tone name which will be preferred on ambiguous mappings. |
|||
TONE_MARK_MAPPING =
Mapping of tone names to tone mark for each tone mark type. |
|||
Inherited from |
|
|||
Inherited from |
|
Creates an instance of the CantoneseIPAOperator. By default no tone marks will be shown.
|
Returns the reading operator's default options. The default implementation returns an empty dictionary. The keyword 'dbConnectInst' is not regarded a configuration option of the operator and is thus not included in the dict returned.
|
Returns a set of tones supported by the reading. These tones don't necessarily reflect the tones of the underlying language but may defer to reflect notational or other features. The default implementation will raise a NotImplementedError.
|
Gets the list of plain entities supported by this reading. Different to getReadingEntities() the entities will carry no tone mark. The default implementation will raise a NotImplementedError.
|
Splits the given plain syllable into onset (initial) and rhyme (final).
|
Gets the entity with tone mark for the given plain entity and tone. The plain entity returned will always be in Unicode's Normalization Form C (NFC, see http://www.unicode.org/reports/tr15/).
|
Splits the entity into an entity without tone mark and the name of the entity's tone. The plain entity returned will always be in Unicode's Normalization Form C (NFC, see http://www.unicode.org/reports/tr15/).
|
Gets the explicit tone for the given plain syllable and base tone. In case the 6 (7) base tones are used, the stop tone value can be deduced from the given syllable. The stop tone returned will be even more precise in denoting the vowel length that influences the tone contour.
|
Gets the base tone (one of the 6/7 general tones) for the given tone mark.
|
|
TONESList of tone names. Needs to be implemented in child class.
|
STOP_TONESCantonese stop tone mapping to general level tones.
|
STOP_TONES_EXPLICITCantonese stop tone mapping to general level tones with stop tones realised for explicit marking short/long pronunciation.
|
TONE_MARK_PREFERMapping of tone marks to tone name which will be preferred on ambiguous mappings. Needs to be implemented in child classes.
|
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:37 2009 | http://epydoc.sourceforge.net |