![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
|
PRS-T1 Annotations Exporter
I wrote a small tool for exporting annotations from the T1 to HTML.
It supports: - Highlights (text selection) - Text annotations (text selection + typed note) - Drawing annotations (text selection + painted note) It DOES NOT support: - Drawing annotations made by painting directly on a page (without text selection) For ePub books, the original selected text can be expanded (e.g. to avoid the 200-charachters-limit). ![]() ![]() ![]() Download (requires .NET Framework 4.0) | Source code (VS2010) Last edited by Yoths; 06-13-2012 at 04:46 AM. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,084
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Very nice. Now there's no need to use Reader for PC.
|
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 11069
Join Date: Feb 2012
Device: Sony PRS-T1, Kobo Glo HD
|
Very nice, indeed.
However, is there a special reason for only targeting the full .Net Framework with the included .config file? AFAICT your application runs just as fine on computers that have only the .NET Framework 4 Client Profile installed. BTW, if you ever decided to update your Annotations Exporter, would it be possible to add page numbers (from the column "page" of the table "annotations" in books.db)? And thank you again for another reason to finally ditch Reader for PC. |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2012
Device: PRS-T1
|
i like your move.
though it only exports the truncated the prs-t1 stores in its sql database. but i guess it would be too much work to compare and complete them via the books on the device... |
![]() |
![]() |
![]() |
#5 |
Ebook-Fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
|
it would be every cool to have this in a linux-version... (mono??)
|
![]() |
![]() |
![]() |
#6 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Mar 2012
Location: Italy
Device: M92, T68ML
|
char limit
congrats! very nice.
No possible to clear the char limit? I am using firebug on ffox to manually edit the truncated highlights, but i find it quite ridicolous for a non DRMed ebook! ![]() Thanks anyway and nice job! ![]() |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
|
A new version is available (links in the first post are updated).
What's new: - Page number is exported - The 200-charachters-limit can be avoided by expanding the original selected text (for ePub books only) The avoiding the 200-charachters-limit may have some bugs since SONYs way to point a text position is very ugly (thanks to snarkophilus for giving me hints to decrypt it). So feel free to post here if you find a problem. The full .Net Framework is required by some third-party assemblies I use (e.g. the ListView control) |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2012
Device: PRS-T1
|
this is great! thanx!
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2012
Device: PRS-T1
|
but i think the annotation format is the one ade is using - so it aint that "ugly". its the standard, epub3 intended to agree on - until it was set asside to include annotations directly with social networking.
|
![]() |
![]() |
![]() |
#10 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Cheers, Simon. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
|
snarkophilus
That's not a tease! Your post helped me a lot! To the decryption details: I figured out the following rules: - Nodes which type is not "Element" or "Text" are ignored - Outside of the <html> node, numbers after slash represent the count of first level children - Inside of the <html> node and outside of an <p> node, numbers after slash represent the count of first level children and their "inner xml" blocks (or simply the double count of first level children) - Inside of the <html> node and inside of an <p> node, numbers after slash represent the count of first level children - The number after colon is byte offset in utf8-encoded text node, but if the text contains Windows formated line breaks (\r\n), they must be counted as one character insted of two. ![]() Sometimes I've seen the following behavior: - If you select text at the begin of an paragraph, not the corresponding text node with offset 0 is pointed but the parent node. - If you select text at the end of an paragraph, not the corresponding text node with the corresponding offset is pointed but the next node. - If you select text at the end of the last paragraph of the book, not the corresponding text node with the corresponding offset is pointed but the not existing (!!!) node behind the last one. Last edited by Yoths; 03-26-2012 at 08:54 AM. |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
|
A new version is available (links in the first post are updated).
What's new: - marginal bugfixes |
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Mar 2012
Device: PRS-T1
|
Could you please post source code so i can expand it.
Thanks. ![]() |
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Mar 2012
Location: Italy
Device: M92, T68ML
|
Thanks again!
2 questions: could the char limit be removed for pdf files too? i am stuck at the following error message, when exporting my highlights: -error getting extended annotation info: Name cannot begin with the " character, hexadecimal value 0x20. Line 24, position 5546 I don't get this error if i deselect the expand mark text option Thanks again! |
![]() |
![]() |
![]() |
#15 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 550010
Join Date: Jan 2012
Device: T1
|
Thank you, this a very great tool!
I am getting a similar error if I select the expand mark text option: Error getting extended annotation info: An error occurred while parsing EnityName. Line 98, position 92. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Annotations | vsh1ft | Onyx Boox | 1 | 01-04-2012 10:38 PM |
Pdf annotations and Kindle annotations | BranMakMorn | Calibre | 0 | 06-25-2011 02:42 PM |
Classic My annotations are gone | cypresstwist | Barnes & Noble NOOK | 0 | 09-26-2010 03:29 PM |
Neo Annotations | jezster | BeBook | 1 | 05-27-2010 03:20 PM |