View Single Post
Old 12-10-2016, 02:50 PM   #10
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by KevinH View Post
I looked at the plugin.py file. The Tk stuff will have to be updated but most of the real work is done in Remove which uses regular expressions to simply strip off all attributes from a specified set of tags inside a body tag.

If you don't have time, I would be happy to try to make a version that will work with both python2.7 and 3.4 so that the new version will still work for people using older Sigil versions that still support python 2.7.

Just let me know.

KevinH
If you decide to proceed, I have some tiny corrections that enable smoothRemove to deal with < b >, < blockquote > and < i > correctly. As it stands, the "bold" tag doesn't get closed and blockquote is just deleted entirely. I forget what's wrong with the "italic" tag. I'll be watching my inbox here at least once a day.
signum is offline   Reply With Quote