dmwit / pulp

pulp: process your LaTeX log file with pulp and make a better paper
BSD 3-Clause "New" or "Revised" License
46 stars 0 forks source link

Configuration: match on file name #2

Open catalin-hritcu opened 10 years ago

catalin-hritcu commented 10 years ago

Is there any way to match on the file name where the error is reported? I have "unknown" text that is not very informative, and I would feel safer if I could for instance write

(unknown & file 'babel-english/english.ldf' & "a dialect from")

instead of

(unknown & "a dialect from")

to make the following message go away:

/usr/share/texmf-dist/tex/generic/babel-english/english.ldf:?-?: \l@canadian = a dialect from \language\l@american 
dmwit commented 10 years ago

Cool idea! I'll give it a little thought. Maybe I will add some simple atoms like file <regex> as you suggest and one for line number, but I want to ponder for a little bit. Although we print just the file and line number causing the message, actually we have some richer information: we know a full "backtrace" of which files included which others to lead us to where we are. Perhaps I can think of a sane interface to expose this information to the configuration language (and some way to optionally expose this information in the report, too).

If I can't think of anything stunningly good pretty soon, I'll just use your suggestion verbatim.

dmwit commented 10 years ago

Implementation effort on this has begun.

dmwit commented 9 years ago

By the way: I'm still working on this, but you may want to know that the dialect messages are marked as info now, rather than unknown.