3

I am having issues with square brackets, parentheses, etc. in Arabic environment with unicode input. I appreciate any help: Here is a MWE:

\documentclass{article}
\usepackage{arabluatex}
\newfontfamily\arabicfont{Amiri}[Script=Arabic]
\begin{document}
\begin{txarab}
        هَيَّا (نَنْزِلْ) إِلَيْهِمْ وَنُبَلْبِلْ \abraces{لِسَانَهُمْ}، حَتَّى لَا <يَفْهَمَ> [بَعْضُهُمْ] كَلامَ بَعْضٍ.%
\end{txarab}

\begin{arab}[fullvoc]
    hayyA (nanzil) 'ilayhim wa nubalbil \abraces{lisAnahum}, .hattY lA <yafhama> [b`.duhum] kalAm ba`.diN. 
\end{arab}
    
\end{document}

enter image description here

1

The txarab environment does not call the functions that process braces and parentheses, contrary to arab. So this will work:

\begin{arab}
        هَيَّا (نَنْزِلْ) إِلَيْهِمْ وَنُبَلْبِلْ \abraces{لِسَانَهُمْ}، حَتَّى لَا <يَفْهَمَ> [بَعْضُهُمْ] كَلامَ بَعْضٍ.%
\end{arab}

That said, it is advisable not to use arab with Unicode Arabic, except in cases like this one, of course.

2
  • Thank you so much! Important exception to note. – yacine Apr 27 at 10:10
  • You are welcome. As a general principle, arab should only be used with unicode input when such functions as this one are needed. – Robert Alessi Apr 27 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.