![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 <span class="smallcaps">P.M.</span> and went Code:
which started at three- P.M. and went |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 <span class="smallcaps">P.M.</span> and went 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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,
|
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 517
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
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. |
![]() |
![]() |
![]() |
#5 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
2 p. m. |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |