Home | Trees | Indices | Help |
|
---|
|
Provides a converter between the Cantonese romanisation systems Jyutping and Cantonese Yale.
Upper or lower case will be transfered between syllables, no special formatting according to the standards will be made. Upper/lower case will be identified according to three classes: either the whole syllable is upper case, only the initial letter is upper case or otherwise the whole syllable is assumed being lower case.
As described in CantoneseYaleOperator the Cantonese Yale romanisation system makes a distinction between the high level tone and the high falling tone in general while Jyutping does not. On conversion it is thus important to choose the correct mapping. This can be configured by applying a special instance of a CantoneseYaleOperator.
|
|||
|
|||
str |
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
CONVERSION_DIRECTIONS =
List of tuples for specifying supported conversion directions from reading A to reading B. |
|||
DEFAULT_READING_OPTIONS =
Defines default reading options for the reading used to convert from (to resp.) before (after resp.) converting to (from resp.) the user specified dialect. |
|||
DEFAULT_TONE_MAPPING =
Mapping of Jyutping tones to Yale tones. |
|
|||
Inherited from |
|
Creates an instance of the JyutpingYaleConverter.
|
Converts a basic entity (e.g. a syllable) in the source reading to the given target reading. This method is called by convertEntities() and a lower case entity is given for conversion. The returned value should be in lower case characters too, as convertEntities() will take care of capitalisation. If a single entity needs to be converted it is recommended to use convertEntities() instead. In the general case it can not be ensured that a mapping from one reading to another can be done by the simple conversion of a basic entity. One-to-many mappings are possible and there is no guarantee that any entity of a reading recognised by operator.ReadingOperator.isReadingEntity() will be mapped here. The default implementation will raise a NotImplementedError.
|
|
CONVERSION_DIRECTIONSList of tuples for specifying supported conversion directions from reading A to reading B. If both directions are supported, two tuples (A, B) and (B, A) are given.
|
DEFAULT_READING_OPTIONSDefines default reading options for the reading used to convert from (to resp.) before (after resp.) converting to (from resp.) the user specified dialect. The most general reading dialect should be specified as to allow for a broad range of input.
|
DEFAULT_TONE_MAPPINGMapping of Jyutping tones to Yale tones. Tone 1 needs to be handled independently.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 19 22:38:36 2009 | http://epydoc.sourceforge.net |