Thread: Aura H2O Annotation xml format
View Single Post
Old 06-22-2018, 03:26 AM   #6
Gergely
Member
Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'Gergely understands when you whisper 'The dog barks at midnight.'
 
Posts: 19
Karma: 42210
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