Am Dienstag, den 14.02.2017, 15:05 +0100 schrieb Jürgen Spitzmüller:
> > It seems we need to define \textquotedbl until the issue is fixed
> > upstream.
> 
> Yes.

No, we can do without. Patch attached.

Jürgen
diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index b4de991828..f94351f100 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -123,19 +123,19 @@ static docstring const textquotedbl_def = from_ascii(
 
 static docstring const textquotedblp_xetex_def = from_ascii(
 	"\\providecommand\\textquotedblplain{%\n"
-	"  \\bgroup\\addfontfeatures{Mapping=}\\textquotedbl\\egroup}");
+	"  \\bgroup\\addfontfeatures{Mapping=}\\char`\\\"\\egroup}");
 
 static docstring const textquotedblp_luatex_def = from_ascii(
 	"\\providecommand\\textquotedblplain{%\n"
-	"  \\bgroup\\addfontfeatures{RawFeature=-tlig}\\textquotedbl\\egroup}");
+	"  \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char`\\\"\\egroup}");
 
 static docstring const textquotesinglep_xetex_def = from_ascii(
 	"\\providecommand\\textquotesingleplain{%\n"
-	"  \\bgroup\\addfontfeatures{Mapping=}\\textquotesingle\\egroup}");
+	"  \\bgroup\\addfontfeatures{Mapping=}\\char`\\\'\\egroup}");
 
 static docstring const textquotesinglep_luatex_def = from_ascii(
 	"\\providecommand\\textquotesingleplain{%\n"
-	"  \\bgroup\\addfontfeatures{RawFeature=-tlig}\\textquotesingle\\egroup}");
+	"  \\bgroup\\addfontfeatures{RawFeature=-tlig}\\char`\\\'\\egroup}");
 
 static docstring const paragraphleftindent_def = from_ascii(
 	"\\newenvironment{LyXParagraphLeftIndent}[1]%\n"
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index c1aa2b9162..7b330d3950 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -1188,7 +1188,8 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
 	//       non-standard font encoding. If we are using such a language,
 	//       we do not output special T1 chars.
 	if (!runparams.inIPA && !running_font.language()->internalFontEncoding()
-	    && bparams.font_encoding() == "T1" && latexSpecialT1(c, os, i, column))
+	    && !bparams.useNonTeXFonts && bparams.font_encoding() == "T1"
+	    && latexSpecialT1(c, os, i, column))
 		return;
 
 	// Otherwise, we use what LaTeX provides us.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to