[Okular-devel] [Bug 225937] New: Okular Cannot Open Gutenberg.org ePub

pupp_e_dog at yahoo.com pupp_e_dog at yahoo.com
Mon Feb 8 18:33:27 CET 2010


https://bugs.kde.org/show_bug.cgi?id=225937

           Summary: Okular Cannot Open Gutenberg.org ePub
           Product: okular
           Version: 0.9.3
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: okular-devel at kde.org
        ReportedBy: pupp_e_dog at yahoo.com


Version:           0.9.3 (using 4.3.3 (KDE 4.3.3), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.30-gentoo-r8

Okular reports "Error while opening the EPub document" when attempting to open
ePub files from gutenberg.org.

This was first submitted to Project Gutenberg's maintainers as a possible
problem with the format, but the response suggests there is an issue with how
libepub in Okular handles xml namespaces (and possibly utf-8 character
encoding):

---

Original Message to Project Gutenberg (gutenberg.org):

Hi,

I have been unable to open ePub files from Project Gutenberg in KDE's
reader, Okular (Linux system). While this may also be related to the
application, I found that the files I was trying to open would not
validate at http://threepress.org/document/epub-validate/, which could
be part of the issue.

In particular, the books I tried were #11, #164, #1115, and #2009.

All exhibited this error:

ERROR: pg1115.epub/1115/content.opf(12): date value
'2009-12-28T08:08:44.005468+00:00' is not valid, YYYY[-MM[-DD]] expected

Thanks!

---

Reply:

The reason is: libepub in okular does not understand namespaces in
container.xml

But okular does not display utf-8 correctly either, so you woudn't enjoy your
book even if worked. 

---

In particular, here is a snippet of container.xml in an ePub that works in
Okular (from ePubbooks.com):

<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container"
version="1.0">
   <rootfiles>
      <rootfile full-path="OPS/epb.opf"
media-type="application/oebps-package+xml"/>
   </rootfiles>
</container>

And here is one that does not work (from gutenberg.org) - Okular reports "Error
while opening the EPub document" and does not display anything:

<?xml version='1.0' encoding='utf-8'?>
<ns0:container xmlns:ns0="urn:oasis:names:tc:opendocument:xmlns:container"
version="1.0">
  <ns0:rootfiles>
    <ns0:rootfile media-type="application/oebps-package+xml"
full-path="2251/content.opf"/>
  </ns0:rootfiles>
</ns0:container>

---

Thanks!

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list