From: Juergen Spitzmueller Date: Sun, 17 Dec 2017 11:16:01 +0000 (+0100) Subject: Do not rely on babel quotation macros for encodings other than [O]T1 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4181 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=64b94f81be52de33553cda5db85d824de2119a3c;p=lyx.git Do not rely on babel quotation macros for encodings other than [O]T1 Babel falls back to OT1 in these cases, which gives wrong output got the guillemots Fixes: #10947 --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 24be900cdd..00ce4d6c2b 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -880,10 +880,12 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const // (ligatures not featured) qstr = quoteparams.getLaTeXQuote(quotechar, "int"); #ifdef DO_USE_DEFAULT_LANGUAGE - } else if (doclang == "default") { + } else if ((doclang == "default" #else - } else if (!runparams.use_babel || runparams.isFullUnicode()) { + } else if ((!runparams.use_babel #endif + || fontenc_ != "T1" || fontenc_ != "OT1") + || runparams.isFullUnicode()) { // Standard quotation mark macros // These are also used by babel // without fontenc (XeTeX/LuaTeX)