Quote:
Originally Posted by Hitch
ERROR: CSS: PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('HASH', u'#00007', 1, 107)****[OEBPS/cover.xhtml]
|
I think the error is generated by the Python library cssutils, which Calibre uses. "Missing token for production" shows up
here. It's the kind of language parsers use.
A parser interprets a file based on a formal grammar that expects certain chunks of text (or other data) in certain orders. A token is a combination of one of those chunks and a name that identifies its category so the parser knows what to do with it. A production is one of the rules of the grammar.
So in this case it looks like the parser figured out it was looking at a property, but then instead of something matching the kinds of property value it was expecting (something from the list in Choice), it found "#00007."
Ideally I think Calibre should translate errors like that into something more readable instead of just passing them along to the user.