[LyX/master] Do not switch dir with numbers and babel in full unicode

Juergen Spitzmueller spitz at lyx.org
Mon Apr 10 12:26:56 UTC 2023


commit b42e97808078b472c7c991258f66c5d61c802323
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Mon Apr 10 15:31:26 2023 +0200

    Do not switch dir with numbers and babel in full unicode
    
    Patch by Udi Fogiel
---
 src/Font.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Font.cpp b/src/Font.cpp
index e072bca..aa8c235 100644
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -439,7 +439,8 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams,
 			// (possibly a LuaTeX bug)
 			os << "{\\LR{";
 			count += 6;
-		} else {
+		} else if (!runparams.isFullUnicode()) {
+			// not needed with babel/lua|xetex
 			os << "{\\beginL ";
 			count += 9;
 		}
@@ -616,7 +617,8 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams,
 			// (possibly a LuaTeX bug)
 			os << "}}";
 			count += 2;
-		} else {
+		} else if (!runparams.isFullUnicode()) {
+			// not needed with babel/lua|xetex
 			os << "\\endL}";
 			count += 6;
 		}


More information about the lyx-cvs mailing list