Hello all, Currently LyX reverse parentheses when babel and xe/luatex is used with Hebrew, and it should not do so. Attached a patch that fixes this matter.
Best Regards, Udi
From 8c7b6228dccfb7b0ac8c786d86a1079516ba0d5d Mon Sep 17 00:00:00 2001 From: Udi Fogiel <[email protected]> Date: Fri, 17 Mar 2023 14:30:13 +0000 Subject: [PATCH] reversed parentheses with babel and Xe/LuaTeX --- src/Paragraph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 8650826e4f..9e74120155 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2048,8 +2048,10 @@ char_type Paragraph::getUChar(BufferParams const & bparams, char_type uc = c; // 1. In the following languages, parentheses need to be reversed. - // Also with polyglodia/luabidi - bool const reverseparens = (lang == "hebrew" || rp.use_polyglossia); + // Also with polyglossia/luabidi + bool const reverseparens = (lang == "hebrew" || rp.use_polyglossia) + // With babel and Xe/LuaTeX parentheses should not be reversed + && (!runparams.isFullUnicode() || !runparams.use_babel); // 2. In the following languages, brackets don't need to be reversed. bool const reversebrackets = lang != "arabic_arabtex" -- 2.35.1
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
