]> git.lyx.org Git - lyx.git/commitdiff
Don't assume T1 font encoding for XeTeX/LuaTeX
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 15 Feb 2017 07:35:46 +0000 (08:35 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 15 Feb 2017 07:35:46 +0000 (08:35 +0100)
They used OT1 internally, and the new TU encoding, which does not (yet?)
contain all macros of T1, as of the Jan 17 LaTeX release.

src/Paragraph.cpp

index c1aa2b9162d1fcd30515de533b0445c728011e80..881cb0eb1e25f13a6870057316d1543d9d8447d2 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.