Quote:
Originally Posted by stumped
in this case, the retail epub version of Wilbur Smith - War Cry. no headers, no chapters, just 200 ish pages of text with scene breaks.
//snip!!//
|
Quote:
Originally Posted by Doitsu
Shameless plug: You might find my Incremental IDs plugin helpful.
//snip!!//
|
I had something like that come up--except the one I had didn't even have scene breaks. So I just had to assign my own scene breaks.
What I ended up doing was assigning my newly created scene breaks like so:
<p style="divider"> · · &n bsp;·</p>
which gives you a very nondescript scene break (notice those itty-bitty dots between each two hard spaces). Because "divider" is defined as--
.divider {
line-height: 2.5em;
text-align: center;
}
you get a nice wide break.
Then, wherever you would like the text to be broken and to create a TOC entry, change those <p> tags to a
<hr class="sigilChapterBreak" />
<h3 style="divider" title="Break xxx"> · · ·</h3>
tag instead. Then, I think you can use Doitsu's shameless plugin
to change those xxx's to a sequential number, right Doitsu?
Once you go to edit/split at markers, you have all your separate files, and TOC generation will be easy.
You could further refine that by defining <h3> to either use page-break-before: always -- or avoid -- depending on how you want it displayed.
Okay. Kinda complicated. But maybe you'll find it worthwhile and get the results you want.