[LyX/master] Do not swap parens and stuff with babel and Xe/LuaTeX

Juergen Spitzmueller spitz at lyx.org
Fri Mar 17 16:08:39 UTC 2023


commit 81d6965c810367cd81b46bac67e5b4c2490fbd4a
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Mar 17 18:11:38 2023 +0100

    Do not swap parens and stuff with babel and Xe/LuaTeX
---
 src/Paragraph.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 8650826..c43421b 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -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.


More information about the lyx-cvs mailing list