View Single Post
Old 09-20-2013, 02:07 AM   #63
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,076
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by paola View Post
do you know how an original epub and a liberated kepub compare?
The most noticeable difference is when you look at the chapter files, there are <span class="koboSpan" id="kobo.xxx.yy"> tags wrapped around sentences and spans. Generally the chapter title is 1.1 and each paragraph/span/div tag defines a block. Moving to a new block increments the xxx with the yy indicating the sentence (using sentence loosely) within the block. Oddly, I can't find where the koboSpan class is defined.

Kobo includes two extra style files. The kobo.css file seems to be empty in all the newer kepubs I've looked at. There is a javascript file (kobo.js) which seems to define a night mode, sets up columnization, controls pagination and a chunk of code related to bookmarking using the kobospan tags. That chunk includes a couple of comments about Webkit:

Code:
 * Estimate the first anchor for the specified page number. This is used on the broken WebKit
 * where we do not know for sure if the specific anchor actually is on the page.
and

Code:
 * Estimate the page number for the specified anchor. This is used on the broken WebKit where we
 * do not know for sure how things are columnized. The page number returned is zero based.

Regards,
David
DNSB is offline   Reply With Quote