]> git.lyx.org Git - features.git/commitdiff
Plain quote fixes
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 23 Feb 2017 09:39:50 +0000 (10:39 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 23 Feb 2017 09:39:50 +0000 (10:39 +0100)
\textquote... commands are only available in t1.

src/insets/InsetQuotes.cpp

index 75420a46dcfa6deca7fb2b80c23294c06e5d9e55..06ef469729c81ff1f43776c95a5438e87c7c3407 100644 (file)
@@ -374,7 +374,10 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op) const
                break;
        }
        case 0x0027: {// ' (plain)
-               res = "\\textquotesingle";
+               if (op == "t1")
+                       res = "\\textquotesingle";
+               else
+                       res = "\\char39";
                break;
        }
        case 0x201e: {// ,,
@@ -419,7 +422,10 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op) const
                break;
        }
        case 0x0022: {// "
-               res = "\\textquotedbl";
+               if (op == "t1")
+                       res = "\\textquotedbl";
+               else
+                       res = "\\char34";
                break;
        }
        // The following are fakes