Comments (6)
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.
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.
Sorry for a delay. Working on this.
from epubreader.
Ok. Let me know when finished and I will run tests against an epub dataset I have.
from epubreader.
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.
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)
- Analysis of e-books in Mobi format HOT 2
- Parse just an OPF File HOT 1
- Add support for BMP image files HOT 3
- How to pull specific text HOT 1
- Incorrect EPUB manifest: item with href = "Text/0001.xhtml" is not unique HOT 1
- How to write EPUB files? HOT 5
- Parse <nav> elements nested in other HTML elements in EPUB 3 navigation documents HOT 2
- Exception: 'Incorrect EPUB spine: item with IdRef = "cover" is missing in the manifest.'
- Drop support for .NET Framework and .NET Standard
- Consider switching from HtmlRenderer.WPF to WebView2 in the WPF demo app
- EPUB 3.3 support
- Expose the data parsed from the SMIL files as narration objects
- Update documentation for 3.3.0 release
- Handling Keys HOT 2
- EpubContentFileRef.ReadContentAsTextAsync() missing in v3.3.0 HOT 1
- Epub2NcxException/Epub3NavException exceptions are thrown when OPF and navigation files are located in different subdirectories HOT 7
- v3.3.1 Changes HOT 6
- Regression in v3.3.1 with parsing nav element HOT 4
- Configuration options to enable / disable all validation checks
- Unescape URLs in EPUB 2 NCX and EPUB 3 navigation documents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epubreader.