Quote:
Originally Posted by KevinH
But not everyone thinks of "regeneration" in the same way. So, I agree, if the ncx exists, it should warn you that everything in the ncx will be lost upon regeneration and ask you if you want to continue.
|
Thanks for looking into this!
Ideally, Sigil should only display the warning if the .ncx contains content that Sigil cannot automatically generate. E.g. if a Calibre generated .ncx file contains TOC links to non-heading tags or manually added pagelist nodes.
Otherwise Sigil users who don't use pagelists, but like re-generating the TOC as they add new content to a book might get upset about Sigil warning them that generating the TOC will overwrite the existing .ncx file.
I.e., if you display the warning indiscriminately, some users will most likely request a patch that suppresses this warning.
As I've said, this is a nice-to-have feature that very few users will benefit from and should only be implemented if it can be done with minimal code changes and without alienating the majority of Sigil users.