readium / r2-streamer-swift

BSD 3-Clause "New" or "Revised" License
22 stars 49 forks source link

Table of contents is not parsed for EPUB Test Suite books #45

Closed ghost closed 6 years ago

ghost commented 6 years ago

When I add test suite books to R2 Reader test app, for example EPUB Test Suite 150, table of contents is not parsed by the streamer.

ghost commented 6 years ago

Git blaming NavigationDocumentParser.swift, it seems a fix was introduce to resolve an issue with AEXML parser. But with the current version of this lib, I have to remove the previous fix to make it works again.

Please, check this commit: 7cf86a0. Any feedbacks is welcome.

ghost commented 6 years ago

Somehow, it's related with #44.

danielweck commented 6 years ago

For your information, the Readium(1) cloud reader exposes an OPDS feed for the expanded epub-testsuite EPUBs located in the IDPF GitHub repository:

https://readium.firebaseapp.com/?epubs=epub_content%2Fepub_testsuite.opds

For example test number 150:

http://epubtest.org/epubs/epub30-test-0150-20160116.epub => https://github.com/IDPF/epub-testsuite/tree/master/content/30/epub30-test-0150

Packed: http://epubtest.org/testsuite/

Expanded: https://github.com/IDPF/epub-testsuite/tree/master/content/30/