commit f60f82e7b72e10d6da5213a75a59c732a7e8541b
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Jul 10 19:10:16 2019 +0200
LuaTeX (luabidi) does not correct directions
This amends [9d20bc4e98/lyxgit].
(cherry picked from commit a95339c6e1d9f15390a2734b7cc94b57282e740b)
---
src/Paragraph.cpp | 10 ++++++----
status.23x | 4 +++-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 9d1b9e6..7d48407 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 f18ebf3..53d3f96 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