]> git.lyx.org Git - features.git/commitdiff
Do not switch dir with numbers and babel in full unicode
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 10 Apr 2023 13:31:26 +0000 (15:31 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 10 Apr 2023 13:31:26 +0000 (15:31 +0200)
Patch by Udi Fogiel

src/Font.cpp

index e072bca5b5f6db4c1d51d157ab5105102df5f436..aa8c235f11a407590d5cb59400dfcd64a173f3c2 100644 (file)
@@ -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;
                }