mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Brackets reversion differs in luabidi (LuaTeX) from bidi (XeTeX)
This amends [195f62ac93/lyxgit]
This commit is contained in:
parent
6f8db58778
commit
d3aa102260
@ -1860,8 +1860,9 @@ char_type Paragraph::getUChar(BufferParams const & bparams,
|
||||
char_type c = d->text_[pos];
|
||||
|
||||
// Return unchanged character in LTR languages
|
||||
// or if we use poylglossia/bidi.
|
||||
if (rp.use_polyglossia || !getFontSettings(bparams, pos).isRightToLeft())
|
||||
// or if we use poylglossia/bidi (XeTeX).
|
||||
if ((rp.use_polyglossia && rp.flavor == OutputParams::XETEX)
|
||||
|| !getFontSettings(bparams, pos).isRightToLeft())
|
||||
return c;
|
||||
|
||||
// Without polyglossia/bidi, we need to account for some special cases.
|
||||
@ -1880,7 +1881,8 @@ char_type Paragraph::getUChar(BufferParams const & bparams,
|
||||
char_type uc = c;
|
||||
|
||||
// 1. In the following languages, parentheses need to be reversed.
|
||||
bool const reverseparens = lang == "hebrew";
|
||||
// Also with polyglodia/luabidi
|
||||
bool const reverseparens = (lang == "hebrew" || rp.use_polyglossia);
|
||||
|
||||
// 2. In the following languages, brackets don't need to be reversed.
|
||||
bool const reversebrackets = lang != "arabic_arabtex"
|
||||
|
Loading…
Reference in New Issue
Block a user