GNOME Bugzilla – Bug 768001
Warnings when reading a specific epub
Last modified: 2016-06-25 23:01:06 UTC
Reading the first few pages of "Machine Of Death", I get: Entity: line 21: parser error : Entity 'copy' not defined <p>© 2010. Some rights reserved. This volume is released under a Creative ^ Entity: line 18: parser error : Entity 'nbsp' not defined <th> </th> ^ Entity: line 20: parser error : Entity 'nbsp' not defined <th class="page"> </th> ^ Entity: line 32: parser error : Entity 'nbsp' not defined <td class="credits"> </td> ^ Entity: line 40: parser error : Entity 'nbsp' not defined <td class="credits"> </td> ^ Entity: line 336: parser error : Entity 'nbsp' not defined <td class="credits"> </td> ^ Entity: line 25: parser error : Entity 'mdash' not defined alike, ranging across adventure, horror, mystery, fantasy, sci-fi, humor— ^ Entity: line 27: parser error : Entity 'mdash' not defined until the very end of the reading period, we were still discovering gems— ^ Entity: line 31: parser error : Entity 'mdash' not defined <p>— Ryan North, Matthew Bennardo & David Malki !</p> ^ File available at: https://people.gnome.org/~hadess/gnome-books-examples/
This problem is because libgepub, we're reading the xhtml with libxml2 and by default it shows these errors. I've fixed it passing some options to the read to not show these "errors": https://git.gnome.org/browse/libgepub/commit/?id=395779ecfde60fbc887474862fc40b9670113692 This change in libgepub should fix this issue.
(In reply to Daniel Garcia from comment #1) > This problem is because libgepub, we're reading the xhtml with libxml2 and > by default it shows these errors. I've fixed it passing some options to the > read to not show these "errors": > > https://git.gnome.org/browse/libgepub/commit/ > ?id=395779ecfde60fbc887474862fc40b9670113692 > > This change in libgepub should fix this issue. Works for me, thanks. By the way, I'm filing those bugs against gnome-books and CC:ing you on them because libgepub doesn't have a bug tracker component yet. I'd be fine moving those once there is one.