Report missing characters on conversion with XeTeX or LuaTeX (bug #9610)

As discussed on trac, we treat this as error, since it severely
corrupts the output (dataloss).
This commit is contained in:
Juergen Spitzmueller 2015-06-11 11:32:17 +02:00
parent a6fdc1196b
commit 664ef2c459
2 changed files with 14 additions and 6 deletions

View File

@ -883,6 +883,14 @@ int LaTeX::scanLogFile(TeXErrors & terr)
from_local8bit("pdfTeX Error"), from_local8bit("pdfTeX Error"),
from_local8bit(token), from_local8bit(token),
child_name); child_name);
} else if (prefixIs(token, "Missing character: There is no ")) {
// XeTeX/LuaTeX error about missing glyph in selected font
// (bug 9610)
retval |= LATEX_ERROR;
terr.insertError(0,
from_local8bit("Missing glyphs!"),
from_local8bit(token),
child_name);
} }
} }
} }

View File

@ -46,7 +46,7 @@ QRegExp exprInfo("^(Document Class:|LaTeX Font Info:|File:|Package:|Language:|Un
// Warnings // Warnings
QRegExp exprWarning("^(LaTeX Warning|LaTeX Font Warning|Package [\\w\\.]+ Warning|Class \\w+ Warning|Warning--|.*> WARN - ).*$"); QRegExp exprWarning("^(LaTeX Warning|LaTeX Font Warning|Package [\\w\\.]+ Warning|Class \\w+ Warning|Warning--|.*> WARN - ).*$");
// Errors // Errors
QRegExp exprError("^(!|.*---line [0-9]+ of file|.*> FATAL - |.*> ERROR - ).*$"); QRegExp exprError("^(!|.*---line [0-9]+ of file|.*> FATAL - |.*> ERROR - |Missing character: There is no ).*$");
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////