<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[12pt]{article}

\usepackage{fontspec}
\usepackage{polyglossia}

\usepackage{makeidx}
\makeindex

\setdefaultlanguage{thai}
\setromanfont{Noto Serif}
%\setmainfont{Noto Serif}
\setsansfont{Noto Serif}
\setmainfont{Noto Serif Thai}[Language=Thai,Script=Thai]
\newfontfamily\englishfont{Noto Serif}
\setotherlanguage{english}

\pagestyle{empty}
\begin{document}
\thispagestyle{empty}

à¸«à¸¡à¸²\index{à¸«à¸¡à¸²}
à¸«à¸¡à¸¹\index{à¸«à¸¡à¸¹}
à¹à¸¡à¸§\index{à¹à¸¡à¸§}
à¹„à¸¡à¹ˆà¸¡à¸µà¸›à¸±à¸à¸«à¸²\index{à¹„à¸¡à¹ˆà¸¡à¸µà¸›à¸±à¸à¸«à¸²}
à¸¡à¸²\index{à¸¡à¸²}
à¸«\index{à¸«}
à¸¡\index{à¸¡}

\printindex

\end{document}

\index{}.
</pre></body></html>