View Single Post
Old 03-27-2012, 07:19 AM   #5
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by Gusgsm View Post
I input XHMTL as simple as possible. That is: plain p, h2, h3, and h1 tags with some em and blockquotes. No more as what I do are plain text novels. Then I add a very simple css with very basic rules (align letf, size 1em, 1.4em...). Nothing more as I like/need my code and texts to be as simple and clean as possible.
I achieve this by using calibre's Tweak ePub option after conversion:

1) Explode the ePub.
2) Copy your own stylesheet.css over the top of calibre's generated one.
3) Use a simple regex to remove all class="calibre..." from the generated HTML documents.
4) Rebuild the ePub.

You can omit step 3 but this will leave redundant data in the book.

I know it's a few steps but it doesn't take long and you only do it once for each book, provided you do not reconvert. (Maybe there would be a way to program this as a plugin to automate it.)

I agree, it would be useful to be able to do this via some sort of conversion dialogue.

Last edited by Agama; 03-27-2012 at 07:22 AM.
Agama is offline   Reply With Quote