Do not write LICR macro if character is encodable.

No hardcoded conversion of literal dashes to
\textemdash and \textendash macros.
This commit is contained in:
Günter Milde 2018-01-10 15:31:32 +01:00
parent 73b6f42362
commit fcc1cffb1a

View 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;
}