View Single Post
Old 05-12-2012, 07:38 PM   #18
geormes
Groupie
geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.
 
geormes's Avatar
 
Posts: 153
Karma: 216188
Join Date: Jul 2010
Device: Nook Classic, Kobo Touch, Nook Simple Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
Another issue is the code does get changed. If you are converting an ePub that has @page and/or embedded fonts, you get a nightmare in return due to Calibre's placing all the CSS @ code in almost every XML file. I prefer to know how to edit the code. In fact, it's not that difficult to do. Sometimes all it takes is removing @page & body if either/both exist and putting in a new body style. Sometimes all you need is a body style with the margin as you want them.

Code:
body {
  font-family: serif;
  widows: 0;
  orphans: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: justify
}
Most newer ereaders let you change fonts, font-size, margins, etc. Why not have Calibre remove fonts, margins, font-size, etc. when doing an epub to epub conversion? Then you are left with a calibre generated stylesheet like this:

.calibre {
display: block
}
.calibre1 {
height: auto;
width: auto
}
.calibre2 {
font-weight: bolder
}
.calibre3 {
display: block;
font-weight: bold
}
.calibre4 {
display: block
}
.calibre5 {
font-style: italic
}
geormes is offline   Reply With Quote