View Single Post
Old 09-06-2024, 02:35 AM   #5
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Tenome View Post
Dang. Guess I'll see if Calibre can do it, though I don't like how there doesn't seem to be a way to turn off its renaming of CSS classes.
In Calibre's directory there is a program "ebook-convert.exe" that you can use on a command line.

It converts between formats, but doing epub to epub cleans up a lot of things, and doesn't rename classes, though it may create some new ones (e.g. if there are spans with styling).

Just do: "ebook-convert oldbook.epub newbook.epub" and see how it goes.
See https://manual.calibre-ebook.com/gen...k-convert.html for options, though default makes it manageable and I continue in Sigil.
Note that it may resize and compress images if they're "large", you can just reimport the originals or try using the option " --output-profile tablet" which will (usually) make it leave images as-is.
AlanHK is offline   Reply With Quote