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 04-11-2010, 10:57 AM   #1
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Wink Convert Irex Notes of new firmware 2.0 BETA

I have created a little application which can convert the .note version to XPS or PDF documents so they can be read on a desktop computer.

The .NET framework 3.5 SP1 is required to run, just extract the RAR file and run. To associate the application with all .note files, you must run it as administrator once.

Please let me hear if you find any problems or suggestions.

Release 4:
- Added test option to merge scribbles on PDF files to PDF files, please let me know if you find any problems!
- Added device type option in options menu, depending on this option the note files will be correctly sized to fill the page thanks to Mr. X for the note file.

Release 3:
- Added the option to export to PDF instead of XPS. Change in options menu.

Release 2:
- New version where the stroke information is correctly read from the blob field.

Release 1:
- Initial release
Attached Files
File Type: rar iRex Note 4.rar (615.6 KB, 1027 views)

Last edited by GodzillaNL; 04-18-2010 at 08:36 AM. Reason: Version 4 attached
GodzillaNL is offline   Reply With Quote
Old 04-12-2010, 02:19 AM   #2
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
Cool.
The sources for liberscribble are mostly unchanged from v1.0 to v2.0 so it's safe to use them as a starting point to parse the scribble data BLOB.
Matthijs is offline   Reply With Quote
Advert
Old 04-12-2010, 02:59 AM   #3
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Thanks for the information. The only error I think that is causing some missed lines is that the pen size is not retrieved from the blob data, resulting in missed lines (still almost not noticable). The binary data of the blob must contain this somewhere. This is the only thing I haven't figured out yet.
All data is now of the same pen size set default in the application.
GodzillaNL is offline   Reply With Quote
Old 04-12-2010, 04:38 AM   #4
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: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi GodzillaNL,

I attached a file that I use for xournal to read the annotations, maybe it is helpfull for you.

Regards,
Marcel.
Attached Files
File Type: zip annotations.zip (4.6 KB, 700 views)
Mackx is offline   Reply With Quote
Old 04-12-2010, 09:56 AM   #5
CoolDragon
Addict
CoolDragon doesn't litterCoolDragon doesn't litter
 
Posts: 244
Karma: 124
Join Date: Feb 2010
Device: none
Is the note format same as the one used for PDF scribbles?
CoolDragon is offline   Reply With Quote
Advert
Old 04-12-2010, 10:34 AM   #6
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
I don't know, I haven't tested this, maybe it is the same. Renaming the metadata.db to *.note will maybe work.

I have created this application because I like the new fast notepad application in the new firmware. I was really missing some export function to the desktop. If the notepad application could support some sort of paper templates it would be superb. Like line paper, 1 cm block paper, etc.
GodzillaNL is offline   Reply With Quote
Old 04-12-2010, 12:18 PM   #7
CoolDragon
Addict
CoolDragon doesn't litterCoolDragon doesn't litter
 
Posts: 244
Karma: 124
Join Date: Feb 2010
Device: none
Well, the metadata.db file is a database file (MySQL Lite?). I am not sure if the access interface to this database file is open or not, but it certainly contains the scribbling data of each PDF file. And if I am correct, the PDF scribble and the note share the same base code, so it is possible to get the scribble data out from the metadata.db file, and merge them into the PDF file, actually that's how the DR800 and DR1000 are currently doing.
CoolDragon is offline   Reply With Quote
Old 04-12-2010, 01:12 PM   #8
Mr. X
Connoisseur
Mr. X is on a distinguished road
 
Posts: 68
Karma: 64
Join Date: Mar 2010
Location: Philadelphia
Device: iRex DR800SG
metadata.db is a sqlite3 database. All the code for it is open, see libermetadb. The Scribbles are stored as "blobs" (generic binary data) in the "annotations" table:

Code:
CREATE TABLE annotations (
  annotation_id    INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  annotation_type  TEXT NOT NULL,
  file_id          INTEGER NOT NULL,
  layer            TEXT NOT NULL,
  file_position    INTEGER NOT NULL,
  title            TEXT,
  start_anchor     TEXT,
  end_anchor       TEXT,
  data             BLOB
);
Presumably the blob is what you need to put into a .note file after finding the right annotation record.
Mr. X is offline   Reply With Quote
Old 04-12-2010, 01:35 PM   #9
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Mr. X View Post
metadata.db is a sqlite3 database. ...
I know, I read this information. The only problem that still needs to solved is some intepretation errors while reading through the BLOB data. When I have time for this I will have a look, take a look at the problem and see if there are any problems or make suggestions.
GodzillaNL is offline   Reply With Quote
Old 04-12-2010, 01:47 PM   #10
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: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Mr. X View Post
Presumably the blob is what you need to put into a .note file after finding the right annotation record.
A .note file is also an sqlite database, that contains, among others, the annotations-table that contains the blob with annotation data. Both metadata.db- and .note-files contain the same tables that are relevant for annotations so the annotation specific code can be used either on a metadata.db file or a .note file I guess.
Mackx is offline   Reply With Quote
Old 04-12-2010, 01:59 PM   #11
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: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by GodzillaNL View Post
The only problem that still needs to solved is some intepretation errors while reading through the BLOB data. When I have time for this I will have a look, take a look at the problem and see if there are any problems or make suggestions.
I had to do simular things when I added the annotation-merge-functionality to xournal. So if it is a specific problem, you can send me a PM, maybe I can help.
Mackx is offline   Reply With Quote
Old 04-12-2010, 02:28 PM   #12
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Mackx View Post
I had to do simular things when I added the annotation-merge-functionality to xournal. So if it is a specific problem, you can send me a PM, maybe I can help.
I looks like the merge functionality is working perfectly. It is already in the version it attached in this thread. The only problem is in reading the BLOB data for generating the XPS file. Some errors may occur because I had to change all C code to C# code.

When this is fixed, I think of adding some more functions like moving pages in the .note file.

Can you explain how I should interpretate the stroke information in the BLOB field?
GodzillaNL is offline   Reply With Quote
Old 04-12-2010, 03:42 PM   #13
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: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by GodzillaNL View Post
Can you explain how I should interpretate the stroke information in the BLOB field?
Did you have time to look at the file I send a few post back. I copied some structures from the erscribble-library that can be laid down onto the blob-data and wrote some functions to parse the blob data.

From my notes the interpretation of a very simple blob structure, hope this helps with reading the code and the structure of the blob:
0100 version
00000000 orientation
0000000000000000 page_pixel
0000 page_r
0000 page_g
0000 page_b
00000000 ul_x
00000000 ul_y
D7040000 lr_x -> 04d7
DA060000 lr_y -> 06da
02000000 num_strokes -> 2
STOKE:
03000000 color
A6838942 zoom <-- float
00000000 layer
00000000 shape
03000000 width -> 3
02000000 points -> 2
POINTS:
2e000000 x
3a000000 y
00000000 pressure
2e000000 x
3a000000 y
2C5D1600 pressure <-- not sure what to do with this
STROKE:
03000000 color
A6838942 zoom <-- float
00000000 layer
00000000 shape
03000000 width
05000000 points
POINTS:
30000000 x
44000000 y
00000000 pressure
2f000000 x
45000000 y
58C94000 pressure
30000000 x
45000000 y
58C94000 pressure
31000000 x
45000000 y
58C94000 pressure
2f000000 x
45000000 y
2C5D1600 pressure
The code also contains the following comment:
// Best results gives the following formula where:
// points from file are scaled using the zoom factor of the stroke_device
// then they are scaled from 'input' DPI (160) to 'output' DPI (72)
// for some reason a factor of (1-1/16) is needed to scale all to
// the correct resolution (maybe related to margins?)
So I also had to 'play' a little bit to get it correct.

Hope this helps.
Mackx is offline   Reply With Quote
Old 04-13-2010, 01:27 AM   #14
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Thanks, that really helps. I can already see that i made a mistake in parsing the stroke information. I hope I can solve this, this week.
GodzillaNL is offline   Reply With Quote
Old 04-17-2010, 05:00 AM   #15
GodzillaNL
Member
GodzillaNL doesn't litterGodzillaNL doesn't litter
 
Posts: 18
Karma: 100
Join Date: Apr 2010
Location: The Netherlands
Device: iRex DR1000S
Attached in first post is a new version, now all information is read perfectly from the BLOB field resulting is correct XPS documents.
GodzillaNL 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
IREX DR800SG 2.0 Beta feedback to IREX sordie iRex 25 04-12-2010 04:19 PM
Reference iRex: Notes (Music Sheet and Lines). v1. 28 Feb 2008 nrapallo IMP Books 0 02-28-2008 09:15 AM
Something New: iRex MyScript Notes Tscherno iRex 33 05-28-2007 12:56 AM
iRex needs you to test their iLiad beta software Alexander Turcic iRex 46 10-16-2006 05:02 PM
iRex MyScript Notes segatang iRex 2 08-22-2006 09:40 PM


All times are GMT -4. The time now is 01:55 AM.


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