Quote:
Originally Posted by OhDear
Turns out there was a story that was split into three hrefs, with the two later parts having a blank toc. It stopped splitting when it reached the first blank toc. Making sure no blank tocs were selected the second time, it worked perfectly.
|
Good catch, I didn't think of that.
Quote:
Originally Posted by OhDear
I can think of a few ways of dealing with blank tocs but I'm not sure what's best.
|
While good suggestions, they are a bit complex. My first thought is to simply not allow split sections that don't have a TOC text.
In your case of a story that spans three sections, you'd have to use the pre-existing 'New Book' button separately.
Quote:
Originally Posted by OhDear
As there's no single best way of handling it, maybe before the splitting starts a window could pop up which lets you choose what to do in case a blank toc is encountered during the splits.
If that window also let you choose the cover to be used for all the splits, that would also be a plus. (I'd always choose to have no cover for short stories myself.)
|
I consider that outside scope for this plugin. There are other tools for doing covers. You can disable copying the original book's cover in the EpubSplit plugin config.
Quote:
Originally Posted by OhDear
The only other suggestion I could make is with as long as a 100+ stories split takes, an abort button could be handy if you realize during the splitting that you did something wrong.
|
I'll look into that.
Attached is a test version that doesn't allow separate split sections that don't have a TOC that can be used for the title.