Thread: Aura E2 Drop cap weirdness.
View Single Post
Old 04-12-2022, 06:06 PM   #20
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: 792
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by hobnail View Post
The way I do it is by editing the epub. If you look at the first sentence you'll typically see a span around the first letter, and sometimes another one around the first few words to make them small caps. The first span has a class, often with an obvious name; just do a global search and replace on it (including all of the html files) to make them go away, so that the span has no class. So 'span class="firstletter"' becomes simply 'span' (with the angle brackets of course).
I'm just working up enough courage to try this kind of thing. But, instead of deleting the class in the span, could I go to stylesheet.css, find the style and delete (or somehow comment out) everything between the curly brackets? That seems like it might be a bit easier.

For instance, in the book I'm reading now, it looks like the drop caps are done by:

Code:
<span class="char-style-override">x</span>
In stylesheet.css, I'm seeing:

Code:
.char-style-override {
    color: #666;
    float: left;
    font-size: 5.839em;
    line-height: 1.5em;
    margin-bottom: -0.46em;
    margin-right: 0.05em;
    margin-top: -0.5em
    }
Would just sticking a /* */ pair around everything be safe:

Code:
.char-style-override {/*
    color: #666;
    float: left;
    font-size: 5.839em;
    line-height: 1.5em;
    margin-bottom: -0.46em;
    margin-right: 0.05em;
    margin-top: -0.5em
    */}
?

EDIT: I just tried it and sent the book over to my Forma. It seems to work. No smoke pouring out of the device at all and those miserable drop caps are gone. Yay!

Last edited by enuddleyarbl; 04-12-2022 at 06:22 PM.
enuddleyarbl is offline   Reply With Quote