From 7ea63770665edcecc93ccddef382fdf96b7f953d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 15 Feb 2017 08:35:46 +0100 Subject: [PATCH] Don't assume T1 font encoding for XeTeX/LuaTeX 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index c1aa2b9162..881cb0eb1e 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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. -- 2.39.2