-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epub result not readable on a Sony PRS-T3. #3
Comments
It looks like when I'm rendering a chapter's contents I'm converting it directly to HTML and embedding that, whereas I should really be converting to HTML and then inserting into some base template which contains the usual HTML boilerplate. I haven't added functionality for embedding images yet, so it makes sense that they're not working. The feature itself is quite easy to implement, it's just a case of adding an extra pass through the book which will collect all the linked images (maybe even fetching them from the internet) and embed them in the book. |
For what it's worth, when I was testing this earlier I was able to view the book contents in calibre's embedded viewer. That may also do some pre-processing to "fix" a slightly broken book though... |
EPUBReader also fails to read the file. EPUBCheck 4.1.1 output the following:
The file was generate from https://github.com/rustwasm/book, and the generated book can be found here: https://gofile.io/?c=K91CmB |
The Kobo Forma also fails to open these books. For anyone looking for a quick fix, open the epub in sigil, which will prompt to automatically fix the ebook, say OK and then save the fixed book. |
I'm testing to build the The Rustonomicon for use on my Sony PRS-T3. Sadly the resulting .epub in not readable. I ran it through calibre (epub -> epub conversion) and the result is readable and quite good. I've tried a few links and they work. ToC works etc. The pictures do not work for some reason but all in all it's quite useable!
I started looking into why the .epub generated by mdbook-epub does not work right away, and I think I know why.
Running
epubcheck
on the result gives a lot of errors like this:If I compare the result of mdbook-epub with that which has went through calibre I noticed all .html files lack a xml header.
Here's what mdbook-epub generates:
This is what calibre generates:
Anyway considering the output is good when ran through calibre, I think this project is quite close to be really useful! I have a Nook Simple Touch and a Sony PRS-T3 and am willing to help test this project with those devices if you want.
The text was updated successfully, but these errors were encountered: