openvanilla / McBopomofo

小麥注音輸入法
http://mcbopomofo.openvanilla.org/
MIT License
624 stars 76 forks source link

Keep BPMFMapping.txt and phrase.occ sorted #447

Closed lukhnos closed 5 months ago

lukhnos commented 7 months ago

From @xatier:

On the ordering issue, I have this little script locally to keep my user dictionary nice and neat, I would suggest having sometime similar in this repo.

https://gist.github.com/xatier/9f34fb64884e3cbfd66f24716beb6e7a

Originally posted by @xatier in https://github.com/openvanilla/McBopomofo/issues/437#issuecomment-1962227613

xatier commented 7 months ago

I believe this can help our data sources to be easily maintainable :)

I'm simply relying on the default string ordering, we can also make a customized compare function for sorting in ㄅㄆㄇㄈ order with intonations.