View Single Post
Old 12-23-2020, 07:08 PM   #3
quietbyday
Junior Member
quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!quietbyday has a thesaurus and is not afraid to use it!
 
Posts: 7
Karma: 99144
Join Date: Dec 2020
Device: Kindle PaperWhite
I'm thinking of a Markdown export, which would basically be the same as text, but with the URL link added in markdown format, i.e.
Code:
[link text](URL)
With a single example (from Alice in Wonderland), this is the output:
Code:
"Who are you you?" said the Caterpillar.
[2020-12-23 6:35 PM](calibre://view-book/_hex_-43616c696272655f4c6962726172795f4d696e69/1573/EPUB?open_at=epubcfi(/4/2/4/282/1:0))
In a Markdown viewer/editor (e.g. iA Writer, Bear, Typora), this looks quite tidy, with the quote followed by the timestamp, which is a link to open the book at the desired spot. I've attached a small screenshot clipping to illustrate.

I reviewed the JSON ("calibre highlights") and it does indeed seem to have all the necessary info, although I'm not sure about the hex reference for the book I see in the location URL. I would guess that's somehow equivalent to the uuid value?

I guess if all else fails, I can try to teach myself how to parse the JSON into a Markdown. But if this were a quick fix to add as a Markdown export option, I can guarantee it would be popular with the Markdown/book annotator communities. I'm already a patron, but I would gladly send an additional thank-you contribution via Paypal, as it would make my year. I've been looking for this for years and got all excited when I saw the URL functionality in this release.

Thank you for the swift reply and the patience with my ignorance. Much appreciated!
Attached Thumbnails
Click image for larger version

Name:	markdown-typora.png
Views:	218
Size:	19.8 KB
ID:	184231  
quietbyday is offline   Reply With Quote