View Single Post
Old 04-14-2013, 12:58 PM   #10
Anak
Fanatic
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
webkit-nbsp-mode / webkitNbspMode / Kobo

Quote:
Originally Posted by Jellby View Post
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.
If you have a Kobo (Touch, Glow or Mini) you could try this. I have not tested it myself.

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.
Kepubs
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';
Kobo eReader.conf
File location: .kobo/Kobo
Add the webkitNbspMode to the "Reading section" of the file
Code:
[Reading] (section)
Add here:
readingWebkitNbspMode=normal
Or add to the CSS file
Code:
-webkit-nbsp-mode: normal;
Anak is offline   Reply With Quote