2

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:

\documentclass[14pt,a4paper]{book}
\usepackage{polyglossia}
\setdefaultlanguage{arabic}
\setotherlanguage{english}
\setmainfont[Mapping=tex-text]{Noto Arabic Naskh}

\begin{document}
 وقوله صلَّى الله عليه وسلَّم: «مَنْ أصبَحَ منكُم آمنًا فِي سِرْبِهِ، مُعَافًى فِي جَسَدِهِ، عِندَهُ قوتُ يومِهِ، فكأنَّما حِيزَت لَهُ الدُّنيا» [رواه التِّرمذي (2346)، وصحَّحه ابن حبَّان (671) والألباني في «الصَّحيحة» (2318)].
\end{document}
Andrew Swann
  • 95,762
  • 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). – خالد حسني Jun 13 '17 at 19:14
  • @KhaledHosny I made mistake, so I corrected see the snippet, So should I do to see missed parenthesis? – Oussama He Jun 14 '17 at 08:03
  • 1
    You either need to use a different font, or try to do font fallback. – خالد حسني Jul 02 '17 at 02:17
  • Here is a useful link for font fallback as @KhaledHosny answered. It helped with my document. – N. Osil Jun 27 '20 at 10:41

1 Answers1

1

I have the same issue and resolved it by using the latest Noto Naskh Arabic downloaded from google fonts;

enter image description here