I use polyglossia in arabic tex files and I want to use the verbatim environment to write the Latex commands for a user's manual. All works well, with adding the command '\let\arabicfonttt\ttfamily' if we write english characters but it doesn't recognize I think the arabic character. How I can I fix it ? I give a simple example, where we can see that arabic letters are completely omitted.
\documentclass[12pt,a4paper]{article}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2,AutoFakeSlant=-0.02]{Traditional Arabic}
\let\arabicfonttt\ttfamily
\setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}
\begin{document}
\begin{english}
\begin{verbatim}
The command \LaTeX prints the Latex logo.
أمر
\LaTeX
يعطي لوجو لاتخ
\end{verbatim}
\end{english}
\end{document}
One can see that only the word \LaTeX of
أمر
\LaTeX
يعطي لوجو لاتخ
is taken in account
\let\arabicfonttt\ttfamily
you have to do\setmonofont{DejaVu Sans Mono}
or any other monospaced font supporting Arabic.