% arara: xelatex
% arara: makeglossaries if found("aux", "@istfilename")
% arara: xelatex
\documentclass{report}

\usepackage{fontspec}
\setmainfont{Linux Libertine O}

\usepackage[xindy,diglyphs]{testidx-glossaries}

% Try this example out with different xindy language modules:
%\GlsSetXdyLanguage{dutch}
%\GlsSetXdyLanguage{icelandic}
%\GlsSetXdyLanguage{hungarian}
%\GlsSetXdyLanguage{polish}

\renewcommand*{\glstreenamefmt}[1]{#1}

\GlsAddXdyAttribute{tstidxencapi}
\GlsAddXdyAttribute{tstidxencapii}
\GlsAddXdyAttribute{tstidxencapiii}

% define a "Maths" group for keys starting with ">"

\GlsAddLetterGroup{Maths}{:prefixes (">" ) :before "glsnumbers"}

% define a "Markers" group for keys starting with "<"

\GlsAddLetterGroup{Markers}{:prefixes ("<" ) :before "Maths"}

\tstidxmakegloss

\begin{document}
\testidx

\tstidxprintglossaries

\end{document}
