The restructure code is not a "script". It's not something that could be simply copied out of Sigil's codebase and used elsewhere. It's C++ code that's intertwined with the rest of Sigil's C++ code.
Sigil's simply not geared toward the editing of bulk epubs. Calibre should be able to do this sort of thing.
|