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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2018, 06:30 AM   #1
Gergely
Member
Gergely began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2018
Device: Kobo Aura H2O
Annotation xml format

I copied the annotation -- .epub.annot -- file from my Kobo Aura H2O device.

It is in xml format, an annotation example is here:

<annotation>
<dc:identifier>urn:uuid:35330bcf-af11-43f4-8eb3-9e346a3472ef</dc:identifier>
<dc:date>2018-04-15T14:04:47Z</dc:date>
<target>
<fragment start="OEBPS/9781118087220c07.xhtml#point(/1/4/2/134/1:2)" end="OEBPS/9781118087220c07.xhtml#point(/1/4/2/134/1:100)" progress="0">
<text> advanced sales technique is for salespeople to overcome the objections posed by their prospects. </text>
</fragment>
</target>
<content>
<dc:date>2018-04-15T14:04:47Z</dc:date>
</content>
</annotation>

Where can I find a description for this xml format? Especially I am interested in understanding

<fragment
start="OEBPS/9781118087220c07.xhtml#point(/1/4/2/134/1:2)"
end="OEBPS/9781118087220c07.xhtml#point(/1/4/2/134/1:100)"
progress="0">
Gergely is offline   Reply With Quote
Old 06-20-2018, 06:52 AM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,278
Karma: 14242649
Join Date: Dec 2010
Device: Kindle PW2
Looks like EPUB Canonical Fragment Identifiers 1.1.
Doitsu is offline   Reply With Quote
Old 06-20-2018, 09:34 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: 15,282
Karma: 24761108
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE, Clara HD
I don't think it is the ePub CFI. It is what Adobe uses for their locations in ADE and the RMSDK. It might be what the ePub CFI is based on.

@Gergely: And it is the same format I described the other day. Kobo's epub reader is based on the Adobe RMSDK and uses these in the bookmark table for epubs and PDFs. I haven't found an official definition, but I also haven't looked very hard.
davidfor is offline   Reply With Quote
Old 06-21-2018, 09:30 AM   #4
FrustratedReader
Connoisseur
FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.
 
FrustratedReader's Avatar
 
Posts: 94
Karma: 2100000
Join Date: Jun 2017
Device: Kobo H20, Simple Touch, Readme Daily 2282, Sony PRS350, Kindle DXG
I thought annotation is in the database?
I have noticed that recently in Calibre, the annotation is now raw HTML instead of plain text. I don't know if a Calibre update or the 4.8 FW update has caused it. I now have to strip that, as it's of no use in my procedure to use annotations & edit my source while updating what I've done in the annotation text file.
I like how Calibre reads the annotation on a per book basis and how the Kobo has the % in chapter and source text highlighted. I find the annotation export poor on my Kindle DXG, apart from being awkward to create.
FrustratedReader is offline   Reply With Quote
Old 06-21-2018, 10:11 AM   #5
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: 15,282
Karma: 24761108
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE, Clara HD
Quote:
Originally Posted by FrustratedReader View Post
I thought annotation is in the database?
They are in two places. This has been discussed to many times here including in the last few days.
Quote:
I have noticed that recently in Calibre, the annotation is now raw HTML instead of plain text. I don't know if a Calibre update or the 4.8 FW update has caused it. I now have to strip that, as it's of no use in my procedure to use annotations & edit my source while updating what I've done in the annotation text file.
And have you reported this problem somewhere so that someone can look at it and fix it? And of course, with enough details so they know what you are actually doing.
davidfor is offline   Reply With Quote
Old 06-22-2018, 03:26 AM   #6
Gergely
Member
Gergely began at the beginning.
 
Posts: 18
Karma: 10
Join Date: May 2018
Device: Kobo Aura H2O
I have found something:

http://www.mobileread.mobi/forums/sh...=205062&page=6

Quote:
/1 indicates the root element (<html...)
even numbers navigate through the elements. So 2 is the first child of the root (<head...), 4 is the second child of the root (<body...), /1/4/10/ is the 5th child of the body (usually the 5th paragraph or header).
: idicates the offset within the element.

However, I am not quite sure what odd numbers mean. They usually occur if the highlight starts at the beginning of the paragraph. So the position before the highlight is "between the paragraphs". But in case of /1/4/9:2 --> what's the second character of "between paragraph 4 and 5? Do you happen to know that, by chance?
Is this reasonable about even and odd numbers? I will write some python code to check this.
Gergely is offline   Reply With Quote
Old 06-22-2018, 06:49 AM   #7
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: 15,282
Karma: 24761108
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE, Clara HD
Quote:
Originally Posted by Gergely View Post
I have found something:

http://www.mobileread.mobi/forums/sh...=205062&page=6



Is this reasonable about even and odd numbers? I will write some python code to check this.
Well, yes. As that is what I said the other day, and said in the following posts in that thread. It will be interesting to see what you produce.
davidfor is offline   Reply With Quote
Old 07-06-2018, 03:26 AM   #8
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: 15,282
Karma: 24761108
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE, Clara HD
Quote:
Originally Posted by FrustratedReader View Post
I thought annotation is in the database?
I have noticed that recently in Calibre, the annotation is now raw HTML instead of plain text. I don't know if a Calibre update or the 4.8 FW update has caused it. I now have to strip that, as it's of no use in my procedure to use annotations & edit my source while updating what I've done in the annotation text file.
This has probably been fixed in calibre 3.27.0. Luckily your rather vague description of the problem reminded me of a problem in the Annotations plugin cause by a recent change in a library calibre uses. The change also affected the Fetch Annotations function. If it doesn't fix the problem, please report it in the calibre forum or open a bug report.
davidfor is offline   Reply With Quote
Reply

Tags
annotations, kobo, kobo aura h2o, xml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Marvin's Annotation Format (importing iBooks annotations) gulielmus Marvin 10 02-09-2017 02:14 PM
After merging all the .xml files, how do you divide it back into .xml files? automa Sigil 10 08-13-2013 07:43 AM
calibredb list --output-format=xml no longer supported Mekk Library Management 6 06-11-2010 08:13 AM
Nationally Adopted XML eBook Format ahi Workshop 22 06-10-2009 11:20 AM
IDPF - New digital book standard released: OEBPS (XML format) & OCF (container) CommanderROR News 13 11-04-2006 08:49 AM


All times are GMT -4. The time now is 08:14 AM.


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