View Single Post
Old 03-22-2022, 07:03 PM   #439
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version

- Add check for multiple toc.ncx files, use last to match Calibre viewer.

Somebody PM'd me about a problem that turned out to be an input file with two application/x-dtbncx+xml (toc.ncx) files. Which epubmerge doesn't like.

There is no good reason to have two, but while the standard refers to "The NCX file (Navigation Control file for XML), traditionally named toc.ncx" (singular), I don't find anything formally forbidding it and epubcheck (in Calibre's Edit book at least) doesn't complain about it.

Calibre's ebook viewer appears to use the last listed toc.ncx file. Removing the last one causes it to simply use the first. Oddly, doing Calibre convert epub->epub still keeps both. I would have expected it to remove one.

If anybody knows a better way to handle this issue, I'd be curious to hear it.

Last edited by JimmXinu; 04-04-2022 at 12:32 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote