Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with Zotfile #45

Open
folofjc opened this issue Oct 8, 2023 · 3 comments
Open

Integrate with Zotfile #45

folofjc opened this issue Oct 8, 2023 · 3 comments

Comments

@folofjc
Copy link

folofjc commented Oct 8, 2023

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
Copy link
Author

folofjc commented Oct 9, 2023

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.

@e-alizadeh
Copy link
Owner

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

@folofjc
Copy link
Author

folofjc commented Oct 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants