Thread: KFX Format
View Single Post
Old 03-02-2017, 03:18 PM   #551
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by jhowell View Post
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 and a partial hex dump of the equivalent KFX file with the utf-8 nbsp characters highlighted.
Thank you, jhowell.

I confess, I'm sitting here debating on how the hades we'd ever figure out if a book had a ratio of 3:1, but...(*&^%$#@!, I guess at least we know that that's near to what it probably is, in their internal coding. For the love of.....

grrrrrrrrrrrrrrrrrrrrrrrrrrrrr

(And have we, EVER, used nbsp's, specifically, as egghead noted, for visual poetry? You betcha you pants we have. Bl**dy H*ell.)

Hitch
Hitch is offline   Reply With Quote