![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Use of nonbreaking space ( )
Okay, first of all I know this is really specifi to french langage and writing rules and I'm really sorry. Hope you still love me!
![]() I wonder if is optimal to use the nonbreaking space before every ponctuation marks (; : , . ? !) ? Is there a general rule or a better way to go? I would like to get something well conded and well edited. I hate to see a "." or a "%" alone on the last line of a "page". Thanks a lot! ![]() |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 343115
Join Date: Nov 2009
Location: Romania
Device: PW2 2014
|
Shouldn't e-readers do this automatically? Romanian has words like "să-l", "ce-i", "într-o", "într-adevăr", "s-au", and so on (kinda like the English abbreviation of "don't", "it's", "they're", etc), and it always breaks them at the dash.
Software is dumb. I say do whatever you can to make them more presentable. Sigil can find and replace " .", " ?" and " !" (space in front) for all HTML/XHTML files. Last edited by DSpider; 11-27-2012 at 08:11 PM. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,681
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
As for the non-breaking space issue, roger64 contributed to several threads on how to best implement them. For example: Narrow No-Break Space and commercial support. |
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Thanks, I'll keep this in mind. Is there a reason why thinspace can be problematic? I assume it's a webkit specification?
|
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Quote:
A big thank you to everyone! ![]() |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
It is a font set problem. Not all fonts support the thinspace. If you want a thinner space then put a span tag around the nbsp and then scale it smaller using CSS to simulate a thinner space.
|
![]() |
![]() |
![]() |
#9 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Or just use the thin space (non-breaking, of course) and let others convert it to some hacked-up code (like a scaled-down ) if their readers do not offer proper font support.
It's OK to try to please everyone, but if we all use poor code, we'll keep having books with poor code, and no incentive for software developers to give us better readers. |
![]() |
![]() |
![]() |
#10 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 600
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
webkit-nbsp-mode / webkitNbspMode / Kobo
Quote:
Code:
Webkit syntax -webkit-nbsp-mode: normal | space; • normal (by default): Nonbreaking spaces are treated as usual. • space: Nonbreaking spaces are treated like standard spaces. In the kobo.js file there is a webkitNbspMode option, Code:
In the kobo.js file locate: body.webkitNbspMode = 'space'; Change this to body.webkitNbspMode = 'normal'; File location: .kobo/Kobo Add the webkitNbspMode to the "Reading section" of the file Code:
[Reading] (section) Add here: readingWebkitNbspMode=normal Code:
-webkit-nbsp-mode: normal; |
|
![]() |
![]() |
![]() |
#11 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,016
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of for spacing | Ripplinger | Sigil | 11 | 11-25-2012 04:36 AM |
iBooks does NOT LIKE | Erin | Apple Devices | 0 | 09-13-2011 11:17 AM |
txt to Epub - nbsp nbsp | cybmole | Calibre | 1 | 09-17-2010 09:05 AM |
Specify indent in css, not with   | James_Wilde | Calibre | 7 | 09-13-2010 09:48 PM |
Mobiperl lost when converting to mobi | Jellby | Kindle Formats | 19 | 08-26-2008 03:10 PM |