View Single Post
Old Today, 09:11 AM   #6
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: 10,322
Karma: 7640672
Join Date: Nov 2009
Device: many
Then write a plugin. There is already a DeleteUnmanifestedFiles plugin you could use as a model to create a SaveUnmanifestedFiles plugin.

But as I noted, in most cases these Unmanifested files are created by deletions that people made directly in the OPF where they forgot to delete the files themselves. Sigil's file delete properly handles both. But many editors do not. That is why a DeleteUnmanifestedFiles plugin exists for Sigil in the first place!

In your case it appears to be caused by a bad merge or poorly made epubs that do not properly update the OPF when adding files.

So If you want an easier approach without a plugin then unzip the epub and then use Sigil's Add Existing to add all of its xhtml files to a new empty epub in one go, and Sigil will pull in all linked images and linked css, properly creating and updating the opf. I am sure calibre can do the same.

By spec, only the files that exist in the OPF manifest are part of the epub's readable contents.

Last edited by KevinH; Today at 09:22 AM.
KevinH is offline   Reply With Quote