Back to top


Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2404 of /usr/share/drupal7/includes/


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.



SWATH is currently developed at GitHub.

Developer Channels

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