]> git.lyx.org Git - features.git/commitdiff
\R and \L are not defined in babel with Xe/LuaTeX
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 23 Dec 2022 09:04:41 +0000 (10:04 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 23 Dec 2022 09:07:41 +0000 (10:07 +0100)
src/Font.cpp
src/insets/InsetTabular.cpp
src/output_latex.cpp

index cd741d1239df86ba143c092427021f44be54e61b..0e4aa2b24b42cef0192685998baa12eaa19d515e 100644 (file)
@@ -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;
index e9c03b957598bb129b344422a8f7a01292c5645b..18481a598d8381b1fbbf1e36fc2361b00f351197 100644 (file)
@@ -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 =
index 1061f3d28f07f659b2b15181282d13eede4467ec..04d63ae28906331ff14374b07c369bb42be800bf 100644 (file)
@@ -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{";