Thread: ePub vs. kePub
View Single Post
Old 08-11-2015, 05:10 PM   #29
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Ripplinger View Post
So it's down to something I forgot to mention in the above post. It's livable, just not preferable for me, where unless you have justification off, kepubs override all centered text and align everything left.
If you're using the Kobo Patcher one of the kepub patches can fix that for you.
Spoiler:
Code:
<Patch>
patch_name = `Un-Force user text-align in div,p tags in KePubs`
patch_enable = `yes`
# Multi-version patch: 3.3.0 - 3.16.0+
#
# This patch allows the text alignment set by the publisher in the kepub
# stylesheet to override the alignment selected by the reader from the device.
#
#     div, p { text-align: %1 !important; }
# --> body   { text-align: %1 !important; }
#
find_base_address = `d\0i\0v\0,\0 \0p\0 \0{\0 \0t\0e\0x\0t\0-\0a\0l\0i\0g\0n\0:\0 \0%\01\0 \0!\0i\0m\0p\0o\0r\0t\0a\0n\0t\0;\0 \0}`
replace_string = 0000, `d\0i\0v\0,\0 \0p`, `b\0o\0d\0y\0 \0 `
</Patch>

This should make text-alignment overriding for kepubs work the same as epubs.
jackie_w is offline   Reply With Quote