View Single Post
Old 04-22-2022, 07:19 PM   #1611
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 786
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by chaley View Post
That error says that the file referred to in the navpoint isn't in the epub with a valid relative reference. More precisely, it checks that the reference points to a real file in the exploded copy of the epub. The error says that the files "text/Chapter*" don't exist relative to the base of the epub.

There is one possibility I see in the code. The check to see if a file exists checks the lower-case name against the "real" name. However, the code assumes that the path to the temporary epub is lower case, something that might be true on Windows but not on linux. The attached test version fixes that. Does it work for you?

EDIT: replaced the test version
Unfortunately, no. Same issue. Here's the log of using the new Modify ePub with just the ToC turned on:

Code:
Modify ePubs version (1, 7, 1)
Logfile for book ID 3 (Piccadilly Jim / PG Wodehouse)
Job details 3
  Modifying:  /tmp/calibre_5.41.0_tmp_g3uxi4fc/a19xmmy0_modify_epub/3.epub
	  Parsing xml file: content.opf
	  Parsing xml file: toc.ncx
	Looking for broken links in the NCX
	  TOC Navpoint broken to remove of: toc.xhtml
	  TOC Navpoint broken to remove of: text/Chapter-01.html
	  TOC Navpoint broken to remove of: text/Chapter-02.html
	  TOC Navpoint broken to remove of: text/Chapter-03.html
	  TOC Navpoint broken to remove of: text/Chapter-04.html
	  TOC Navpoint broken to remove of: text/Chapter-05.html
	  TOC Navpoint broken to remove of: text/Chapter-06.html
	  TOC Navpoint broken to remove of: text/Chapter-07.html
	  TOC Navpoint broken to remove of: text/Chapter-08.html
	  TOC Navpoint broken to remove of: text/Chapter-09.html
	  TOC Navpoint broken to remove of: text/Chapter-10.html
	  TOC Navpoint broken to remove of: text/Chapter-11.html
	  TOC Navpoint broken to remove of: text/Chapter-12.html
	  TOC Navpoint broken to remove of: text/Chapter-13.html
	  TOC Navpoint broken to remove of: text/Chapter-14.html
	  TOC Navpoint broken to remove of: text/Chapter-15.html
	  TOC Navpoint broken to remove of: text/Chapter-16.html
	  TOC Navpoint broken to remove of: text/Chapter-17.html
	  TOC Navpoint broken to remove of: text/Chapter-18.html
	  TOC Navpoint broken to remove of: text/Chapter-19.html
	  TOC Navpoint broken to remove of: text/Chapter-20.html
	  TOC Navpoint broken to remove of: text/Chapter-21.html
	  TOC Navpoint broken to remove of: text/Chapter-22.html
	  TOC Navpoint broken to remove of: text/Chapter-23.html
	  TOC Navpoint broken to remove of: text/Chapter-24.html
	  TOC Navpoint broken to remove of: text/Chapter-25.html
	  TOC Navpoint broken to remove of: text/Chapter-26.html
ePub updated in 0.05 seconds
Based on your comment about the case of the file names, I went back into the document in Calibre Editor, had it merge all the text files, had it split them back at the h2 tags, and then had it bulk rename all the new files. But, this time, instead of accepting the default "Chapter-" for the prefix, I changed it to all lower case "chapter-". I then had it create a ToC and then the Inline ToC from the Tools menu. I checked everything with RunEpubCheck and it was happy. I did the Modify ePub with only the ToC check, and it still removed all the ToC entries in toc.ncx.
enuddleyarbl is offline   Reply With Quote