Register Guidelines E-Books Today's Posts Search

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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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.


Last edited by Toxaris; 05-31-2016 at 05:07 AM.
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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
Advert
Old 03-15-2016, 01:38 PM   #3
Namenlos
Enthusiast
Namenlos began at the beginning.
 
Posts: 37
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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
Enthusiast
Namenlos began at the beginning.
 
Posts: 37
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
Advert
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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
Enthusiast
Namenlos began at the beginning.
 
Posts: 37
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
Evangelist
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: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
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:	439
Size:	24.6 KB
ID:	147628  
surquizu is offline   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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
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
Old 05-27-2016, 05:37 AM   #11
marp68
Addict
marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.
 
Posts: 263
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
Thank, worked great.

Can this file be used together with the books copied to a new/factory reset device? That is, if I put the file somewhere on the new device, will I see the markups/annotations when opening the book?

If not, do you have any suggestions on how to do this?

I only need to backup the markups/annotations in case of a later device failure.
marp68 is offline   Reply With Quote
Old 05-27-2016, 06:46 AM   #12
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by marp68 View Post
Thank, worked great.

Can this file be used together with the books copied to a new/factory reset device? That is, if I put the file somewhere on the new device, will I see the markups/annotations when opening the book?

If not, do you have any suggestions on how to do this?

I only need to backup the markups/annotations in case of a later device failure.
That file cannot be used for that. All the markups/annotations are stored in an database on the reader. If you want the markups/annotations on another device, you will need to copy those tables. It might be possible to copy the database, but I would be careful with that since a all the device settings/information/etc are also stored in that database.
Toxaris is offline   Reply With Quote
Old 05-27-2016, 02:46 PM   #13
marp68
Addict
marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.marp68 substituted for the Southern Oracle when it was on vacation.
 
Posts: 263
Karma: 132294
Join Date: Apr 2016
Location: Sweden
Device: Kobo Clara HD
okej, thanks.
marp68 is offline   Reply With Quote
Old 05-28-2016, 01:20 PM   #14
nelsonm
Junior Member
nelsonm began at the beginning.
 
Posts: 6
Karma: 13
Join Date: Oct 2015
Device: Kobo Aura H20
I get the following error message when I plug in my device (a Kobo Aura H20):

Error getting books information: startIndex cannot be larger than length of string.
Parameter name: startIndex

What might cause the problem? Thanks.
nelsonm is offline   Reply With Quote
Old 05-28-2016, 02:22 PM   #15
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Frankly, I wouldn't know. In the program there is no variable startIndex. Can you tell me what you tried that gave this error? Can you see the books at all when you select the Kobo reader?

I would need the .kobo directory of your reader to see what is going on. That way I would be able to simulate the activity.

Since this is the second report about this (the other about a Kobo HD) I suspect Kobo changed something.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 PRS-T1 Annotations Exporter Yoths Sony Reader 52 12-15-2016 05:14 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 11:18 AM.


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