LuaTeX (luabidi) does not correct directions

This amends [9d20bc4e98/lyxgit].

(cherry picked from commit a95339c6e1)
This commit is contained in:
Juergen Spitzmueller 2019-07-10 19:10:16 +02:00
parent 6e01ceca24
commit f60f82e7b7
2 changed files with 9 additions and 5 deletions

View File

@ -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:

View File

@ -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