Quote:
Originally Posted by AlexBell
The HTML file Chapter02.html which makes up the story contains about a quarter of the original book. On my Sony and Kobo readers it breaks at
he is one of the kings of fashion in Paris.'</p>
<p>'But a wife changes everything
so that there is quite a bit of white space between the end of one paragraph and the start of the next paragraph. That is the problem I am fussing about, and want to know how to fix.
|
I think this seemingly random break is just due to the some quirk in RMSDK, or device-specific limitations. Not anything to do with your code.
Quote:
Originally Posted by Turtle91
edit, edit:
Honestly it would be less work to just use the single University file...clean it up if necessary...then use Sigil's Split at Cursor function at logical separation points.
|
I agree. If it was originally published as 17 separate pieces, there MUST be some sort of logical breaking points.
And if not, then you'll just have to bring out the ol' chopper and chop it anyway (what was that old filesize warning limit again? 300 KB? 256KB?).
If the entire chapter is going to be 600 KBs, that is much too large.
And Alex, like JSWolf said, once you split those files into separate HTML files, there just isn't much you can do. Each HTML file starts on its own page, you don't have control over that. It just so happens to be one of the quirks of reading systems we have to live with.
Quote:
Originally Posted by AlexBell
This material from an earlier post may be a solution,
<itemref idref="calibre_jacket"/>
<itemref idref="a02-title"/>
[...]
and I'll certainly try to find out what it means. I've never seen anything like that before; can anyone point me to where itemref and idref are discussed? I've never seen or used them before.
|
That's just hidden away in the content.opf file... there's no need for you to go digging in there. That stuff is automatically generated for you by Sigil/Calibre.
It's how the Book Browser and EPUB-reader knows what files are a part of the EPUB + the logical reading order of the HTML files:
- First comes the Cover
- Then comes the Title Page
- Then the Copyright Page
- Chapter01
- [...]
- FinalChapterInBook
And then when you want to change the order the files are displayed in, you just go drag-and-dropping the files around in the Book Browser to a different order:
If you open up your content.opf, you can see this:
The <manifest> part just lists all the files in the EPUB and what kind of files they are (this JPG is a jpeg file, this CSS is a CSS file, this HTML file is XHTML, [...]).
The <spine toc="ncx"> part just explains what the reading order is.
If you want to read the technical details on it, it is explained in the MobileRead Wiki:
https://wiki.mobileread.com/wiki/OPF
... but like I said, that's best left to just Sigil/Calibre. You never really have to go digging in there.