View Single Post
Old 08-11-2013, 07:07 AM   #2
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 ibu View Post
Each Internet browser has a built-in internal basic stylesheet?

It's rules are applied, if a webpage comes without any own style sheets/rules.

I suppose it's the same with Kobo's rendering machine.

Example:
We have an ePub with the following code.
No styles at all.
Code:
<h1>Lorem ipsum</h1>
<p>Adipisit sit</p>
<p>Eiusmod consectutur</p>
In the reading settings (in the GUI of the Kobo) for line height the slider is somewere in the middle.

Result:
The line height of the paragrahps is shown as expected.

The line height of the H1 is shown as if it has the value "1".

Question:
Is there a webpage which shows the complete internal basic stylesheet?
(May be someone who rooted his Kobo, has find that file?)

The firmware version of my Kobo is 2.8.1.

Thanks.
I guess you're looking for the CSS selector engine that contains all selectors default settings.
Kobo uses
  • jQuery, a fast, small, and feature-rich JavaScript library, and
  • Sizzle, a pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.
I've seen it in one of the files (not sure which, nickel? hindenburg?) in previous firmwares (as I've not searched for it in 2.8.1.)

There were also plain default CSS selectors in libQtXml.so.4.6.2 but I don't think these are in use by any of the epub renderers.
They seem to be zipped now. Just as almost everything else that was easily editable in previous firmware versions.

IMO, Kobo is closing every possible firmware hack by zipping up or encrypting plain text entries or by rewriting routines in such a way that previous hacks don't work anymore. I'm pretty confident that if and when a new firmware version will be released more and more plain text will be zipped or encrypted.

Last edited by Anak; 08-11-2013 at 07:09 AM.
Anak is offline   Reply With Quote