View Single Post
Old 09-30-2017, 01:26 AM   #1037
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
To batch modify a CSS property

Please have a look at this working script.

https://www.mobileread.com/forums/sh...90#post3587090

I think this gives some interesting possibilities to batch modify EPUB. This task could be handled by a Calibre plugin, because Calibre has built-in batch-processing capabilities.

For example one could thus previously tweak a batch of EPUB before a Kindle conversion (some CSS properties may be incompatible for this task).

A more ambitious purpose would be to define custom stylesheets that'll be added during all Calibre conversions .I.e., it might be easier to add all epubs to Calibre, define a custom stylesheet and then do an epub-to-epub conversion.

As I am not a coder, I'll leave this idea here, hoping that somebody will pick it up.

Last edited by PeterT; 09-30-2017 at 02:39 PM. Reason: Corrected URL
roger64 is offline   Reply With Quote