Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2013, 06:09 PM   #1
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,983
Karma: 44005669
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Compressed elements in libnickel.so

There seem to have been some MAJOR changes in the CSS used within 2.8.1B and the original 2.8.1.

Attached find a dump of all the compressed streams I found using the signature 0x78 0x9c within the original, and the new libnickel.so.

You will see the original had 1525 compressed chunks; the new one only has 47, and one I don't see at all is the ReadingFooter code

Suggestions as to what we might look for, for the patcher would be appreciated.

This was generated with the following (ugly) python script.
Spoiler:

Code:
import zlib
import sys
from glob import glob

ZLIB_MARKERS = ['\x78\x9c']

def zipstreams(filename) :
  with open(filename, 'rb') as fh:
    data = fh.read()

  pos = 0
    
  while pos < len(data) :
    window = data[pos:pos+2]
    for marker in ZLIB_MARKERS:
      if window == marker:
        try:
          zo = zlib.decompress(data[pos:])
          print '{:s}:{:x} --> {:s}'.format(filename, pos, repr(zo))
        except zlib.error:
          pos = pos
    pos += 1
    if pos == len(data):
        break

for filename in glob('libnickel.so.*'):
  zipstreams(filename)
Attached Files
File Type: txt all_zlib.txt (550.9 KB, 75 views)
PeterT is online now   Reply With Quote
Old 10-04-2013, 06:31 PM   #2
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,303
Karma: 337944
Join Date: Jun 2012
Device: kobo touch
Things that I tried were:
- checking for streams that share the same properties
- checking for streams that share similar values
- identifying corresponding streams in the two files and trying to come closer to the searched for code on that way

I failed.
tshering is offline   Reply With Quote
 
Enthusiast
Old 10-05-2013, 10:53 AM   #3
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,303
Karma: 337944
Join Date: Jun 2012
Device: kobo touch
With FW 2.8.1[a] some css/html code had already been shifted from libnickel.so.1.0.0 to nickel. With 2.8.1b some more blocks have been shifted, even some new css code inserted. However, I am not able to find the code for ReadingFooter even there. Maybe they stopped defining the appearance of the footer by css code.

In nickel, there are streams with other compression levels too. However, they all seem not to contain human readable code.
tshering is offline   Reply With Quote
Old 10-05-2013, 11:05 AM   #4
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 289158
Join Date: May 2011
Device: Kobo Glo and Aura HD
Kobo designers look to be very proud of their interface the way they thought it... All those moves, beginning with compressing ccs, are obviously meant to block our initiatives.
giorgio130 is offline   Reply With Quote
Old 10-05-2013, 11:35 AM   #5
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 2,882
Karma: 3893597
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite, AuraHD, PDA, Eee Transformer
Kobo obviously has the means to display the image formats that are stored as image files in the ebooks. Don't think that anyone has unearthed the code that nickel is using for its suspend function, that should show how it gets the file it displays. From a data base reference most likely. A patch should be possible to change the result to always point to a particular image file. (Say a user supplied "ScreenSaver" .png or .jpg or .svg?)

Luck;
Ken

Last edited by Ken Maltby; 10-05-2013 at 11:38 AM.
Ken Maltby is online now   Reply With Quote
Old 10-05-2013, 05:21 PM   #6
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,836
Karma: 4199513
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
Nevermind

Last edited by jackie_w; 10-05-2013 at 05:35 PM.
jackie_w is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressed Book Summaries Tony30 Deals, Freebies, and Resources (No Self-Promotion) 1 02-25-2013 07:57 AM
html elements in epub kamwoj ePub 8 02-11-2012 05:43 AM
Compressed Manga albogango Sony Reader 10 09-09-2011 10:57 PM
Feed Elements mean_gene Recipes 6 12-12-2010 07:31 PM
converting from standard mobi to compressed mobi noideaatall Kindle Formats 6 07-11-2010 03:10 PM


All times are GMT -4. The time now is 09:48 AM.


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