libthai - Thai language support routines, version 0.1.1 LibThai is a set of Thai language support routines aimed to ease developers' tasks to incorporate Thai language support in their applications. It includes important Thai-specific functions e.g. word breaking, input and output methods as well as basic character and string supports. LibThai is an Open Source and collaborative effort initiated by Thai Linux Working Group and opened for all contributors.

LibThai Functions by Category
LibThai provides functions to hadle both tis-620 character set(single-byte) and unicode(multi-byte). A function name which includes `w', for example, th_wbrk is unicode version of th_brk function. th_istis, th_isthai, th_iseng, th_isthcons, th_isthvowel, th_isthtone, th_isthdiac, th_isthdigit, th_isthpunct, th_istaillesscons, th_isovershootcons, th_isundershootcons, th_isundersplitcons, th_isldvowel, th_isflvowel, th_isupvowel, th_isblvowel, th_chlevel, th_iscombchar, th_wcistis, th_wcisthai, th_wciseng, th_wcisthcons, th_wcisthvowel, th_wcisthtone, th_wcisthdiac, th_wcisthdigit, th_wcisthpunct, th_wcisldvowel, th_wcisflvowel, th_wcisupvowel, th_wcisblvowel, th_wcchlevel, th_wciscombchar th_brk, th_brk_line, th_wbrk, th_wbrk_line th_strcoll, th_strxfrm, th_wcstrcoll, th_wcstrxfrm th_normalize, th_wnormalize th_next_cell, th_prev_cell, th_make_cells, th_wcnext_cell, th_wcmake_cells, th_isaccept, th_validate, th_wcisaccept, th_wcvalidate th_render_cell_tis, th_render_cell_win, th_render_cell_mac, th_render_text_tis, th_render_text_win, th_render_text_mac, th_wcrender_cell_tis, th_wcrender_cell_win, th_wcrender_cell_mac, th_wcrender_text_tis, th_wcrender_text_win, th_wcrender_text_mac th_tis2uni, th_tis2uni_line, th_winthai2uni, th_macthai2uni, th_uni2tis, th_uni2tis_line, th_uni2winthai, th_uni2macthai

Brief explanation
Find word break positions in Thai string.

int th_brk(const thchar_t *s, int pos[], size_t n);

s - input string to be processed
pos - an array to keep breaking positions
n - size of pos[]
On return - At most n breaking positions stored in pos[] from left to right.
Project Leader
Theppitak Karoonboonyanan <thep@linux.thai.net>
Members
Chanop Silpa-Anan <chanop@syseng.anu.edu.au>
Pattara Kiatisevi <ott@linux.thai.net>
Vuthichai Ampornaramveth <vuthi@nii.ac.jp>
Poonlap Veerathanabutr <Poonlap.Veerathanabutr@sun.co.jp>