|12-11-2009, 01:01 PM||#1|
Join Date: Feb 2009
Device: iRex reader 1000S
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 01:47 PM. Reason: (Why did it pick the tumbs down icon?)
|12-12-2009, 07:07 AM||#2|
Join Date: Dec 2008
Device: iRex DR1000S
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.
|data format, scribbles|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Scribbles - Exporting to your PC (How to)||zenji||Onyx Boox||2||07-19-2010 07:03 PM|
|Better way of merging Scribbles?||Jürgen Hubert||iRex||15||08-14-2009 11:04 AM|
|Scribbles and Jpgs||pthwaite||iRex||4||03-17-2009 12:45 AM|
|new database format||alexxxm||Calibre||10||11-19-2008 03:45 AM|
|Merging Scribbles with Pdf||jæd||iRex||15||12-20-2006 04:40 AM|