mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
LuaTeX (luabidi) does not swap table columns
This amends [21b347a2f8485/lyxgit].
(cherry picked from commit 6f8db58778
)
This commit is contained in:
parent
2208f4f519
commit
6e01ceca24
@ -2628,10 +2628,11 @@ void Tabular::TeXRow(otexstream & os, row_type row,
|
|||||||
bool ismulticol = false;
|
bool ismulticol = false;
|
||||||
bool ismultirow = false;
|
bool ismultirow = false;
|
||||||
|
|
||||||
// The bidi package (loaded by polyglossia) reverses RTL table columns
|
// The bidi package (loaded by polyglossia with XeTeX) reverses RTL table columns
|
||||||
|
// Luabibdi (used by LuaTeX) behaves like classic
|
||||||
bool const bidi_rtl =
|
bool const bidi_rtl =
|
||||||
runparams.local_font->isRightToLeft()
|
runparams.local_font->isRightToLeft()
|
||||||
&& runparams.use_polyglossia;
|
&& runparams.use_polyglossia && runparams.flavor == OutputParams::XETEX;
|
||||||
idx_type lastcell =
|
idx_type lastcell =
|
||||||
bidi_rtl ? getFirstCellInRow(row) : getLastCellInRow(row);
|
bidi_rtl ? getFirstCellInRow(row) : getLastCellInRow(row);
|
||||||
|
|
||||||
@ -2829,11 +2830,11 @@ void Tabular::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
if (is_tabular_star)
|
if (is_tabular_star)
|
||||||
os << "@{\\extracolsep{\\fill}}";
|
os << "@{\\extracolsep{\\fill}}";
|
||||||
|
|
||||||
// The bidi package (loaded by polyglossia) swaps the column
|
// The bidi package (loaded by polyglossia with XeTeX) swaps the column
|
||||||
// order for RTL (#9686). Thus we use this list.
|
// order for RTL (#9686). Thus we use this list.
|
||||||
bool const bidi_rtl =
|
bool const bidi_rtl =
|
||||||
runparams.local_font->isRightToLeft()
|
runparams.local_font->isRightToLeft()
|
||||||
&& runparams.use_polyglossia;
|
&& runparams.use_polyglossia && runparams.flavor == OutputParams::XETEX;
|
||||||
list<col_type> columns;
|
list<col_type> columns;
|
||||||
for (col_type cl = 0; cl < ncols(); ++cl) {
|
for (col_type cl = 0; cl < ncols(); ++cl) {
|
||||||
if (bidi_rtl)
|
if (bidi_rtl)
|
||||||
|
@ -70,6 +70,8 @@ What's new
|
|||||||
- Find local bib files when they exist in the same directory as the LyX
|
- Find local bib files when they exist in the same directory as the LyX
|
||||||
file (bug 11588).
|
file (bug 11588).
|
||||||
|
|
||||||
|
- Fix column order with RTL documents and LuaTeX (part of bug 9686).
|
||||||
|
|
||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user