Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

fontloader error when trying to mix LRT/RTL text in paragraphs #349

@ralessi

Description

@ralessi

With luaotfload v2.7 (from TeXLive 2016 pretest), I cannot anymore mix RTL and LTR text in one and the same paragraph, namely without inserting blank lines before \textdir TRT and the like.

Here is a mwe:

\documentclass{article}

\usepackage{fontspec}

\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\begin{document}

\section*{This works:}
English text: hello, world.

\textdir TRT\arabicfont
دَخَكَ مُبتَسِمًا

\textdir TLT\normalfont
English text back again.

\section*{But this doesn't}
English text: hello, world.
\textdir TRT\arabicfont
دَخَكَ مُبتَسِمًا
\textdir TLT\normalfont
English text back again.

\end{document}

This mwe gives me the following error: [...]texmf/tex/luatex/luaotfload/fontloader-2016-04-27.lua:13071: attempt to index local 'i' (a nil value)

Furthermore, if I force the compilation, I get this:
screenshot
Which is wrong, for we should read the last line as follows:

English text: hello, world. دَخَلَ مُبتَسِمًا English text back again.

Many thanks in anticipation for your help. -- Robert

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions