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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2015, 05:59 AM   #1
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Kobo annotation exporter

In February 2012 Yoths wrote a small tool for exporting annotations from the Sony PRS-T1 to HTML. After a few updates he disappeared from the forum and I have been unable to contact him. He did leave behind the sourcecode.

The program still does contains some bugs and I took it upon myself to try to squash those bugs. Not only that, but I also extended the program to also export annotations (and markings) from the Kobo readers that support annotations. Therefore I renamed the application from 'PRST1AnnotationExporter' to 'Annotation Exporter'.

This is the first release.

It supports:
- Highlights (text selection) for Sony PRS-Tx and Kobo
- Text annotations (text selection + typed note) for Sony PRS-Tx and Kobo
- Drawing annotations (text selection + painted note) Sony PRS-Tx only
- For ePub books, the original selected text can be expanded (e.g. to avoid the 200-characters-limit).
- Design your own export style, default and simple included

It DOES NOT support:
- Drawing annotations made by painting directly on a page (without text selection)

It still contains one bug that sometimes appears while exporting to HTML that has to do with the text expansion. I cannot fix this without a testcase. If other bugs turn up, please let me know.

Attached Files
File Type: zip Annotation Export_1.0_setup.zip (1.90 MB, 105 views)

Last edited by Toxaris; 07-15-2015 at 03:05 PM.
Toxaris is offline   Reply With Quote
Old 03-14-2016, 07:54 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
New version is released. Some bugs squashed and now it is also possible to delete annotations (per book) directly on the reader for maintenance purposes.

This version can be retrieved from my site, see my signature for the link.
Toxaris is offline   Reply With Quote
 
Advertisement
Old 03-15-2016, 01:38 PM   #3
Namenlos
Member
Namenlos began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2014
Device: Kobo Mini
Hello, interesting tool, I was not aware of its existence and have use for it.

However I couldn't get it to run.

First the installation progress was in Dutch (which wasn't a problem, it is always funny seeing how much you can understand as a German understanding Plattdeutsch). I have an English Windows.

Then it has no start menu entry in Win 8.1

After starting it and connecting the ebook reader (Kobo Mini) and selecting it in the internal memory drop down menu I get a crash: https://imgur.com/kQl5dZT

When staring it after connecting the Kobo it crashes right on the start: https://imgur.com/PW7Inmw

I hope that helps you improving the tool. If I can be of any help in debugging the issues please let me know.

edit: I identified the .Net and SQLite Version and put the missing dll ( https://system.data.sqlite.org/downl...0-1.0.97.0.zip ) into the program folder. This gave me at least another error: https://imgur.com/CqSI280

Last edited by Namenlos; 03-15-2016 at 02:04 PM.
Namenlos is offline   Reply With Quote
Old 03-15-2016, 02:48 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
It seems that the installer I created was not correct. I will create a new installer that should fix this issue. It is strange that you got the dutch installer, I was convinced that I took the English version.

*Update* New version uploaded. Please let me know if that fixes your problems. Please remove the dll you installed yourself earlier.

Last edited by Toxaris; 03-15-2016 at 03:03 PM.
Toxaris is offline   Reply With Quote
Old 03-15-2016, 06:06 PM   #5
Namenlos
Member
Namenlos began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2014
Device: Kobo Mini
Now I get this error: https://imgur.com/fprG03Q when exporting. Starting the exe with elevated rights (as Admin) doesn't help. edit: Oh, the export works though! edit2: Empty Page 0 entries provoke the error: https://imgur.com/VXzVEch

Installer works and is English now. I think I might have seen some Dutch in the status, but that went by too fast.

edit3: Most likely my db is broken I think. If you want to investigate here is the export: http://pastebin.com/rK2LYp6g

Last edited by Namenlos; 03-15-2016 at 07:33 PM.
Namenlos is offline   Reply With Quote
Old 03-16-2016, 06:13 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Yes, if you try to extend the annotations and for one it does not work, the program will try to continue with the next instead of stopping completely. That is by design. Therefore I changed most errors to warnings, but this one I missed apparently.

Databases can go corrupt of course. I will see if I can spot anything in your export.
Toxaris is offline   Reply With Quote
Old 03-16-2016, 06:31 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I had not seen this error before, but I think I know what caused it. It will be fixed. Now with regards to the empty lines. It can be the database in this case.
Sometimes another error shows that the extended annotation cannot be retrieved. In those cases the actual selection is exported, but not the text surrounding. The issue there is that the location of the selection is encoded. This encoding has been cracked, but it seems that sometimes the wrong location is stored. In those cases the export still works, but without the additional text unfortunately.
Toxaris is offline   Reply With Quote
Old 03-16-2016, 07:23 PM   #8
Namenlos
Member
Namenlos began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2014
Device: Kobo Mini
As far as I know the blank lines do not show up on my Kobo, I was quite surprised that the two other books showed up, as I could only remember one book were I made annotations. So as far as I know everything works perfect, just the cases were my database is corrupt show up as blank entries while on the Kobo they are ignored. In fact I even prefer it your way.

Anyways thank you for picking up this great tool and improving it.
Namenlos is offline   Reply With Quote
Old 04-06-2016, 11:34 AM   #9
surquizu
Addict
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 332
Karma: 461689
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD
I really like the app. Thank you.

But I get an error when the option " ePUB Books: Expand marked text" is selected. If I accept 9-10 times the error , the program exports good the notes and the highlights.
Attached Thumbnails
Click image for larger version

Name:	Image2.jpg
Views:	21
Size:	24.6 KB
ID:	147628  
surquizu is online now   Reply With Quote
Old 04-06-2016, 12:38 PM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,949
Karma: 87530321
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by surquizu View Post
I really like the app. Thank you.

But I get an error when the option " ePUB Books: Expand marked text" is selected. If I accept 9-10 times the error , the program exports good the notes and the highlights.
I think this is an error that pops up sometimes on specific books, as I can't read the error. I don't know the reason yet. The annotation will be exported anyway, but expanding the text is possible for those annotations. If it happens, it usually happens if the annotations has multiple tags.
If you want me to dive into it and try to solve it, I need the database from the reader and the book itself. If you are willing to sent me this, please sent me a pm.
Toxaris 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
PRS-T1 PRS-T1 Annotations Exporter Yoths Sony Reader 51 12-04-2015 07:34 AM
Display Kobo Annotation on PC 4StarGen Kobo Developer's Corner 2 07-09-2015 05:22 AM
Glo Highlight/Annotation compatibility Kobo/Calibre/Adobe Acrobat Pro kobokobe Kobo Reader 8 05-19-2013 08:02 PM
kobo annotation and non-Kobo files carandol Kobo Reader 2 11-26-2011 03:15 PM


All times are GMT -4. The time now is 12:15 PM.


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