Do not swap parens and stuff with babel and Xe/LuaTeX

This commit is contained in:
Juergen Spitzmueller 2023-03-17 18:11:38 +01:00
parent e2011856bc
commit 81d6965c81

View File

@ -2027,9 +2027,11 @@ 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 (XeTeX).
if (rp.useBidiPackage()
|| !getFontSettings(bparams, pos).isRightToLeft())
// or if we use poylglossia/bidi (XeTeX)
// or with babel and Xe/LuaTeX.
if (!getFontSettings(bparams, pos).isRightToLeft()
|| rp.useBidiPackage()
|| (rp.use_babel && rp.isFullUnicode()))
return c;
// Without polyglossia/bidi, we need to account for some special cases.