Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2023, 11:21 PM   #1
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 517
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
KFX glitches on non-breaking space

The following snippet of source in an EPUB (which I checked 3 times to make sure there wasn't any sort of invisible character in it):
Code:
which started at three&nbsp;<span class="smallcaps">P.M.</span> and went
resulted in this display on a Kindle, after conversion to KFX:
Code:
which started at three-
 P.M. and went
Because of the non-breaking space, the Kindle treated "three P.M." as a single word, and then hyphenated it.
nabsltd is offline   Reply With Quote
Old 08-27-2023, 03:56 AM   #2
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,653
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Turn off hyphenation?
Don't use KFX, which is less similar than azw3 to epub. The advantages of it are oversold.

That seems to me like intended behaviour, not a glitch because of three rather than 3.

Also 3 rather than three is more common for time. It might not hyphenate
Code:
started at 3&nbsp;<span class="smallcaps">P.M.</span> and went
Chicago guide & AP has 3 p.m.
3 pm is also common.

Style guides also indicate when numbers should be digits and when spelled. Phone numbers, time, credit cards, house numbers etc should be digits.

Sometimes the space is the smaller space used for a value as digits with units as in 3 kg. Those also come in regular and non-breaking.

For compatibility only PDF or paper should use small caps and smaller size spaces.

Last edited by Quoth; 08-27-2023 at 04:07 AM.
Quoth is offline   Reply With Quote
Advert
Old 08-27-2023, 04:47 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
get rid of the non-breaking space,
JSWolf is offline   Reply With Quote
Old 08-28-2023, 09:31 AM   #4
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 517
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by JSWolf View Post
get rid of the non-breaking space,
The whole point of the non-breaking space is that the time (i.e., "2 p.m.") shouldn't be split across two lines.

I think @Quoth had it right in that it was caused by using the word instead of a number. I hadn't seen it before in hundreds of books, all formatted with non-breaking spaces between the number and the [ap].m.
nabsltd is offline   Reply With Quote
Old 08-28-2023, 09:35 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by nabsltd View Post
The whole point of the non-breaking space is that the time (i.e., "2 p.m.") shouldn't be split across two lines.

I think @Quoth had it right in that it was caused by using the word instead of a number. I hadn't seen it before in hundreds of books, all formatted with non-breaking spaces between the number and the [ap].m.
p.m. can still be split at the periods. So you could end up with...

2 p.
m.
JSWolf is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KEPUB and non-breaking space Vetchy Kobo Developer's Corner 33 11-13-2024 02:44 PM
Non-breaking space JSWolf ePub 38 06-09-2020 09:00 PM
non-breaking space cramoisi KOReader 22 04-25-2017 03:47 AM
Non-Breaking space drago87 Conversion 0 01-20-2016 05:52 AM
Why the non-breaking space? Notjohn Sigil 2 06-08-2015 05:24 AM


All times are GMT -4. The time now is 07:35 PM.


MobileRead.com is a privately owned, operated and funded community.