cjklib.reading.operator.JyutpingOperator is a mature implementation of the modern Jyutping romanisation for Cantonese developed by the Linguistic Society of Hong Kong (LSHK). Jyutping is frequently used online.
Bases: cjklib.reading.operator.TonalRomanisationOperator
Provides an operator for the Cantonese romanisation Jyutping made by the Linguistic Society of Hong Kong (LSHK).
Parameters: |
|
---|
Splits the given plain syllable into onset (initial) and rhyme (final).
The syllabic nasals m, ng will be regarded as being finals.
Returned strings will be lowercase.
Parameter: | plainSyllable (str) – syllable without tone marks |
---|---|
Return type: | tuple of str |
Returns: | tuple of entity onset and rhyme |
Raises InvalidEntityError: | |
if the entity is invalid. |
Todo
Checks if the given plain syllable can occur with stop tones which is the case for syllables with unreleased finals.
Parameter: | plainEntity (str) – entity without tonal information |
---|---|
Return type: | bool |
Returns: | True if given syllable can occur with stop tones, False otherwise |
Checks if the given plain entity and tone combination is valid.
Only syllables with unreleased finals occur with stop tones, other forms must not (see hasStopTone()).
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if given combination is valid, False otherwise |