View Single Post
Old 09-04-2018, 03:46 PM   #272
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: 6,999
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version

- Fix for corner case of a non-linear anchor TOC link taking precedence over file TOC link.

I'm giving up on changing TOC editing in EpubSplit:
Spoiler:
FYI, I've spent some more time thinking deep thoughts about TOC and EpubSplit.

TOC is actually rather complex. You can have:
  • Multi-level TOC
  • Non-linear TOC
  • Duplicate TOC Links
Or any combination of the above. The content of an epub, OTOH, is linear. And there's no requirement that every file of the epub even appear in the TOC.

EpubSplit, technically, displays book contents annotated by TOC entries. Which is why it ignores multi-level TOC and non-linear TOC(mostly). It does make a limited attempt to handle duplicate TOC links. EpubSplit always writes a new, flat, linear TOC based on the user's choices.

EpubSplit is meant to be a relatively simple tool to do a relatively simple job and I think it's doing that well enough. Any attempt to make it do more with TOC would be... difficult.



So, short answer: if you want to preserve a multi-level or non-linear TOC, you should use a more sophisticated like Calibre's Edit Book.

Last edited by JimmXinu; 09-10-2018 at 06:24 PM. Reason: Remove obsolete test versions
JimmXinu is offline   Reply With Quote