View Single Post
Old 07-09-2022, 10:58 PM   #9
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 784
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by romad View Post
If I can figure out how to do so, I will.

OK, after opening the ePub in the Calibre Editor, I determined that part0005.html is Chapter One. It has 67 lines of code. Do I just copy&paste it all here?...?
For the book text, just copy the first couple of paragraphs as one lump from something like that part0005.html file and paste it between a set of elements here. Then go to the Styles section of the editor and look at the various .css style sheets there. Usually, the one with everything in it here is stylesheet.css. But, it might be different on yours. Look for the bits of styling information in there that match what's showing right at the front of those text paragraphs you copied/pasted.

For instance, in a book I just popped into the editor, the first actual paragraph of the book starts with:
Code:
<p class="nonindent"><span class="dropcaps3line">A</span>....
Looking in stylesheet.css, I find the following matching styling sections:
Code:
.nonindent {
    display: block;
    outline: 0;
    text-align: justify;
    text-indent: 0;
    margin: 0;
    padding: 0
    }
...
.dropcaps3line {
    float: left;
    font-size: 4.5em;
    line-height: 0.75em;
    margin: -0.1em 0.05em -0.4em 0
    }
You'd be looking for classes near where the odd behavior starts (2nd paragraph?).
enuddleyarbl is online now   Reply With Quote