]> git.lyx.org Git - features.git/commitdiff
Do not write LICR macro if character is encodable.
authorGünter Milde <milde@lyx.org>
Wed, 10 Jan 2018 14:31:32 +0000 (15:31 +0100)
committerGünter Milde <milde@lyx.org>
Wed, 10 Jan 2018 14:31:32 +0000 (15:31 +0100)
No hardcoded conversion of literal dashes to
\textemdash and \textendash macros.

src/Paragraph.cpp

index 55896c9a866fd76805e3b0ebf1d826ae961aff71..fc5b94107cf17bc1012828e6341958143fa5988a 100644 (file)
@@ -1290,6 +1290,9 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
                // XeTeX's dash behaviour is determined via a global setting
                if (bparams.use_dash_ligatures
                    && owner_->getFontSettings(bparams, i).fontInfo().family() != TYPEWRITER_FAMILY
+                       && !runparams.inIPA
+                       // TODO #10961: && not in inset Flex Code
+                       // TODO #10961: && not in layout LyXCode
                    && (!bparams.useNonTeXFonts || runparams.flavor != OutputParams::XETEX)) {
                        if (c == 0x2013) {
                                // en-dash
@@ -1418,14 +1421,6 @@ bool Paragraph::Private::latexSpecialT3(char_type const c, otexstream & os,
                os << "\\textvertline" << termcmd;
                column += 14;
                return true;
-       case 0x2013:
-               os << "\\textendash" << termcmd;
-               column += 12;
-               return true;
-       case 0x2014:
-               os << "\\textemdash" << termcmd;
-               column += 12;
-               return true;
        default:
                return false;
        }