View Single Post
Old 12-15-2015, 11:30 AM   #158
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Seen, thank you. (Also the README.md.)

I have done some quick tests. The only problem I see is the following: the current code in opf_converter.py outputs an empty

Code:
<guide>
</guide>
if the original (EPUB 2) OPF does not have a <guide> element.

This produces the following validation error:

Quote:
ERROR(RSC-005): test.epub/OEBPS/content.opf(41,9): Error while parsing file 'element "guide" incomplete; missing required element "reference"'.
If I remember correctly, the previous code simply commented the guide out, as it is deprecated by EPUB 3. You can either comment it out again, or add a check that outputs the begin/end guide tags only if len(self.guide) > 0.
AlPe is offline   Reply With Quote