View Single Post
Old 03-05-2024, 10:30 AM   #5
Randrewy
Junior Member
Randrewy began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2024
Device: pocketbook 740
Quote:
I know of no use for epubcfi() as defined in that spec.
Why no? It is just a standart to do the same thing calibre cfi is doing - to reference location in the book. The only reason I'm asking, is to use just the same epubcfi as my reader provides, without conversions. But having an algo to convert one to another is absolutely OK and suits my goals.


Quote:
What's the add extra /2 at the beginning for?
I believe it stands for "entering root node of a xml chapter file".
So first we go to a file defined by spine_index, then /2 to "enter" that docoment, and the rest of the path is the same both in standart epubcfi and calibre cfi.
Randrewy is offline   Reply With Quote