GithubHelp home page GithubHelp logo

Issue parsing ePub files about epubreader HOT 6 CLOSED

vers-one avatar vers-one commented on August 16, 2024 1
Issue parsing ePub files

from epubreader.

Comments (6)

vers-one avatar vers-one commented on August 16, 2024 1

childrens-literature has some incorrect formatting in its table of contents that does not conform to the EPUB navigation schema. More specifically, there are several pageTarget elements with the type attribute set to the body value while only front, normal, and special values are allowed. This is exactly the same issue as this one raised in the IDPF repository. I will add a workaround to the schema parser to ignore these kind of errors.

GhV-oeb-page and CF General on the other hand is a different story. These are EPUB 3 files and they use totally different TOC formatting which is essentially just a plain HTML5 file (with a few restrictions). Back in 2015 when this project was first published there were not many EPUB 3 files available so parsing the TOC out of HTML5 content seemed to be not worth it. On top of that, all EPUB 3 files I was able to find for testing were backwards compatible with the EPUB 2 format. However this is not the case with these files.

I will add TOC parsing support for EPUB 3 as well but it might take some time.

from epubreader.

tjenniges avatar tjenniges commented on August 16, 2024 1

Thanks a lot. If I find more EPUB 3 files with issues I will be sure to send them to you for your testing dataset

from epubreader.

vers-one avatar vers-one commented on August 16, 2024

Sorry for a delay. Working on this.

from epubreader.

tjenniges avatar tjenniges commented on August 16, 2024

Ok. Let me know when finished and I will run tests against an epub dataset I have.

from epubreader.

vers-one avatar vers-one commented on August 16, 2024

I've made a preliminary version with the improved support for EPUB 3 files. It can be found in the epub3 branch of the repository. I've also added an option to the NetCoreDemo application to test the library by opening all epub files in a directory (see the 3. Test the library by reading all EPUB files from a directory option there). You can run it on your epub dataset.

This is a preliminary version and it is available as the source code only. There are still some things I plan to finish before making a new release.

from epubreader.

vers-one avatar vers-one commented on August 16, 2024

I've released the version 3.0.0 of the library with the better EPUB 3 support. Please reopen this issue if you find any other problems with the EPUB 3 files.

from epubreader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.