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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2009, 02:01 PM   #1
hanche
Enthusiast
hanche began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Feb 2009
Device: iRex reader 1000S
Question Format of scribbles in the database

Poking around in metadata.db (sqlite database) I see that the scribbles are represented by a blob per page. Is the format of this blob documented somewhere? Or did thomega reverse engineer it for his portable scribble merger?

If the latter, I suppose I could do my own reverse engineering from his source code, but I don't read ML very well, so it would be a chore. (I am asking because I'd like to do my own scribble manipulations.)

(Edit: Sorry about the thumbs down icon. I have no idea how it got there. I fixed it on the thread, but it remains in the list view.)

Last edited by hanche; 12-11-2009 at 02:47 PM. Reason: (Why did it pick the tumbs down icon?)
hanche is offline   Reply With Quote
Old 12-12-2009, 08:07 AM   #2
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi hanche,

The code published by iRex contains a lot of information about the format/content of the metadata.db files. For Xournal I also had to look into the format of the metadata.db files to be able to import the annotations made with the native DR application into Xournal. I also used the code from thomega to better understand the structure. Also take a look at the code in: Sources\1.7\iRex\libs\erscribble\test.

I attached the source file that contains the code to do the import. Xournal is using a GnomeCanvas with 72DPI, so you will see that the coordinates are being converted from 160 DPI. The strange thing is that I had to use some kind of multiplication factor (1-1/16).

The code uses the libermetadb from iRex, this library is a wrapper around the sqlite3 library and has the 'knowledge' of the format of the blob. You can port the library to the PC or copy only the code you need.

Please let me know if you have more questions.
Attached Files
File Type: gz annotations.c.tar.gz (4.6 KB, 99 views)
Mackx is offline   Reply With Quote
Old 12-12-2009, 11:10 PM   #3
hanche
Enthusiast
hanche began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Feb 2009
Device: iRex reader 1000S
Thanks, I'll have a look. And I'll ask if there is something I don't understand.
hanche is offline   Reply With Quote
Reply

Tags
data format, scribbles

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scribbles - Exporting to your PC (How to) zenji Onyx Boox 2 07-19-2010 08:03 PM
Better way of merging Scribbles? Jürgen Hubert iRex 15 08-14-2009 12:04 PM
Scribbles and Jpgs pthwaite iRex 4 03-17-2009 01:45 AM
new database format alexxxm Calibre 10 11-19-2008 04:45 AM
Merging Scribbles with Pdf jæd iRex 15 12-20-2006 05:40 AM


All times are GMT -4. The time now is 04:59 PM.


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