Home | Trees | Indices | Help |
|
---|
|
Defines an operator on strings of a tonal language written in the International Phonetic Alphabet (IPA).
TonalIPAOperator 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.
Tones in IPA can be expressed using different schemes. The following schemes are implemented here:
To Do (Lang): Shed more light on representations of tones in IPA.
To Do (Fix): Get all diacritics used in IPA as tones for TONE_MARK_REGEX.
|
|||
|
|||
list |
|
||
list of str |
|
||
str |
|
||
str |
|
||
tuple |
|
||
str |
|
||
Inherited from Inherited from Inherited from |
|
|||
dict |
|
|
|||
TONE_MARK_REGEX =
|
|||
DEFAULT_TONE_MARK_TYPE =
Tone mark type to select by default. |
|||
TONES =
List of tone names. |
|||
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 TonalIPAOperator. 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.
|
Decomposes the given string into basic entities that can be mapped to one Chinese character each (exceptions possible). The returned list contains a mix of basic reading entities and other characters e.g. spaces and punctuation marks. Single syllables can only be found if distinguished by a period or whitespace, such as compose() would return.
|
Composes the given list of basic entities to a string. IPA syllables are separated by a period.
|
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/).
To Do (Impl): Place diacritics on main vowel, derive from IPA representation. |
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 tone for the given tone mark.
|
|
TONE_MARK_REGEX
|
TONESList of tone names. Needs to be implemented in child class.
|
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:40 2009 | http://epydoc.sourceforge.net |