View Single Post
Old 11-26-2026, 07:23 PM   #3
Kayadelenium
Addict
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 313
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
Thank you, Becky, and thank you for the test file.

I think it is Sigil rather than the plugin that drops it. When I open your Test_File.epub, Sigil warns "Files exist in epub that are not listed in the manifest, they will be ignored. t/Section0003.xhtml", and the book it opens has no Section0003.xhtml. A plugin only ever gets the book Sigil holds, so by the time epubsana runs, that chapter is already gone.

On the plugin side, epubsana proposes one fix for the file itself: dropping the Section0003.xhtml itemref. It marks that fix as needing confirmation, as the CLI does, so in the plugin's window it is not ticked, and in an Automate list it is never applied. I ran your book through Sigil's plugin launcher in Automate mode, and the plugin left the spine as it was.

On restoring the manifest entry: I agree that when the file is still in the book, putting its entry back is the better repair, and I will take that to epubsana. It can only help on the command line, though. Inside Sigil the file is ignored when the book is opened, so neither the plugin nor any other one ever sees it. Until epubsana can do it, the way to keep that chapter is to add its manifest entry back in the OPF before the book is opened in Sigil. Today's CLI would only offer to drop the itemref.

If you saw the plugin drop something in a book where Sigil had not already ignored the file, please tell me, and I will look again.
Kayadelenium is offline   Reply With Quote