# Arabic Right to Left using Luatex

I need to write some text in arabic using Latex. It is important for me to compile the tex file using Lualatex (here I report a minimal working example, but the document class I am originally using needs Lualatex).

Everything works fine except from the fact that the text is printed in the wrong direction. Any suggestion on how to fix this?

\documentclass{article}

\usepackage{fontspec}
\newfontfamily\afont[Script=Arabic]{Amiri}
\usepackage[voc]{arabtex}
\begin{document}

\afont{استطلاع}

\end{document}

• You probably want to load babel or polyglossia to deal with languages that are not English. – moewe Jul 23 '18 at 12:22
• Not really, because using these packages my document is crashing ("sdaps" document class [sdaps.org/]). I am only looking for a way to invert the letters' flow under the setting proposed in the main question. – Caserio Jul 23 '18 at 12:30
• Have you tried the arabluatex package? It works very well, though I don’t know whether it’s compatible with “sdaps.” – Thérèse Jul 23 '18 at 12:44
• This question should be merged into tex.stackexchange.com/questions/442720/… since it clarifies that first question, and neither is complete without the other. – Thérèse Jul 23 '18 at 12:52
• The original question has been updated with an example using Sdaps. However, given that few have (or want) sdaps on their machines, and also because the one posted here it is a problem in itself, I have posted a new question with a much easier example to reproduce. – Caserio Jul 23 '18 at 12:56

[...]