cjklib.reading.operator.ShanghaineseIPAOperator is an implementation of a transcription of Shanghainese into the International Phonetic Alphabet (IPA).
Features:
Bases: cjklib.reading.operator.TonalIPAOperator
Provides an operator on strings in Shanghainese (Chinese Wu as spoken in Shanghai) written in the International Phonetic Alphabet (IPA).
Parameters: |
|
---|
Splits the given plain syllable into onset (initial) and rhyme (final).
Parameter: | plainSyllable (str) – syllable in IPA without tone marks |
---|---|
Return type: | tuple of str |
Returns: | tuple of syllable onset and rhyme |
Raises InvalidEntityError: | |
if the entity is invalid (e.g. syllable nucleus or tone invalid). |
Gets the list of plain entities supported by this reading. These entities will carry no tone mark.
Return type: | set of str |
---|---|
Returns: | set of supported syllables |
Checks if the given plain entity and tone combination is valid.
This method will always return True by default. If option 'constrainEntering' is set entering tone are only accepted for syllables with glottal stop /ʔ/`. If option ``'constrainToneCategories' is set Yin tones will are only accepted with voiceless and Yang tones only with voiced initials.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if given combination is valid, False otherwise |