Thread: epub vs kepub
View Single Post
Old 11-13-2014, 10:50 AM   #33
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by Ripplinger View Post
Quote:
Originally Posted by jackie_w View Post
Like Jellby, in the past I also experienced epub centred text and images not being centred when converted to kepub. On thinking about it a bit more I think my problem must have been that I mistakenly had the Kobo font settings Justification option set to Justify when I should have had it set to Off (i.e. don't overwrite any text alignment in the book).

Just a personal opinion but I think the Kobo justification override should only attempt to override text-align settings of left or justify and always leave alone settings of center or right.
That's one of the issues I dislike about kepubs as well. But even when I purchase a kepub from Kobo, it still had everything aligned left and not centered, so I really don't think it's from converting epub to kepub. I think if you select justified text in the settings, it overrides everything as you said and not just the main body of text.
Yes, I agree with you. I also think that justify/left settings shouldn't be applied to centered/right aligned texts... But IIRC, (I'll test it ASAP), this trouble also happens in Kobo implementation of RMSDK, I mean, in epubs.

(More over: remember that, as a completely unexpected and unasked for side effect, when you force text justification through GUI in ACCESS, hyphenation is also turned on by default...)

Quote:
Originally Posted by Jellby View Post
This was only a guess. But what I mean is that when the user selects "justify", the reader could apply it (on top of the book's CSS) in different ways. A possible way is adding an implicit "body { text-align: justify }" rule. Another way is a "* { text-align; justify !important }" rule, and yet another is ".normal-text { text-align; justify }". The first would be my preferred one, the second overrides some alignment which is not meant to be overriden, the third requires the class "normal-text" to be used in the code. I don't know which are the chosen ones in the different renderers, but it seems to me they are different, and I'm used to work with ADE's one.
Because of the shown behaviour I really think it's the second one (with !important)...

The first one would only apply for text free any kind of CSS text-align setting, and that's not what we get.

On the other hand, I would like to know how to code jackie_w's preference (and also mine). I mean a CSS setting which weren't apply to any paragraph with right/center but which where applied to any paragraph with left/justify, no matter how those values were previously set in the book CSS styles.

Quote:
Originally Posted by Jellby View Post
If you are interested, could you try this test?
Why not?

Downloaded both books just now from your own thread. I'll test them converted into kepubs when I have some free time.
arspr is offline   Reply With Quote