4

This mwe:

\documentclass[12pt]{article}

\usepackage{fontspec}
\usepackage{etoolbox}
\newfontfamily\libertine{Linux Libertine O}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\newcommand{\arabtext}[1]       % Arabic inside LTR
    {\bgroup\textdir TRT\arabicfont #1\egroup}

\begin{document}

As you can see, this is rightly typeset LTR, but the vowels,
which are seemingly RTL: \arabtext{دَخَلَ مُبتَسِمًا}.

\end{document}

gives me this: enter image description here

I suspect this is a regression, but I may be wrong. Any advice would be much appreciated.

EDIT: To be more precise, each vowel seems to be moved one letter back (i.e. to the right).

EDIT2: With \newfontfamily\arabicfont[Script=Arabic]{Arial Unicode MS} vowels are back to normal. I think that this issue may be related to 285674

  • Are you forced to use lualatex? I feel like it's easier to work with non-Latin scripts and fonts in xelatex. – Alenanno Jan 11 '16 at 22:05
  • @Alenanno You're right. Of course I'm not, but it happens that I'm currently using lua to translate latin-based ArabTeX input to have Arabic in xml code, with almost the same features arabxetex provides. Hence the idea to make such a package for lualatex. – Robert Alessi Jan 11 '16 at 22:55
  • Well, with \newfontfamily\arabicfont[Script=Arabic]{Arial Unicode MS} vowels are back to normal. This issue seems related to 285674. I edit my post. – Robert Alessi Jan 11 '16 at 23:23
  • Using the same font but xelatex I actually got a different result. Is this correct? – Alenanno Jan 11 '16 at 23:34
  • Vowels are at the right places in your example, but Arabic is typeset LTR. Try loading arabxetex like this: \usepackage[voc]{arabxetex}, then put in your document: ... seemingly LTR: \textarabic{daxala mubtasimaN}. Don't forget to comment out any polyglossia related Arabic settings. – Robert Alessi Jan 11 '16 at 23:40

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.