Thread: KFX Format
View Single Post
Old 03-02-2017, 10:36 AM   #549
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,090
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
I did some more testing of this and it looks like eggheadbooks1 and AaronShep are both right in some cases.

I don't know all of the factors involved, but in my testing as long as there is an average of at least three regular spaces for every one non-breaking space then the nbsp's are retained. If there are too many nbsp's per regular space then they are replaced with regular spaces.

I have attached a sample EPUB that demonstrates nbsp's working in KFX. After opening it in Kindle Previewer 3.8 you can change the font and font size and you will see that it never breaks between 4's and 1's, where I have placed nbsp characters.

I have also attached a screenshot from the Previewer and a partial hex dump of the equivalent KFX file with the utf-8 nbsp characters highlighted.
Attached Thumbnails
Click image for larger version

Name:	example.jpg
Views:	234
Size:	62.6 KB
ID:	155396   Click image for larger version

Name:	hex-dump.gif
Views:	245
Size:	30.2 KB
ID:	155397  
Attached Files
File Type: epub nbsp-test.epub (1.6 KB, 219 views)

Last edited by jhowell; 03-02-2017 at 05:30 PM. Reason: Add images
jhowell is offline   Reply With Quote