View Single Post
Old 09-02-2012, 11:12 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,116
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by phossler View Post
Real noob question:

When I convert a MOBI to EPUB using Calibre to clean it up and add my own CSS using Sigil, there's a lot of Calibre-created tags that I have to manually do a F&R on.

Things like:

<p class="calibre2"> ... <p class="calibre99"> etc.

<p class="calibre1 sgc-1">&nbsp;</p>

<div class="mbppagebreak" id="calibre_pb_0"></div>

My CSS has the 'standard' <p>, <h1>, etc. and I usually have to tidy' up the Calibre tags, inport my CSS, and manually apply the Headings

I assume there's no script (darn !!!) , but some guidence on a easy way to clean the tags would be appreciated.

Paul
If you simply remove the class selectors from the stylesheet, they will be ignored in the body.
Now, doing it your way, destroys existing styling that is only slightly obvious from context.
How does your P tag know an item should be centered? Italic? Bold?
What about the H tag? Centered? Italic?
Then ther is the infamous HR tag that ADE does not center if less than full width.
IMHO it is far better to hand tune each stylesheet that FITS THE BOOK than use a OSFA stylesheet with a book NOT created for that sheet
theducks is offline   Reply With Quote