Thread: Touch .kepub.epub
View Single Post
Old 04-15-2013, 12:15 PM   #204
Anak
Guru
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: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by jgoguen View Post
As I've mentioned many times before, I can't include kobo.js or kobo.css, both of which are needed for many things (highlighting, annotations, bookmarks...) to work properly, because they are copyrighted non-distributable files.
I understand fully why you can include those files.
But nowadays the kobo.css is just an empty file and the kobo.js is the same in every kepub.
Kobo should not put these files into their kepubs but place them on their devices and write a routine that looks for them.
The only interesting thing i've found in the kobo.js is the "webkit-nbsp-mode" implementation by Kobo:

CSS property: -webkit-nbsp-mode
Description
Defines the behavior of nonbreaking spaces within text.
Syntax: -webkit-nbsp-mode: normal | space;
Values
• normal (default): Nonbreaking spaces are treated as usual.
• space: Nonbreaking spaces are treated like standard spaces.

Kobo.js
Kobo's implementation in the kobo.js file:
Code:
webkitNbspMode = 'space';
and could be changed to:
Code:
webkitNbspMode = 'normal';
Maybe this will work on sideloaded epubs if you add this to the reading section of the Kobo eReader.conf file:
Code:
[Reading]
readingWebkitNbspMode=normal
Anak is offline   Reply With Quote