Quote:
Originally Posted by pittendrigh
Or better yet, if it was possible, I'd like to click Save on my Sigil editor, in a way that saves the various individual pages without HTML and Head. Is that possible? With Sigil? I've read various faqs and browsed the Sigil user guide and can't find it.
|
Since Sigil comes with an embedded Python interpreter, it's relatively easy to create a plugin that'll remove all <html> and <head> tags. Note that you'll also need to disable the
Mend XHTML Source Code on Save option.
For a simple proof-of-concept plugin that'll bold all occurrences of "the," see
this post.
For more information on the Sigil plugin API see the
Sigil Plugin Framework guide. Also check out the
Sigil Plugin Development forum.
EDIT: Depending on the structure of your books, you also might be able to remove the <html> and <head> tags with a Saved Search group.