Quote:
Originally Posted by tatagi
thank you again. at least with your plugin, It doesn't unnecessarily leave caches by opening first file in editor's GUI interface. very useful for that reason alone.
here's another question. could you please make chain action settings to also remove all the embedded fonts in tools-manage fonts - select all fonts - remove selected fonts? if this is combined with compress images settings, it would be much better.
|
There is already an action called "Remove Files" which can be used to remove any kind of files by specifying the names of the files you want to remove (regex supported), after that you only need to remove any css @font-face rules using a simple regex.
A chain that contains all the above action is attached here. I changed the name of the chain to "Misc Action", so if you want to run it from the command line:
Code:
calibre-debug -r "Editor Chains" "Misc Actions" path_to_input.epub path_to_output.epub
P.S. You can run the chain all books in a calibre library if you have the Action Chains plugin installed. So if you want, you can add all your books to temporary calibre library, select all the books there, run the chain and finally save the files to disk again using the save to functionality of calibre.