Quote:
Originally Posted by cramoisi
|
Sorry, I have at no point made any claim that the kepub renderer is not doing something wrong. It is clear from several screen shots that have been displayed of the effect. What I am questioning is what is happening under the covers.
The OP stated that no-breaking spaces were not supported. That is wrong. They are supported and do at least two of the expect functions (act as a space, prevent line breaks).
Semwize is stating that no-breaking spaces are treated the same as a normal space and will be expanded or compressed as needed to justify the text. From the evidence I see, that is not the case. As I have stated several times, I suspect it is the handling of the other characters near the no-breaking space that is contributing the extra spacing and making it look like the no-breaking space is actually the culprit.
If someone wants another way to test this, then create an epub with the following in it:
Code:
<p>m m m m m m m m m m m m m m</p>
But, repeat that enough to flow over more than one line. The change the margins on the device and see what happens to the spacing. If all are always equal, then the no-breaking space is being stretched like the normal space. If there are differences, then they are not being stretched.
But, I'll also state that based on my research, stretching the non-breaking space is the correct behaviour. The fact that no renderer has gotten this correct doesn't keep it form being correct. That means that for languages like those under discussion, it should be done by some other method. Possible a narrow-non-breaking space. Or two. From the discussion a while ago about French, I thought that was the character that should be used.