Do not switch dir with numbers and babel in full unicode

Patch by Udi Fogiel
This commit is contained in:
Juergen Spitzmueller 2023-04-10 15:31:26 +02:00
parent 0de7095774
commit b42e978080

View 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;
}