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 06-18-2018, 01:06 AM   #1
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
How to understand Kobo highlights

Hi all

I just finished reading a friend's manuscript for his novel. He gave it to me as an epub on request, and I read it on my Kobo.

While reading I found many typos and grammatical errors. Whenever I found one I would highlight a word at or near the problem. I'm now realizing that that was a bad idea as the exported highlights are mostly meaningless (I have many "the" and "and" etc type words highlighted). I could go through them all and expand the highlight but it would be very tedious as there are close to 200.

I thought that perhaps I could figure out how to get more context by looking at the raw data in the KoboReader.sqllite file. What I see there is a bunch of items of a form like this:

untitled.html#point(/1/2/1/6833/1/1:431)

My question is: does anyone know how to interpret that? If I extract the untitled.html from the epub, how can I use that to get the surrounding context?

Thanks!
Graham
geekraver is offline   Reply With Quote
Old 06-18-2018, 01:59 AM   #2
cramoisi
Librarian
cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.cramoisi did not drink the Kool Aid.
 
Posts: 346
Karma: 72225
Join Date: Apr 2015
Location: Liège - Belgium
Device: kobo gloHD - KA1
I won't be of much help but when opening your thread mobileread propose me this thread is the "similar threads" section. I skimmed it and it seems it would be of some help.

https://www.mobileread.com/forums/sh...d.php?t=258753


(for my experience, it's not a good idea to readproof on epub (even if I would prefer to do it in a ideal world) because after that it's difficult for the author to find the sentences / words you highlighted without being able to match them on a page number in their word-processor)

Last edited by cramoisi; 06-18-2018 at 02:04 AM.
cramoisi is offline   Reply With Quote
Old 06-18-2018, 03:31 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Firstly, I do lots of highlighting for a similar purpose. I found the best way to do this was to highlight a few words around the problem word. I usually make sure the problem word is the first. And I might add an annotation to remind me of exactly what the problem is.

For location stored in the bookmarks table, it is a walk of the tags in the file the highlight is in. Each slash represents a tag level inside the file. For your example:
Code:
untitled.html#point(/1/2/1/6833/1/1:431)
The file first part is the file name in the epub.

The numbers work by counting tags. The first "1" is the "html". The "2" is the body ("head" then "body" within "html"). The next one probably means there is a div or something enclosing all the text. The 6833 is the count of tags within this. But, it is actually the count of opening and closing tags at this level. It means the highlight is within the 3412th open tag at this level, counting all headings, paragraphs, rules etc. Then there is another open tag of some sort, probably a span or some sort of emphasis tag. I'm not sure what 1 before the colon is, but the last number is where the highlight starts within the tag: the 431st character.

I might have one of the early levels wrong. It's been a while since I did this and I seem to remember something inconsistent in how one of these numbers worked. But the big number is correct and effectively means the 3412th paragraph but includes things that you might not normally consider paragraphs like headings and rules.

Not that's a pain and probably not worth doing anything with. I've done this manually to test how this works, but stuck to the beginning of the file. I kept losing count.

But, that's not what you want to do. What might work for you is Toxaris's Kobo annotation exporter. It has been a while since I last used it, but my memory is that it extracts the surrounding text when getting the annotations and highlights that in the file it produces. I don't know if it still works with recent Kobo firmware. That will depend on what SQLite library it uses.

There are a number of other ways to get the annotations from the Kobo devices. I can't remember if any of the others will get the context. The calibre Annotations plugin definitely doesn't, nor the export that can be enabled on the device.
davidfor is offline   Reply With Quote
Old 06-18-2018, 09:16 PM   #4
RobertJSawyer
Guru
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 730
Karma: 3871570
Join Date: Jun 2006
Location: Toronto
Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite
Another alternative is to capture screenshots of your highlights (I actually do this a lot for research, and dump the screenshots into Evernote, which OCRs them and makes them searchable).

This message explains how to enable screenshots:

https://www.mobileread.com/forums/sh...&postcount=444

Then just give your friend all the screenshots, and he can review them with IrfanView or any other graphics viewer.
RobertJSawyer is offline   Reply With Quote
Old 06-21-2018, 11:06 PM   #5
geekraver
Addict
geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.geekraver ought to be getting tired of karma fortunes by now.
 
Posts: 364
Karma: 1035291
Join Date: Jul 2006
Location: Redmond, WA
Device: iPad Mini,Kindle Paperwhite
Thanks. As a Mac owner I can't use the VB program unfortunately. I've mucked about in Python to and managed to extract the paragraphs I needed.
geekraver is offline   Reply With Quote
Old 06-23-2018, 06:45 PM   #6
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,731
Karma: 6681393
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Also, if you do this again, you may want to convert your books to kepub. The locations stored in the database are a lot more readable (basically file.html#kobo.paragraph.sentence, and way easier to extract (they use IDs).
geek1011 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Annotations/highlights on Kobo MHaensel Kobo Reader 3 04-05-2015 12:44 AM
Kobo and Calibre - saving highlights Docno Devices 2 03-17-2015 10:56 PM
How to export Highlights /w Kobo ereaderundecided Kobo Reader 1 09-07-2012 03:20 AM
Does Kobo Touch sync highlights across devices? diddy Kobo Reader 2 10-03-2011 04:15 PM
I do not understand the Kobo software ficbot Kobo Reader 6 05-15-2010 04:37 PM


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


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