View Single Post
Old 07-04-2019, 01:54 PM   #89
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 lumpynose View Post
You're right, I do have justification set to ragged right. But surely that can't be right for it to left align a line that's set to centered in the CSS? And I didn't change the justification when I switched to the regular touch driver.
The problem you're seeing is entirely due to the differences in the default override CSS used by the two different Kobo reading apps used for kepub and standard epub.

For text alignment, the Adobe app, used for standard epub, uses
Code:
body {text-align: %1 !important;}
as it's override CSS, where %1 is the value you choose in the Kobo's [Aa] font menu (if it's not set to 'Off').

On the other hand, for the kepub reading app, the default override CSS used is
Code:
div, p { text-align: %1 !important;}
This is why setting the alignment to anything other than 'Off' changes your kepub centred styles for <div>s and <p>s to left/justify depending on which alignment you selected.

You have 2 choices to change this inconvenient behaviour:
  • set the Justification button to 'Off' and leave it there. You will then be reliant on each of your epubs/kepubs containing your text-align value(s) of choice.
  • use a kobo patch to change the override CSS for kepubs to match that for standard epubs. I don't remember whether you're a user of the kobopatch system but if you are the one you need to enable is called 'Un-Force user text-align in div,p tags in KePubs'
jackie_w is offline   Reply With Quote