SWATH (Smart Word Analysis for THai) is a general-purpose utility for analyzing word boundaries in Thai text and inserting predefined word delimiter codes. It can be used to preprocess Thai LaTeX documents so that the lines are wrapped properly when typeset with LaTeX using Thai LaTeX macros. Other formats that SWATH can also handle include HTML, RTF and plain text.

Since version 0.4.0, SWATH requires libdatrie as the dictionary engine. So, you need to install it before compiling SWATH.


Win32 port is coming soon...


See ThaiLaTeX Announcements.



SWATH is released under the terms of GNU General Public License version 2.0 or later.

Developer Channels

We use thai-linux-foss-devel mailing list as our communication channel for SWATH development.