View Single Post
Old 11-21-2019, 08:44 AM   #31
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,804
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
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">&#x2005;</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

  <p>Etiam lobortis, massa ac aliquam auctor. —<span class="ps">&#x2005;</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 &#x2005; for any of the others special spaces cited above.
Attached Files
File Type: epub Bullets.epub (2.2 KB, 190 views)
RbnJrg is offline   Reply With Quote