mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
a6fdc1196b
commit
664ef2c459
@ -875,14 +875,22 @@ int LaTeX::scanLogFile(TeXErrors & terr)
|
||||
} else if (contains(token, "That makes 100 errors")) {
|
||||
// More than 100 errors were reprted
|
||||
retval |= TOO_MANY_ERRORS;
|
||||
} else if (prefixIs(token, "!pdfTeX error:")){
|
||||
} else if (prefixIs(token, "!pdfTeX error:")) {
|
||||
// otherwise we dont catch e.g.:
|
||||
// !pdfTeX error: pdflatex (file feyn10): Font feyn10 at 600 not found
|
||||
retval |= ERRORS;
|
||||
terr.insertError(0,
|
||||
from_local8bit("pdfTeX Error"),
|
||||
from_local8bit(token),
|
||||
child_name);
|
||||
terr.insertError(0,
|
||||
from_local8bit("pdfTeX Error"),
|
||||
from_local8bit(token),
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ QRegExp exprInfo("^(Document Class:|LaTeX Font Info:|File:|Package:|Language:|Un
|
||||
// Warnings
|
||||
QRegExp exprWarning("^(LaTeX Warning|LaTeX Font Warning|Package [\\w\\.]+ Warning|Class \\w+ Warning|Warning--|.*> WARN - ).*$");
|
||||
// Errors
|
||||
QRegExp exprError("^(!|.*---line [0-9]+ of file|.*> FATAL - |.*> ERROR - ).*$");
|
||||
QRegExp exprError("^(!|.*---line [0-9]+ of file|.*> FATAL - |.*> ERROR - |Missing character: There is no ).*$");
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user