From: Juergen Spitzmueller Date: Wed, 10 Jul 2019 17:10:16 +0000 (+0200) Subject: LuaTeX (luabidi) does not correct directions X-Git-Tag: 2.3.4~84 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f60f82e7b72e10d6da5213a75a59c732a7e8541b;p=features.git LuaTeX (luabidi) does not correct directions This amends [9d20bc4e98/lyxgit]. (cherry picked from commit a95339c6e1d9f15390a2734b7cc94b57282e740b) --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 9d1b9e6f1f..7d484078c6 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2293,9 +2293,10 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams, string const begin_tag = "\\begin"; InsetCode code = ownerCode(); bool const lastpar = runparams.isLastPar; - // RTL without the Bidi package switches the left/right logic + // RTL in classic (PDF)LaTeX (without the Bidi package) + // Luabibdi (used by LuaTeX) behaves like classic bool const rtl_classic = owner_->getParLanguage(bparams)->rightToLeft() - && !runparams.use_polyglossia; + && (!runparams.use_polyglossia || runparams.flavor != OutputParams::XETEX); switch (curAlign) { case LYX_ALIGN_NONE: @@ -2354,9 +2355,10 @@ bool Paragraph::Private::endTeXParParams(BufferParams const & bparams, string const end_tag = "\\par\\end"; InsetCode code = ownerCode(); bool const lastpar = runparams.isLastPar; - // RTL without the Bidi package switches the left/right logic + // RTL in classic (PDF)LaTeX (without the Bidi package) + // Luabibdi (used by LuaTeX) behaves like classic bool const rtl_classic = owner_->getParLanguage(bparams)->rightToLeft() - && !runparams.use_polyglossia; + && (!runparams.use_polyglossia || runparams.flavor != OutputParams::XETEX); switch (curAlign) { case LYX_ALIGN_NONE: diff --git a/status.23x b/status.23x index f18ebf3e25..53d3f96d8f 100644 --- a/status.23x +++ b/status.23x @@ -70,7 +70,9 @@ What's new - Find local bib files when they exist in the same directory as the LyX file (bug 11588). -- Fix column order with RTL documents and LuaTeX (part of bug 9686). +- Fix table column order with RTL documents and LuaTeX (part of bug 9686). + +- Fix paragraph alignment with RTL documents and LuaTeX (part of bug 11399). * USER INTERFACE