Quote:
Originally Posted by perkin5
In the past, when I have loaded an epub into Sigil, all the chapters or sections have been automatically split into separate files. I have just loaded an epub generated in Indesign and the whole book is in one file despite the fact that Kindle Previewer shows separate pages. I can see instances of:
Code:
<div id="page2" role="doc-pagebreak" aria-label="2" epub:type="pagebreak" />
but they have not split the file. I
|
"type="pagebreak" " doesn't produce a pagebreak. These indicate the pagebreaks in the print book, and maybe used by e.g. indexes as anchors. But you (usually) don't want to put breaks in the ebook there, as they are often in the middle of a sentence.
The displayed pagebreaks will be set in the CSS of a tag, probably the headings. Look in the stylesheet and you will find something like:
h2 {page-break-before: always;
....
You can use those to split the file into more manageable chunks. If not too many, just manually search for <h2 and split, or do S&R to replace
<h2 (or whatever the heading was)
with
<hr class="sigil_split_marker" /><h2
then "Edit/Split at markers"
Then remove the "pagebreak" from the CSS as redundant.
And also check if any blank pages were created by the split. Just delete those.
You will need to check if the TOC is correct (it may be if it linked to anchors), or regenerate it if not.