mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
LuaTeX (luabidi) does not correct directions
This amends [9d20bc4e98/lyxgit].
(cherry picked from commit a95339c6e1
)
This commit is contained in:
parent
6e01ceca24
commit
f60f82e7b7
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user