View Single Post
Old 04-02-2016, 11:22 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by doubleshuffle View Post
Well, that's a sledgehammer indeed.

Thanks a lot. Very helpful reply!

I do patch my Kobo, I've just never bothered with the kepub patches. Seems I'll have to now.

Or I'll use the quick and dirty fix for my little problem that caused me to try kepub, and keep on keeping away from that format. Sheesh, seeing my styles so awfully ignored felt like trying out FB-Reader years ago...
Dubbs! I wish I had any type of answer for you, but I don't. I have a client who is suffering the slings and arrows of Kepubbing, but not with the actual ePUB, as it is delivered--with the bloody previewer! The horror story I have on THAT one...

Quote:
Originally Posted by dgatwood View Post
No need to patch things. Just change your stylesheet slightly.

The !important in the Kobo rule is evil for a built-in rule, because it overrides anything that isn't similarly marked !important. However, if you add !important to your stylesheet, specificity rules come back into play.

In other words:

Code:
div.prose > p.center {text-align:center !important; text-indent:0 !important;}
That will have greater specificity, and thus should override the built-in stylesheet.
@Dag:

Have you had any success with the !important modifier vis-a-vis the Previewer, at Kobo's website?

I have a client that paid some damn good money, for a rather complex ebook (exercises...you know). We did said book. After a lot of blood, pain and suffering, the book met with her approval. (And, thank you, sweet Baby Jesus...).

But, alas, the bloody book seems to have MIA top-margins (or bottom. At this point, I no longer remember). So, after us tweaking the thing more than a few times, to no avail, she complains to Kobo Support. She's not a bad client--I mean, she's not bitching AT me, she's asking for our help. Just wanna be clear about that.

So, her and Kobo: Back-forth, back-forth, yadda. Finally, one of their "techs" FIXES <> the ePUB. Right? Everything's all fine?

I review the "fixed" ePUB, and whichever way it was ignoring, the Tech swapped out top-margin for bottom on the preceding element. Fine. Whatever, at this point.

But, lo: the "fixed" ePUB doesn't work, EITHER. Not in the Preview. Vertical whitespace between things like a set of images and the destructions for that exercise are collapsed. To me, the book doesn't look godawful (and I'm picky), but not as "great" as it looked when done. Nonetheless, the point here is: apparently, their own damn techs can't make KEPUB work, EITHER.

Have you had any success taming kePUB's preview, Dag? Or are you saved from that indignity? I'd like to assist this client if I can. The "expert" tech used the important modifier, which seemed to do absolutely zippo, zilch, nein, nada.

Spoiler:
Non sequitur: am I the Lone Ranger here in hating the !important; modifier?


Hitch
Hitch is offline   Reply With Quote