This package allows you to input Thai characters directly to
LaTeX documents and choose any (system wide) Thai fonts for
typesetting in XeLaTeX. It also tries to appropriately justify
paragraphs with no more external tools. Required packages are
fontspec, ucharclasses, polyglossia, setspace, kvoptions,
xstring, and xpatch.