pycantonese.jyutping_to_tipa
- pycantonese.jyutping_to_tipa(jp_str)[source]
Convert Jyutping romanization into LaTeX TIPA.
New in version 3.0.0: This function replaces the deprecated equivalent
jyutping2tipa
.- Parameters
- jp_strstr
Jyutping romanization for one or multiple characters
- Returns
- list[str]
- Raises
- ValueError
If the Jyutping romanization is illegal (e.g., with unrecognized elements).
Examples
>>> jyutping_to_tipa("gwong2dung1waa2") # 廣東話, Cantonese ['k\super w ON25', 'tUN55', 'wa25']