View Single Post
Old 03-23-2022, 06:18 AM   #440
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,970
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by JimmXinu View Post
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.
It's a bug in epubchceck and a problem with that eBook. No ePub reading software that I know of handles two NCX files.
JSWolf is offline   Reply With Quote