View Single Post
Old 06-24-2010, 11:14 PM   #7
SensualPoet
Wizard
SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.SensualPoet ought to be getting tired of karma fortunes by now.
 
SensualPoet's Avatar
 
Posts: 2,295
Karma: 2607151
Join Date: Nov 2009
Location: Toronto
Device: Kobo Glo, Kobo Aura HD, Kindle Wifi, Nexus 7 (2013), Samsung Tab 10.1
Really ... can it be this easy?

I was poking around again ...

Calibre seems to rewrite everything. But in MOST epubs, there is ONE definition which applies to the vast amount of body in the book. Here's an example:

.calibre3 {
display: block;
font-size: 1em;
margin-bottom: 0%;
margin-left: 1em;
margin-right: 1em;
margin-top: 0%;
text-align: left;
text-indent: 1.5em
}

It's easy to see which is the main body since Calibre appears to re-assign the attribute on every single paragraph.

Here is ONE simple change that turns a left justified fixed very small book into a justified, user-controlled variable size font (the Kobo font button works) e-book:

.calibre3 {
display: block;
font-size: normal;
margin-bottom: 0%;
margin-left: 1em;
margin-right: 1em;
margin-top: 0%;
text-align: justify;
text-indent: 1.5em
}

This is the beauty of style-sheets: they are universal throughout the document(s).

Instead of "trashing" stylesheet.css ... make one small edit to the section which controls the main body of the book. In this example, it was ".calibre3" and that was easy to find since every paragraph in the html is labelled that way.

"Normal" appear to be a default which allows the e-reader to take control.
SensualPoet is offline   Reply With Quote