canidlogic / cantotype

Cantonese/Chinese phonetic typing and dictionary
MIT License
0 stars 0 forks source link

Yale lookup broken for syllables ending in h #3

Closed canidlogic closed 2 years ago

canidlogic commented 2 years ago

For example, trying looking up "ngo'h" for the first-person pronoun "I" in Cantonese.

canidlogic commented 2 years ago

Code analysis indicates that we were checking for "h" marker trailing the last vowel BEFORE we remove the apostrophes. To fix this, just move the apostrophe checking and removal code to before the "h" marker check. This bug would actually affect any syllable of tone 5.