]> git.lyx.org Git - features.git/commitdiff
Do not swap parens and stuff with babel and Xe/LuaTeX
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 17 Mar 2023 17:11:38 +0000 (18:11 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 17 Mar 2023 17:11:38 +0000 (18:11 +0100)
src/Paragraph.cpp

index 8650826e4fb24fc0d1043f3bad9f56203812f684..c43421b3764c36cda14988eb442427156aba0f3f 100644 (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.