]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Use ASCII number in \char definition
[lyx.git] / src / Paragraph.cpp
index c1aa2b9162d1fcd30515de533b0445c728011e80..0ae8291a05b3fe4728ae920eda3ae90c28eb2206 100644 (file)
@@ -1187,8 +1187,10 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
        // NOTE: Some languages reset the font encoding internally to a
        //       non-standard font encoding. If we are using such a language,
        //       we do not output special T1 chars.
+       // NOTE: XeTeX and LuaTeX use OT1 (pre 2017) or TU (as of 2017) encoding
        if (!runparams.inIPA && !running_font.language()->internalFontEncoding()
-           && bparams.font_encoding() == "T1" && latexSpecialT1(c, os, i, column))
+           && !runparams.isFullUnicode() && bparams.font_encoding() == "T1"
+           && latexSpecialT1(c, os, i, column))
                return;
 
        // Otherwise, we use what LaTeX provides us.
@@ -1223,7 +1225,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
                }
                break;
        case '\"':
-               os << "\\char`\\\"" << termcmd;
+               os << "\\char34" << termcmd;
                column += 9;
                break;