Quote:
Originally Posted by KevinH
Took a peek and the structure of that epub is very strange:
For example: cover.xhtml is in OEBPS/Text/
but nav.xhtmnl, copyright.xhtml and p01c01.xhtml are all at the root of the epub
And your single image (cover.jpg) is stored in OEBPS/OEBPS/
Your content.opf is inside of OEBPS while you toc.ncx is at the root of the epub
And you stylesheet "stylesheet.css" is at OEBPS/
In addition your files have xml headers but no DOCTYPEs
As long as the links among the files are right, none of this should make a difference, although I have rarely seen an epub with this mixed up of a file structure.
So I used Sigil tools to
- move all of the .xhtml into OEBPS/Text/
- the .css files into OEBPS/Styles/
- the .jpg files into OEBPS/Images/
And I moved the .opf and .ncx into OEBPS/
Ran all pages through Sigil's Mend and then save it as a new epub.
This epub showed up just fine in Books.app (iBooks on my Mac). So I assume Books must have some rules unwritten rules about structure.
|
Thank you @KevinH
I haven't really been overly concerned with the file structure. More often than not I leave it as it is and when adding new files, Calibre just tends do dump them in root, which might explain why it is a bit all over the place. I'll have to include the file sorting into my workflow more consistently from now on. I just assumed that as long as the internal links are correct, it should all work. Obviously not!
Looking at the 4 books that did display, I had run the Sort into folders tool as they were filed uniformly.
I tested your comments in two steps.
Added the DOCTYPE tag then sideloaded. The book did not display.
Removed the DOCTYPE tags, then sorted the file structure. After sideloading, the book displayed correctly.
So your comments regarding hrefs that start with "../" seems correct.
Thank you for your advice