After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768001 - Warnings when reading a specific epub
Warnings when reading a specific epub
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: books
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Books Maintainers
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-06-24 11:29 UTC by Bastien Nocera
Modified: 2016-06-25 23:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2016-06-24 11:29:03 UTC
Reading the first few pages of "Machine Of Death", I get:
Entity: line 21: parser error : Entity 'copy' not defined
  <p>&copy; 2010. Some rights reserved. This volume is released under a Creative
           ^
Entity: line 18: parser error : Entity 'nbsp' not defined
        <th>&nbsp;</th>
                  ^
Entity: line 20: parser error : Entity 'nbsp' not defined
        <th class="page">&nbsp;</th>
                               ^
Entity: line 32: parser error : Entity 'nbsp' not defined
        <td class="credits">&nbsp;</td>
                                  ^
Entity: line 40: parser error : Entity 'nbsp' not defined
        <td class="credits">&nbsp;</td>
                                  ^
Entity: line 336: parser error : Entity 'nbsp' not defined
        <td class="credits">&nbsp;</td>
                                  ^
Entity: line 25: parser error : Entity 'mdash' not defined
 alike, ranging across adventure, horror, mystery, fantasy, sci-fi, humor&mdash;
                                                                               ^
Entity: line 27: parser error : Entity 'mdash' not defined
 until the very end of the reading period, we were still discovering gems&mdash;
                                                                               ^
Entity: line 31: parser error : Entity 'mdash' not defined
  <p>&mdash; Ryan North, Matthew Bennardo &amp; David Malki !</p>
            ^

File available at:
https://people.gnome.org/~hadess/gnome-books-examples/
Comment 1 Daniel Garcia 2016-06-25 20:15:51 UTC
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.
Comment 2 Bastien Nocera 2016-06-25 23:01:06 UTC
(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.