]> git.lyx.org Git - features.git/commitdiff
Do not rely on babel quotation macros for encodings other than [O]T1
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 17 Dec 2017 11:16:01 +0000 (12:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 17 Dec 2017 11:17:45 +0000 (12:17 +0100)
Babel falls back to OT1 in these cases, which gives wrong output got the
guillemots

Fixes: #10947
src/insets/InsetQuotes.cpp

index 24be900cdd6283e219ec139ff5ebe986380ca22a..00ce4d6c2b12ccbf579a4b9b36dfed8ac66b669c 100644 (file)
@@ -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)