From 1767c90680afa567d2ae419b10a39e294811fe55 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 May 2014 14:34:11 +0530 Subject: [PATCH] Edit Book: A new tool to filter style information (Tools->Filter style information). Useful to easily remove some CSS properties from the entire book. --- manual/edit.rst | 11 ++++ src/calibre/ebooks/oeb/polish/css.py | 78 ++++++++++++++++++++++++++ src/calibre/gui2/tweak_book/boss.py | 18 +++++- src/calibre/gui2/tweak_book/ui.py | 3 + src/calibre/gui2/tweak_book/widgets.py | 64 ++++++++++++++++++++- 5 files changed, 170 insertions(+), 4 deletions(-) diff --git a/manual/edit.rst b/manual/edit.rst index d4a2269156..a43992b375 100644 --- a/manual/edit.rst +++ b/manual/edit.rst @@ -400,6 +400,17 @@ If you use this tool multiple times, each invocation will cause the previously created inline Table of Contents to be replaced. The tool can be accessed via :guilabel:`Tools->Table of Contents->Insert inline Table of Contents`. +Filter style information +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This tool can be used to easily remove specified CSS style properties from the +entire book. You can tell it what properties you want removed, for example, +``color, background-color, line-height`` and it will remove them from +everywhere they occur --- stylesheets, ``