View Single Post
Old 08-29-2018, 01:32 PM   #248
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,005
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by davidfor View Post
...
How's that? The hard work is all done, the implementation is easy!
I'll get right on that!

More seriously, there's a bunch of new ideas, let's see if I caught them all:

New Book per Section vs per TOC

The existing 'per Section' feature requires you to have something in the TOC for each section, even if you have to add it in EpubSplit.

It seems reasonable to me to change that to a 'per TOC' feature that includes sections without TOC entries in the same book until the next TOC entry is reached, as per sweth. Anyone want to keep the existing 'per Section'?

Always Include Sections

Marking sections to 'always' include is a possibility. The difficult bit is figuring out the GUI for it.

Define Several Books, then Split

IMO, the difference in implementation complexity just isn't worth the added convenience in use.

Multilevel TOC

Currently, EpubSplit ignores multilevel TOC entirely and just flattens it. Because it's a complex PITA to deal with.

But I agree that it would be nice to be able to include a TOC entry and get all its subs. I'll look at how Edit Book handles it and I might pick up some ideas.

Output TOC will almost certainly still be flattened, though.

Edit Metadata

I'll consider making Edit Metadata optional, especially since 'per Section' already works that way.

Edit Metadata is used so that changes made are pushed into the epub right away as well as the Calibre DB. If it's left for the user to do later, they have to either explicitly use Polish or Modify Epub or trust Calibre to insert metadata as needed.

Trusting Calibre is not a bad thing, but one of the cases where it doesn't update the metadata is when you View the epub you just created. OTOH, that's the case any time you modifying metadata in Calibre...

Edit Book Plugin?

Instead of a User Interface plugin, would it be better if EpubSplit was an Edit Book plugin?

My first impulse is 'no'. Apart from the GUI parts, EpubSplit is standalone and can be used as a CLI script outside Calibre. To really take advantage of being in the Editor it would have to use more Calibre specific code.

Plus, it doesn't look like Edit Book has access to the running library GUI DB to create new books, since it's a separate process.


The funny thing about EpubSplit is I made it primarily to fulfill my sense of symmetry after making EpubMerge. I very rarely use it myself. Calibre's Edit Book feature didn't exist at the time I created EpubSplit. If it had, I doubt I would have made EpubSplit.
JimmXinu is offline   Reply With Quote