Quote:
Originally Posted by jhowell
I did some testing with the Kindle Previewer and had good results there by replacing the non-breaking space with a figure space (   ). KFX treats that as having a fixed width.
|
Great discovery!

And your investigation leaded me to try another special spaces to see how they worked in KP. According to my tests, all the following spaces work everywhere:
Code:
    Half an EM SPACE.
    Usually a space equal to the type size in points.
    One-third of an EM SPACE, called a thick space.
    One-fourth of an EM SPACE, called a mid space.
    Width of a digit in some fonts.
I used   and looks perfect everywhere (ADE, Sigil, Calibre, KP 3.35). Of course, the user has the choice of employing the space whose width is according to his/her wishes.
So, with your contribution, I can say that the following code:
Code:
<p>—<span class="ps"> </span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>Etiam lobortis, massa ac aliquam auctor. —<span class="ps"> </span>Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus.</p>
with
Code:
p {
text-align: justify;
}
.ps {
white-space: pre;
}
works everywhere. Of course, the user can change   for any of the others special spaces cited above.