-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cantonese Jyutping Support #25
base: main
Are you sure you want to change the base?
Conversation
Rebase against latest. Can you squash where necessary? Can you take out the version part so it can be changed when the release is cut? |
As you can tell, I don't spend a lot of time on my Chinese GitHub projects anymore. Thanks for contributing! This is a great start. It will need some work before it's ready to merge. I'm happy to work with you on the things that need to be changed.
I'd suggest using a resource like these three charts to create a regular expression pattern like the Zhuyin and Pinyin ones in Zhon. Here is a short example of characters = 'bpmfdtnlgkhwzcsjaeiouy'
marks = '123456'
syl = syllable = (
'(?:'
'(?:(?:[gk]w|[bpmfdtnlzcsgkhwj])?aa)|'
'(?:(?:[gk]w|ng|[bpmfdtnlzcsgkhwj])?ai)'
')[{marks}]'
).format(marks=marks) |
Awesome! Thanks for the help! Will get to it when I can :-) |
For implementation in dragonmapper...