View Single Post
Old 08-19-2018, 03:04 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pittendrigh View Post
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.

Last edited by Doitsu; 08-19-2018 at 07:07 AM.
Doitsu is offline   Reply With Quote