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,7 +875,7 @@ 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;
|
||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 ).*$");
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user