I have an Arabic text. When compiling using XeLaTeX and the Noto Naskh Arabic font I can't get the parentheses, instead I got rectangles.

enter image description here

An extract from the code:

\setmainfont[Mapping=tex-text]{Noto Arabic Naskh}

 وقوله صلَّى الله عليه وسلَّم: «مَنْ أصبَحَ منكُم آمنًا فِي سِرْبِهِ، مُعَافًى فِي جَسَدِهِ، عِندَهُ قوتُ يومِهِ، فكأنَّما حِيزَت لَهُ الدُّنيا» [رواه التِّرمذي (2346)، وصحَّحه ابن حبَّان (671) والألباني في «الصَّحيحة» (2318)].
  • If you just have 0123456789 and no other text (but the same preamble), do you still have the problem? – Teepeemm Jun 13 '17 at 17:43
  • @Teepeemm If I understood you, I should not have this problem if I have text and no numbers between parentheses, this is also doesn't work. – Oussama He Jun 13 '17 at 17:49
  • I'm assuming this is a font encoding problem. But it would be easier for us to debug if the problem persists even if you have \begin{document}()\end{document}. – Teepeemm Jun 13 '17 at 18:00
  • @Teepeemm the problem persists even I have \begin{document}()\end{document}. – Oussama He Jun 13 '17 at 18:04
  • 1
    The code you show uses Amiri while the screenshot for the output shows Noto Arabic Naskh. Noto fonts are split into separate fonts per script, which most of common punctuation present only in the base fonts (Noto Sans, Noto Serif), you your font missed the parenthesis characters and XeTeX doesn’t support font fallback (unlike most modern applications). – Khaled Hosny Jun 13 '17 at 19:14

Your Answer

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

Browse other questions tagged or ask your own question.