aiongg / khiin

Khí-ín Tâi-gí phah jī hoat 起引台語拍字法
MIT License
4 stars 3 forks source link

Move raw input generation to khiin-data #3

Closed aiongg closed 1 year ago

aiongg commented 1 year ago

Currently, the database contains entries in Lômájī, and we generate the raw input sequences (e.g. Lo5ma2ji7) here. This logic should be moved out of the engine and into khiin-data so that it is available statically within the engine and does not need to be generated dynamically. The original idea was to allow users to select their own keys for certain items like tones, and regenerate these input sequence maps on demand. However, this generation is too slow and making it happen in a background thread was more difficult than expected. Moving it into khiin-data (in Python) would be much easier at this point.

aiongg commented 1 year ago

The table generation on khiin-data side are done: https://github.com/aiongg/khiin-data/commit/4e6fcca00f58a428e32a6d6a130118eb7f951d05

Now it just needs to be implemented in Database.cpp and Dictionary.cpp.

aiongg commented 1 year ago

Finished by #4