ZBedic Patched for Thai

zbedic is a very useful dictionary program for the Zaurus written by Latchesar Ionkov and Rafal Mantiuk.

Sorting Thai words into order is nontrivial because of the presence of leading vowels and tone markers. Theppitak Karoonboonyanan has written a useful guide to Thai sorting algorithms. The original zbedic supports user defined character precedence when generating a dictionary file but this is not sufficient to support Thai therefore I have patched the bedic library to support Thai dictionary order. I implemented the method by Londe and Warotamasikkhadit.

Screenshots

The difference is in the list of words on the left.
Original sort Thai specific sort
Before patching After patching

Notes on Creating Thai Dictionary Files

Asides from my other tips for creating zbedic dictionary files, when using this patched version:
  • You will need to generate the dictionary file using the version of mkbedic built from the patched libbedic.
  • You do not need to set char-precedence, it will be ignored if you do.
  • There are no default search-ignore-chars.

Download

Note: If you do not use Thai dictionaries then there is no benefit to using my patched version.