Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2020, 10:11 AM   #1
trungng2006
Member
trungng2006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2018
Device: kindle paperwhite 2
Highlight URI

I would like to ask how to extract highlights URI.
I want to organize the highlights in another apps and have a small link to remember the position of the highlight, so each time i click the link, it will open up the book in calibre at that highlight position.

For example:
If i extract the highlight and use it in another app, then zotero would give me this URI. Everytime i click it, the PDF file would open up to the highlight position.
(<a href="zotero://open-pdf/library/items/XFXYVKUP?page=24">
trungng2006 is offline   Reply With Quote
Old 11-09-2020, 11:39 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,279
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the browser viewer in the content server and simply copy paste the URL whenever you need a reference. Or if you want to use the standalone viewer, in the viewer controls click Go to and then choose location and there you can copy paste that location and if you need to open the viewer at that location, use

ebook-viewer --open-at "copied_location" file.epub
kovidgoyal is offline   Reply With Quote
Advert
Old 11-10-2020, 08:07 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,279
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh and in the next calibre release you can get the URL to use with the standalone viewer directly from the Go to->Location page in the viewer controls.
kovidgoyal is offline   Reply With Quote
Old 11-13-2020, 02:20 AM   #4
trungng2006
Member
trungng2006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2018
Device: kindle paperwhite 2
Quote:
Originally Posted by kovidgoyal View Post
Oh and in the next calibre release you can get the URL to use with the standalone viewer directly from the Go to->Location page in the viewer controls.
=> i just test this, it is very nice! thank you!

I would also like to ask 1 more question:
I can open book at the location by using this URL:
calibre://view-book/_hex_-43616c69627265/6435/EPUB?open_at=epubcfi(/12/2/4[x9780593083536_EPUB^-4]/2/64/1:69)

I can locate this in the highlight export:
(/12/2/4[x9780593083536_EPUB^-4]/2/64/1:69)

However, i cannot find this "_hex_-43616c69627265" number. May I ask how do I obtain this Hex number?
trungng2006 is offline   Reply With Quote
Old 11-13-2020, 02:46 AM   #5
trungng2006
Member
trungng2006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2018
Device: kindle paperwhite 2
i just found out the hex is "calibre" (applied to all book location URL)

but now i realized i still missing the /12/ in the epubcfi url

epubcfi(/12/2/4[x9780593083536_EPUB^-4]/2/64/1:69)

start_cfi: 2/4[x9780593083536_EPUB^-4]/2/64/1:69
trungng2006 is offline   Reply With Quote
Advert
Old 11-13-2020, 03:07 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,279
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/url...ecific-library and the initil number is 2 * the spine index of the file containing the position.
kovidgoyal is offline   Reply With Quote
Old 11-13-2020, 09:20 AM   #7
trungng2006
Member
trungng2006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2018
Device: kindle paperwhite 2
Thank you for your prompt reply!

About the initil number, if this is calculated from the spine index, then i think it should be 2*spine index +2?
Could you please help reconfirm?
trungng2006 is offline   Reply With Quote
Old 11-13-2020, 09:56 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,279
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, see the http://idpf.org/epub/linking/cfi/epub-cfi-20111011.html for details.
kovidgoyal is offline   Reply With Quote
Old 11-13-2020, 09:57 AM   #9
trungng2006
Member
trungng2006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2018
Device: kindle paperwhite 2
Thank you so much!!!
trungng2006 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
URI issues odedta ePub 10 04-17-2014 12:46 PM


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


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