View Single Post
Old 05-03-2015, 01:02 PM   #157
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by OhDear View Post
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 View Post
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 View Post
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 View Post
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.

Last edited by JimmXinu; 05-04-2015 at 02:45 PM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline   Reply With Quote