From: Juergen Spitzmueller Date: Fri, 23 Dec 2022 09:04:41 +0000 (+0100) Subject: \R and \L are not defined in babel with Xe/LuaTeX X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0bb25ee3cd66c5ac78127a7ccc0d6014cb27edf4;p=features.git \R and \L are not defined in babel with Xe/LuaTeX --- diff --git a/src/Font.cpp b/src/Font.cpp index cd741d1239..0e4aa2b24b 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -294,7 +294,7 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams, os << "\\textLR{"; count += 8; // currently the remaining RTL languages are arabic_arabtex and hebrew - } else if (isRightToLeft() != prev.isRightToLeft()) { + } else if (isRightToLeft() != prev.isRightToLeft() && !runparams.isFullUnicode()) { if (needs_cprotection) { os << "\\cprotect"; count += 9; diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index e9c03b9575..18481a598d 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3208,7 +3208,7 @@ void Tabular::TeXRow(otexstream & os, row_type row, bool rtl = par.isRTL(buffer().params()) && !par.empty() && getPWidth(cell).zero() - && !runparams.use_polyglossia; + && !runparams.isFullUnicode(); if (rtl) { string const lang = diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 1061f3d28f..04d63ae289 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1063,7 +1063,7 @@ void TeXOnePar(Buffer const & buf, else if (outer_language->lang() == "arabic_arabi") os << "\\textLR{"; // remaining RTL languages currently is hebrew - else if (par_language->rightToLeft()) + else if (par_language->rightToLeft() && !runparams.isFullUnicode()) os << "\\R{"; else os << "\\L{";