Quote:
Originally Posted by Lucas Malor
@arspr: your bugs are similar to this one. Do you know if they happens with other special characters too?
|
It's similar and it's not.
The problem there is that html tags are breaking the link between punctuation marks and their partner word. I don't know if this is a bug or just how html is supposed to work. I cannot assure that that behaviour is wrong (even if it seems weird).
You should test if you suffer the issue in, let's say, <i>what</i>ever (which should be displayed as
whatever). I bet that the renderer is also going to wrap in the middle of the word when necessary.
It would be similar to the trick with
white-space:nowrap;. I mean, a dash is probably a "possible wrap point" in html standard. So the problem is not in the renderer (which uses html rules) but in the use that Spanish makes of dashes within dialogues. Because of that, I don't claim that wrapping between dashes and their partner word is a bug. I suppose that it is just a conflict between Spanish language rules and html ones (built upon English).
But the problem in kepub renderer is that it is breaking "—whatever—" in three different words even in the middle of a line. And I haven't seen this behaviour in any other place but in kepub renderer... And in addition, there doesn't seem to be any way to avoid or modify that behaviour. (While in your issue you can also use the
white-space:nowrap; fix).
And, in the second bug, the epub renderer is not following the explicitly forbidden wrap through the white-space property...