Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2021, 05:49 PM   #1
HoboReader
Junior Member
HoboReader began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2021
Device: Kindle, Calibre
Calibre highlight markdown export chapter title inclusion

I understand Calibre can export highlights at markdown file with link backs to location in the epub file.

My question is about an option to keep the notes in the same organization as the Calibre book reader ie under chapter titles.

Basically I need the notes to be broken apart by chapter headings.

thanks
HoboReader is offline   Reply With Quote
Old 04-02-2021, 04:09 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,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...7bbbb4b2360bd7
kovidgoyal is offline   Reply With Quote
Advert
Old 10-12-2023, 10:38 AM   #3
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by kovidgoyal View Post
Folks, I see this is an old post, but maybe someone could point me in the right direction.
Specifically, when I use the Annotation Browser to export my notes and highlites into markdown (for subsequent processing in Obsidian) the chapter headings are not included. It appears that kovidgoyal provided a link to some scrypt but I am not sure what to do with it. I am fairly technical but not at this level. I would appreciate if a high level explanation could be provided as to what to do with this script. Thanks!
edojan is offline   Reply With Quote
Old 10-12-2023, 11:20 AM   #4
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,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you dont need to do anything, other than update calibre, all releases of calibre after that commit have the feature automatically.
kovidgoyal is offline   Reply With Quote
Old 10-12-2023, 12:00 PM   #5
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Quote:
Originally Posted by kovidgoyal View Post
you dont need to do anything, other than update calibre, all releases of calibre after that commit have the feature automatically.
Kovid, thanks for your response. I have tried this with versions 6.27 and the latest 6.28.1 - what am I doing wrong?
The process is as follows:
1. Open annotation browser
2. Select the annotations I want to export (notes and highlights)
3. Click on "Export all selected" button
4. Select "Markdown" option a from the dialog box
5. Save as file

This generates the .md file that contains:
a. Name of the book (title)
b. Highlights and notes
c. Link with a date/time stamp referencing the location of the specific annotation in the viewer.

All my highlights and notes are showing fine but it is imposible to tell which chapter they belong to. That is the chapter names are excluded from the export and I can't find a way to include them into the export. What am I missing?

Last edited by edojan; 10-12-2023 at 12:02 PM.
edojan is offline   Reply With Quote
Advert
Old 10-12-2023, 12:10 PM   #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,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me, if the highlights are showing under chapter headings in the viewer the same chapter headings will be present on export.
kovidgoyal is offline   Reply With Quote
Old 10-12-2023, 12:11 PM   #7
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Also, I have tried this with several different epubs - no luck. All books tested have the chapters / sub-chapters showing in TOC
edojan is offline   Reply With Quote
Old 10-12-2023, 12:24 PM   #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,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need ot open them in the viewer and they need ot be annotations created after that fix was made.
kovidgoyal is offline   Reply With Quote
Old 10-12-2023, 01:15 PM   #9
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
The annotations are in the viewer and were created recently (after the fix). Here are a couple of screenshots showing the highlight under the header and the export results showing that the headers are not being included.
https://i.imgur.com/wGsiXg0.jpg

Last edited by edojan; 10-12-2023 at 01:19 PM.
edojan is offline   Reply With Quote
Old 10-12-2023, 02:01 PM   #10
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
The first pic showing the viewer somehow did not work. Here is the repost https://i.imgur.com/tXJW1Jb.jpg
edojan is offline   Reply With Quote
Old 10-12-2023, 07:14 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,933
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Instead of posting images to a third party site, go into advanced mode and use the paperclip tool or the Manage Attachments button to include the images with your message.
DNSB is offline   Reply With Quote
Old 10-12-2023, 07:17 PM   #12
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Thumbs up

Quote:
Originally Posted by DNSB View Post
Instead of posting images to a third party site, go into advanced mode and use the paperclip tool or the Manage Attachments button to include the images with your message.
Thanks for the tip David! I will repost it now
edojan is offline   Reply With Quote
Old 10-12-2023, 07:24 PM   #13
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Kovid, please see the attached screenshots.

I made the annotations in the viewer and they were created recently (after the fix). The screenshot shows my highlight under the header. The second screen shows that the export results do not includ the headers. I will experiment with a couple of more files and will report back.
Thanks!
Attached Thumbnails
Click image for larger version

Name:	Annotations exported Cassian conferences.jpg
Views:	428
Size:	148.1 KB
ID:	204253   Click image for larger version

Name:	Cassian conferences1.jpg
Views:	429
Size:	226.1 KB
ID:	204254  
edojan is offline   Reply With Quote
Old 10-12-2023, 09:57 PM   #14
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,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the raw markdown rather than the rendered version, i.e. paste it in a text editor like notepad to eliminate another source of issues

Here is what I get for annotations created on the calibre docx demo file.

Code:
# monkey

sup
14/02/23 4:17 PM

--------------------

port
14/02/23 4:17 PM

--------------------

# Demonstration of DOCX support in calibre

images
22/05/23 11:49 AM

搜索

1. one

2. two

--------------------

# Text Formatting

## Inline formatting

is paragraph uses document wi
13/09/20 3:57 PM

--------------------

## Fun with fonts

mbedd
02/02/23 3:40 PM

some http://moo.com/(glue) note2

--------------------

automatically
29/04/21 6:36 AM

--------------------

ring co
29/04/21 6:48 AM

--------------------

## Paragraph level formatting

table w
13/09/20 4:01 PM

--------------------

# Structural Elements

## Dropcaps

used to emphasize the leading pa
09/10/22 2:37 PM

mooose

--------------------

paragraph
23/09/21 8:50 AM

--------------------

## Footnotes & Endnotes

converted
12/09/20 9:27 AM

--------------------
As you can see there are chapter headings even multi-level ones, as expected. If you have a book where this isnt working, open a bug report and attach the epub file.
kovidgoyal is offline   Reply With Quote
Old 10-12-2023, 10:12 PM   #15
edojan
Connoisseur
edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.edojan can tame squirrels without the assistance of a chair or a whip.
 
Posts: 52
Karma: 11226
Join Date: Mar 2022
Device: Kobo Libra 2, Aura H2O
Unfortunately the headers are not in the .md file. The content of the .md file is below.

Is there a link to the "how-to" of the bug report process I could use. I will test this with several other files and will attach two or three different ones just to be sure.

And last, but not least: Kovid, thanks for your help! I am big fun of your product and have been using it for at least 12 years now.

Code:
## Conferences of John Cassian

For the mind, which has no fixed point to which it may return, and on which it may chiefly fasten, is sure to rove about from hour to hour and minute to minute in all sorts of wandering thoughts
[12/15/2022 1:48 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/30/2/4/2/2/6/6%5Bii.ii.v-p1%5D/1%3A2864%29)

--------------------

FOR hence it arises that in the case of some who have des*pised the greatest pos*ses*sions of this world, and not only large sums of gold and sil*ver, but also large prop*er*ties, we have seen them af*ter*wards dis*turbed and ex*cited over a knife, or pen*cil, or pin, or pen. Whereas if they kept their gaze stead*ily fixed out of a pure heart they would cer*tainly never al*low such a thing to hap*pen for trifles, while in or*der that they might not suf*fer it in the case of great and pre*cious riches they chose rather to re*nounce them al*to*gether.
[10/12/2023 12:36 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/32/2/4/2/2/6/6%5Bii.ii.vi-p1%5D/1%3A0%29)

This is an important image: keeping one's gaze in teh pure heart (that is the heart of the new man) looking in contempt and rejecting to all things that excite the old man's heart

--------------------

"not to be en*vi*ous," "not to be puffed up, not to be angry, not to do any wrong, not to seek one's own, not to re*joice in iniquity, not to think evil" etc., what is all this ex*cept ever to of*fer to God a per*fect and clean heart, and to keep it free from all dis*turb*ances?
[12/15/2022 9:34 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/32/2/4/2/2/6/6%5Bii.ii.vi-p1%5D/1%3A1656%29)

--------------------

Whatever then can dis*turb that pur*ity and peace of mind--even though it may seem use*ful and valu*able--should be shunned as really hurt*ful,
[12/15/2022 9:27 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/34/2/4/2/2/6/6%5Bii.ii.vii-p1%5D/1%3A2692%29)

--------------------

this stead*fast pur*pose of heart we should con*stantly as*pire after; viz., that the soul may ever cleave to God and to heav*enly things.
[12/17/2022 1:49 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/36/2/4/2/2/6/6%5Bii.ii.viii-p1%5D/1%3A42%29)

--------------------

Whatever is alien to this, how*ever great it may be, should be given the second place, or even treated as of no con*sequence, or per*haps as hurt*ful. 
[12/17/2022 1:51 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/36/2/4/2/2/6/6%5Bii.ii.viii-p1%5D/1%3A181%29)

--------------------

"bod*ily ex*er*cise is prof*it*able for a little: but god*li*ness" (by which he cer*tainly means love) "is prof*it*able for all things, hav*ing the prom*ise of the life that now is and of that which is to come."
[12/17/2022 3:02 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/40/2/4/2/2/6/6%5Bii.ii.x-p1%5D/1%3A1205%29)

--------------------

we ought to be aware on what we should have the pur*pose of our mind fixed, and to what goal we should ever re*call the gaze of our soul: and when the mind can se*cure this it may re*joice; and grieve and sigh when it is with*drawn from this
[12/17/2022 3:20 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/46/2/4/2/2/6/6%5Bii.ii.xiii-p1%5D/1%3A175%29)

--------------------

as of*ten as it dis*cov*ers it*self to have fallen away from gaz*ing on Him, it should ad*mit that it has lapsed from the highest good
[12/17/2022 3:21 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/46/2/4/2/2/6/6%5Bii.ii.xiii-p1%5D/1%3A422%29)

--------------------

"The king*dom of God cometh not with ob*ser*va*tion, nor shall men say Lo here, or lo there: for ver*ily I say unto you that the king*dom of God is within you."
[12/17/2022 3:22 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/46/2/4/2/2/6/6%5Bii.ii.xiii-p1%5D/1%3A1047%29)

--------------------

But noth*ing else can be "within you," but know*ledge or ig*nor*ance of truth, and de*light either in vice or in vir*tue, through which we pre*pare a king*dom for the devil or for Christ in our heart:
[12/17/2022 8:32 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/46/2/4/2/2/6/6%5Bii.ii.xiii-p1%5D/1%3A1208%29)

--------------------

And so if the king*dom of God is within us, and the ac*tual king*dom of God is right*eous*ness and peace and joy, then the man who abides in these is most cer*tainly in the king*dom of God, and on the con*trary those who live in un*right*eous*ness, and dis*cord, and the sor*row that wor*keth death, have their place in the king*dom of the devil, and in hell and death. 
[12/17/2022 8:33 PM](calibre://view-book/_hex_-43616c694b6f62/224/EPUB?open_at=epubcfi%28/46/2/4/2/2/6/6%5Bii.ii.xiii-p1%5D/1%3A1589%29)

--------------------
edojan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
export ePub with highlight as PDF fbrzvnrnd KOReader 4 03-03-2021 02:50 AM
[App] Export Kindle Highlights to Markdown rami112358 Kindle Developer's Corner 1 05-26-2020 05:46 AM
Inclusion of Title page P365b Conversion 3 11-01-2013 11:36 AM
Markdown to ePub has <title>Unknown</title> Agama Conversion 4 06-09-2012 04:16 AM


All times are GMT -4. The time now is 05:08 PM.


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