parlr / ruby-font-creator

Generate rich Unicode open fonts with custom annotations, transliterations, pronunciations.
21 stars 3 forks source link

Adding Jyutping (粵拼) #45

Open JaJaWa opened 3 years ago

JaJaWa commented 3 years ago

Hello, there are many fonts I can find with pinyin (拼音) on top, but I've never found a font with Jyutping (粵拼) on top.

Would you ever consider creating one?

This would allow you to learn Cantonese pronunciations through the many apps that only support Mandarin.

Thank you.

JaJaWa commented 3 years ago

I've had a look and the Jyutping is in the files as kCantonese. Now I just have to figure out how to compile it.

edouard-lopez commented 3 years ago

You will need to:

  1. extract Jyutping (ruby) text from unihan dataset using https://github.com/parlr/chinese-data/ by modifying https://github.com/parlr/chinese-data/blob/f1af9d1c18/src/chinese.awk to pull kCantonese instead of kMandarin.
  2. generate the JSON file with yarn start

Once this is done you can use ruby-font-creator