View Single Post
Old 09-01-2016, 06:29 PM   #263
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,305
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by JimmXinu View Post
EpubMerge assumes if there's only one (top-level) TOC entry, that there effectively is no TOC and it can be left out in favor of just using the book only entry. Clearly, that's incorrect for your case. ...
New test version posted (see attached)

Okay, here's how this one works:

If Insert Table of Contents entry for each title is ON:
  • A top level TOC entry in the merged book is made for each sub-book containing the sub-book title (and the author if there's more than one author).
  • If there's only one TOC in the sub-book (total--including nesting), the original sub-book TOC is discarded, leaving only the created sub-book title TOC. (To match existing behavior.)
  • If there's more than one TOC in the sub-book (now including nesting), the original sub-book TOC entries are added under the created sub-book title TOC. Nesting is preserved, but shifted down a level.

If Insert Table of Contents entry for each title is OFF:
  • The original sub-book TOC entries are all added to the merged book TOC. Top level sub-book TOC entries become top level merged book TOC entries. Nesting is preserved.
  • This also means that if a sub-book TOC is empty, there will be NO TOC entry at all for that sub-book while Insert Table of Contents entry for each title is OFF. (To match existing behavior.)

Last edited by JimmXinu; 09-06-2016 at 06:41 PM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline   Reply With Quote