Globally removes user selected style properties from the CSS or html files.
Requirements
Plugin Type: Edit
MIT Licence(OSI)
Minimum Sigil requirement: v0.9.3 or higher
Python Requirements: Python 3.4+ (Bundled or External)
OS Requirements: Windows, OSX or Linux
*** Tested on Windows 10, OSX and Linux ***
Current Version: "0.1.0"
Installation
* Select Manage Plugins from the Plugins menu. In the dialog box, select either the Bundled Python or the External Python(Python 3.4+ should be installed on your computer to run this plugin externally).
* Click Add Plugin and select StylePropertiesCleanups_vXXX.zip. This will load and install the plugin into Sigil, which you can then select and run using Plugins > Edit > StylePropertiesCleanup.
Description
This simple plugin allows the user to globally remove any style property from the epub CSS or html. It gives the plugin user a safe and simpler alternative for removing unwanted style properties rather than using Sigil's Search and Replace with regex.
This plugin should work for imported html and epubs, including epub 3.
Usage and Features
In the input dialog textbox just type in any single style property or you can type in a space delimited or comma delimited list of style properties to be removed globally in a single batch run. This plugin should help to make it easier to clean up stylesheets and html inline styling. You can use any style property you like such as font-size, font-family, page-break-before, letter-spacing, -webkit-hyphens etc and then just select one of the options below:
1. Remove style properties from epub CSS only(epub only)
2. Remove style properties from epub html or from imported html(epub or imported html)
And at the end of the plugin run another dialog will report the total number of style properties removed.
Note: Be aware that there is no option for removing style properties from the <style> section of imported html. If you need to do that then you should first convert your imported html to epub then just use option 1 above to remove any unwanted class properties from the epub css.
Changes:
Spoiler: