View Single Post
Old 02-15-2025, 04:48 PM   #14
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: 8,807
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes and that can be done in one easy step using Sigil's BookBrowser. Select all and right click on rename. When it asks for a pattern, just replace what is there with .xhtml

All selected files would be properly renamed to have the .xhtml extension. Then of course behind the scenes all of the links and references to the old names all throughout the epub are properly updated using concurrent threads.

It is this last step that makes this more than a bit of a pain to handle in a plugin. The actual renaming of the files is trivial. It is what comes next (ie finding and performing all the reference updates) that is hard. Simply duplicating all that fast C++ and C code in python is just not worth it IMHO.
KevinH is online now   Reply With Quote