View Single Post
Old 10-22-2025, 04:19 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,096
Karma: 6404930
Join Date: Nov 2009
Device: many
The first 3 entries have unique ids but identical file paths inside the epub according to the manifest.

Does epubcheck detect the duplicate manifest entries?

Also will you please copy and rename the epub to .zip and run unzip -t on it to see if these duplicates are identical files listed inside the epub zip itself (maybe with different capitalizations) or just maybe symlinks to the same file?

Really the only way to detect this error during the load is to walk the manifest in advance of the load and see if a file with that exact same path has already been seen and if so generate a opf read warning of some sort? Then if a duplicate is an xhtml file we would have to see if it was part of the spine or not to decide whether to keep it.

I will try to code up a load warning that detects duplicate filepaths and at least manually warn the user to verify/fix its opf manifest to remove identified duplicates for the next release.

Last edited by KevinH; 10-22-2025 at 04:34 PM.
KevinH is offline   Reply With Quote