View Single Post
Old 01-20-2023, 12:24 AM   #9
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by tatagi View Post
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.
Attached Files
File Type: zip misc_actions.zip (573 Bytes, 116 views)

Last edited by capink; 01-20-2023 at 12:31 AM.
capink is offline   Reply With Quote