![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS-505
|
Layout format?
Does anyone have any details for how the layout data is stored in \database\cache\media.xml under the xdbLite/records/xs1:text/xs1:layouts/xs1:layout nodes?
I have a little pet project that would benefit from being able to read this information on the desktop, but before I go digging into this mime encoded blob and see how it's crafted, I thought I'd ask if someone else has a clue how the data is stored. Thanks! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
It's pretty complex and it's specific to a file format (i.e., txt, rtf, lrf all use it differently). Basically it describes the position in file at which every page starts. Naturally, it depends on the actual font and rendering algorithm used. Even a slight disrepancy can lead to the "missing lines" problem that many people had when replacing fonts on the device but forgetting to replace them on the PC.
If you still want to know the details I will try to describe them. I don't really see how it will be useful to you since you'll need to reproduce the LRF rendering very closely to how Reader does it and that's not trivial... |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS-505
|
Quote:
Any hints as to the format you could give would be much appreciated. If it makes your life any easier, I really only care about the lrf format. |
|
![]() |
![]() |
![]() |
#4 | |
curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Quote:
Now that would be spiffy! ![]() In fact, if someone out there has enough information on the subject, I'll be happy to file an enhancement request. Xenophon |
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,487
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Quote:
Also, I re-read favorites a fair bit, because my main sources of fiction don't put out enough new content (that I can afford) to keep me in fresh reading material. Finally, we could (somehow) store the information with the lrf files here on MobileRead too. That would benefit everyone who doesn't use Windows, by letting us avoid the first re-format as well. (OK, I know, it wouldn't help anyone who changes font sizes or sticks a different set of fonts on their reader. But still...) Xenophon ' Last edited by Xenophon; 05-12-2008 at 09:56 PM. Reason: added multi-reader observation. |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm, well saving the layout formats is certainly possible. But it would be way down my TODO list
![]() |
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2008
Device: PRS-505
|
Quote:
Thanks! |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Yes, but not anytime soon, sorry.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restoring the old layout | Ross Smith | Calibre | 9 | 06-24-2010 02:01 PM |
ePub with two column layout | bhuvana786 | ePub | 3 | 02-19-2010 07:35 PM |
Appalling layout | StanByk | 27 | 05-09-2009 02:46 PM | |
Hanlin Forum layout | mvoosten | HanLin eBook | 7 | 12-14-2007 03:42 AM |