Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2013, 03:36 AM   #1
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
The complete internal basic stylesheet?

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.
ibu is offline   Reply With Quote
Old 08-11-2013, 07:07 AM   #2
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
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
Advert
Old 08-11-2013, 07:25 AM   #3
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@Anak
I'm not sure, what you mean with "CSS selector engine".

What I'm looking for is just a stylesheet. Not an "engine".
Like this:
http://www.iecss.com/

Thanks for your hints about the future of Firmware Hacks. Sounds very bad.
ibu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stylesheet help arethusa ePub 6 07-02-2013 12:03 PM
REALLY basic, basic, basic questions MrB Amazon Kindle 3 10-22-2012 06:43 AM
Link Stylesheet Does Not Appear smallstate Sigil 2 09-20-2012 07:43 AM
How NOT to use a stylesheet? karyan Sigil 12 03-07-2012 12:43 PM
Horror James, M. R.: The Complete Complete Ghost Stories. v1. 27 Jun 2011 Mousewaffle Kindle Books 5 07-03-2011 09:04 AM


All times are GMT -4. The time now is 02:15 PM.


MobileRead.com is a privately owned, operated and funded community.