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.