Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

127.8. libthai-0.1.30

Thai word segmentation — where pango may wrap a line of Thai

0.1.30-1 · LGPL-2.1-or-later · 0.2 SBU · 712.5 KiB, 23 files · 41_system, 678 of 1047 · ports/core/i18n/libthai

Homepage: https://linux.thai.net/projects/libthai

Why it is in KDOS. The comment above the 3 ports from libunibreak to libthai in script/phases/41_system/packages.d/i18n.txt:

Where a line of text may break: libunibreak for libass's subtitles (UAX #14), and libthai over libdatrie's trie for pango, because Thai has no spaces between words.

Depends on: libdatrie, pkgconf.

Required by (1): pango.

Sources: libthai-0.1.30.tar.xz (425.8 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libthai'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--disable-doxygen-doc
make
make DESTDIR=$PKG install

Libraries: libthai.so.

Directories: /usr/include/thai, /usr/share/libthai, /usr/share/licenses/libthai.