Zotero2Readwise icon indicating copy to clipboard operation
Zotero2Readwise copied to clipboard

Integrate with Zotfile

Open folofjc opened this issue 1 year ago • 3 comments

I know that it specifically states that this is meant for using the zotero reader.

However, I read on my tablet and then use the zotfile integration to pull back into zotero. In this case, zotfile extracts the annotations from the file and adds them as notes as well as making an "*_annotated.pdf" version of the file.

Would be great if this could pull those highlights as well.

folofjc avatar Oct 08 '23 14:10 folofjc

Zotfile pulls the highlights out and puts them in a note that is titled "Extracted Annotations." So instead of just pulling annotations from here, would need to pull itemType="note". Then would just need to parse the data.note, link to parentItem with the annotation, and maybe take out some of the HTML formatting. Each highlight begins with a <p> and ends with </p>\n.

folofjc avatar Oct 09 '23 15:10 folofjc

@folofjc The functionretrieve_all_notes() here retrieves notes with itemType="note". Does that help?

e-alizadeh avatar Oct 09 '23 17:10 e-alizadeh

I saw that too, but I am have not looked into why those notes are not being pushed to Readwise. I have not had time to look into how the notes are formatted before being sent.

folofjc avatar Oct 10 '23 04:10 folofjc