10-14-2008, 08:44 PM | #16 |
Connoisseur
Posts: 56
Karma: 22
Join Date: Oct 2008
Location: Würzburg, Germany
Device: iRex DR1000S
|
BTW: here's what I know about the format so far (the short integers are store low byte before high byte):
Code:
scribble = { header : header; strokes : stroke list } header = { b01_36 : 36bytes; (* 0x010000000000000000000000000000000000000000000000000000000004000000050000 *) num_strokes : 2bytes; (* more likely 16bit short than byte *) b38_39 : 2bytes (* Always 0x0000? *) } stroke = { stroke_header : stroke_header; points : point list } stroke_header = { b01 : 1byte; (* Always 0x00? *) b02_03 : 2bytes; (* Always 3? 16bit short or byte?*) b04_05 : 2bytes; (* Always 0x0000? *) b06_09 : 4bytes; (* Always 0xB4276842 or 0x5A5A3143? *) b10_17 : 8bytes; (* Always 0x0000000000000000? *) width : 2bytes; (* 16bit short or byte? (the latter would suffice) *) b20_21 : 2bytes; (* Always 0x0000? *) num_points : 2bytes; (* more likely 16bit short than byte *) b24 : 1byte (* Always 0x00? *) } point = { b01 : 1byte; (* Always 0x00? *) y : 2bytes; b04_05 : 2bytes; (* Always 0x00? *) x : 2bytes; b08_09 : 2bytes; (* Always 0x00? *) b10_12 : 4bytes (* Always 0x000000 for the first point, 0x88D32F or 0xE8021B for the middle points and 0xF0B115 or 0xB8A215 for the final point? *) } |
10-15-2008, 12:00 AM | #17 | |
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
Quote:
So I think they will get this sorted out... eventually. Maybe you can beat them to it! (BTW ImageMagick is one great tool) |
|
Advert | |
|
10-15-2008, 10:11 AM | #18 | |
Member
Posts: 13
Karma: 10
Join Date: Apr 2008
Device: iLiad
|
Quote:
My DR1000s is due to arrive tomorrow and judging from information like this, let alone the battery-life revelations and scribble-merge issues (does anyone know how to do this on a Mac OS X - the homebrew someone put together for the iliad worked beautifully) it's looking like I may have spent several hundred bucks pointlessly. All I want is a big-screen iliad! That would do me fine. |
|
10-15-2008, 02:06 PM | #19 |
Fanatic
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
Well it might just be that one pdf, however it definitely doesn't want to open on my DR1000s (35.5Mb) It just sits there thinking about it and then crashes back to the menu.
All my other pdfs work, but they are smaller. I'd like to know if your 40Mb pdf does open. If so I'll try re-creating this problem one again. regards, Howard |
10-15-2008, 02:22 PM | #20 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
Advert | |
|
10-15-2008, 02:32 PM | #21 | ||
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
Quote:
|
||
10-15-2008, 02:34 PM | #22 | |
Member
Posts: 13
Karma: 10
Join Date: Apr 2008
Device: iLiad
|
Quote:
|
|
10-15-2008, 02:42 PM | #23 |
Fanatic
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
allovertheglobe
New thread started Now, back to scribbles. I still cannot get a merge to work. (It did work once & very well too, on a writepad document I had created but never since on anything) I'm smacking the teddy bear as I type I've reinstalled the directory structure on 2 SD cards & tried 3 different PCs. It is frustrating as I really like the scribble functionality & if Thomega can do anything to help Mac users he has my vote I have also raised it as an issue with iRex, though I suspect if yourself and others can get it to work, I'm missing something obvious. |
10-15-2008, 03:13 PM | #24 |
Junior Member
Posts: 8
Karma: 26
Join Date: Oct 2008
Device: none
|
Attached is a little python program I cobbled together to do merging on the Mac. Don't have a device to test with at the moment, but it seems to work with the examples posted earlier in this thread. Just run and hit file->merge pdf, then select a PDF. The metadata.db needs to be in the same dir as the PDF. It should generate a <input filename>_merged.pdf
It's very rough around the edges, and will quite likely only work on 10.5 (it may also just fail to work for unexplained reasons ). The source is available in the .app if anyone's interested. If a merge doesn't work right, I can try look into it if I have the pdf and db. Cheers, Ross |
10-15-2008, 03:17 PM | #25 |
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
Hmm, I'm using it in Windows XP on a bootcamp partition on my Mac. I have done it both by running the app straight from the card in a cardreader as well as from the DR1000. Both in the WritePads folder and in my own folders.
It only works with PDFs as far as I can tell, but even when I tried with a PNG image, it saw there was scribble and made the Merge icon active (even though it didn't do anything) You have certainly gone out of the way trying various things for something that should be straight forward. I'm stumped. The only thing I can think of is that perhaps the matadata.db is corrupted and not read correctly. Did you try deleting it and start over with a fresh scribble (maybe restarting the reader to be extra careful)? |
10-15-2008, 03:32 PM | #26 |
Fanatic
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
ross,
Many thanks. It works after a fashion. However as you can see, Page 2 of the enclosed doc, for some reason it has rotated the scribble by 90deg. I've enclosed the metadata, the merged output and the original pdf. (Change the txt to db for the metadata) (It's 90deg i other scribbled pdfs too) but thanks allovertheglobe, I have hit the reset button, I've tried in the reader, on the PC on the Mac. I haven't tried scribbling on any images as I haven't got any on the device but pdfs and scribbling is failing at the merge on mine. I did try deleting all the metadata.db files & doing a card reset from the system menu, still no merge. If Ross, can get my 90deg tilt fixed , I'll be happy as I could then at least merge from home, even if not at the office. |
10-19-2008, 01:15 PM | #27 | |
Junior Member
Posts: 8
Karma: 26
Join Date: Oct 2008
Device: none
|
Quote:
I've attached an update version of the app that should work a bit better (at least it gets orientation right). If someone has the time, I'd appreciate more examples of scribbled PDFs so I can check if I'm doing the scaling and rotating right. A PDF of a grid with scribbled crosses on the grid-intersections would be really helpful. Any other non-working merged scribbles would be useful. Cheers, Ross |
|
10-19-2008, 02:42 PM | #28 |
Grumpy Old Man
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
|
People can use the ones from my thread:
https://www.mobileread.com/forums/showthread.php?t=30729 I'll post one myself later if I get around to it. (And try your script) |
10-19-2008, 02:52 PM | #29 |
Fanatic
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
Ross, you are rapidly becoming my hero The pdf is a "non-standard" size as it is an instruction leaflet and yes the writing has slipped down a bit in your DR Merge.
As you request, here is a quadranted page with crosses, numbers and some text on it. It is the Quad template from grumpyoldman. Now, as it is a writepad, I can actually merge this in the PC software but pdfs elsewhere, are not seen in the companion software I have. I enclose the original metadata & Quad template. The result of the PC merge & the result of your DR Merge. thank you, Howard |
10-19-2008, 06:25 PM | #30 |
Junior Member
Posts: 8
Karma: 26
Join Date: Oct 2008
Device: none
|
The grid seems to line up now, and the drenalin manual text looks right-ish (I need what seems to be an arbitrary scaling factor - oh well). Also added a progress indicator during merging. Now to figure out how to make the merged PDFs not so ridiculously huge.
Cheers, Ross |
Tags |
dr1000s, metadata, scribbles, sqlite |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New note/scribble templates | DrBibber | iRex | 10 | 04-17-2009 08:56 AM |
Scribble Companion Software | pthwaite | iRex | 3 | 12-03-2008 07:32 PM |
Scribble Database? | Gogolo | iRex | 1 | 10-20-2008 04:05 PM |
iLiad Scribble | 87325is | iRex Developer's Corner | 1 | 11-30-2006 02:44 AM |
Scribble on non-PDF? | nekokami | iRex | 3 | 11-13-2006 12:10 PM |