Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : layout values in cache.xml


kenbaldwin
01-03-2007, 06:44 PM
Does anyone understand the values of the <layout> elements in the cache.xml file on the memory card?

For example, see the cache.xml file posted here:
http://www.mobileread.com/forums/showthread.php?t=7713

Ken

kenbaldwin
01-03-2007, 06:47 PM
A short example is attached.

Ken

kovidgoyal
01-03-2007, 06:59 PM
As a first step its encoded in base64. Attached is the decoded version for The_World_Turned_Upside_Down part=0 scale=0

Dont be fooled by the txt extension. You will need to look at it in a hexeditor.

cmumford
01-03-2007, 07:45 PM
It looks like this might be a FreeType font.

kovidgoyal
01-03-2007, 07:55 PM
Isn't it too small to be a font? Besides I would imagine it only specifies a font size...the rest is pagination information. layout sections are present for LRF files as well where there isn't an embedded font. They can be generated by either the CONNECT software or the reader itself, when it first opens a book.

kenbaldwin
01-04-2007, 10:13 AM
Is it possible to reverse engineer the encoding scheme? Doing so would make it possible to develop (lighter, faster, crossplatform) tools to replace the CONNECT software for simple file transfers.

I'm on Windows and use CONNECT to transfer books to the memory card in order to get the books pre-paginated, but the process is painfully slow. I'd really like a simple app for transferring books that was smart enough to update the cache.xml appropriately, to avoid delays when a new book is opened or re-scaled.

Ken

kovidgoyal
01-04-2007, 10:30 AM
Its on my todo list
https://libprs500.kovidgoyal.net/ticket/20

However, its not a high priority, so unless you're willing to do some reverse engg, don't hold your breath.

NatCh
01-04-2007, 11:30 AM
I have a question about libprs500, kovidgoyal: is it going to be (or is it now -- I haven't had a chance to play with it yet) something that I could install and run from, say, a flash drive?

I'd love to have a portable replacement for Connect, and I very much like the looks of what you're doing there. :yes:

kovidgoyal
01-04-2007, 11:57 AM
libprs500 itself is a single file alongwith a couple of 3 line executable scripts to launch the CLI and GUI. Provided that the computer you plug your flash drive into meets the dependency requirements, yes, it is portable.

NatCh
01-04-2007, 12:16 PM
Excellent! Thanks.