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

@ -875,14 +875,22 @@ int LaTeX::scanLogFile(TeXErrors & terr)
} else if (contains(token, "That makes 100 errors")) { } else if (contains(token, "That makes 100 errors")) {
// More than 100 errors were reprted // More than 100 errors were reprted
retval |= TOO_MANY_ERRORS; retval |= TOO_MANY_ERRORS;
} else if (prefixIs(token, "!pdfTeX error:")){ } else if (prefixIs(token, "!pdfTeX error:")) {
// otherwise we dont catch e.g.: // otherwise we dont catch e.g.:
// !pdfTeX error: pdflatex (file feyn10): Font feyn10 at 600 not found // !pdfTeX error: pdflatex (file feyn10): Font feyn10 at 600 not found
retval |= ERRORS; retval |= ERRORS;
terr.insertError(0, terr.insertError(0,
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 ).*$");
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////