Skip to content

This script is able to convert zotero annotations formed by 'Zotero PDF Translate' plugin into anki cards.

Notifications You must be signed in to change notification settings

MengqiangH/zotero-annotations-to-anki

Repository files navigation

zotero-annotations-to-anki

This script is able to convert zotero annotations formed by 'Zotero PDF Translate' plugin into anki cards.

Requirements:

  1. Installation of Zotero
  2. Installation of Anki
  3. Installation of the 'Zotero PDF Translate' plugin provided by windingwind in Zotero (can be downloaded here: https://github.com/windingwind/zotero-pdf-translate#readme)
  4. Installation of Python

How to use:

After the prepration of software installation. You can use the plugin 'Zotero PDF Translate' to generate some annotations.

image

Then, you should use the "add notes from annotations" provided by Zotero.

image

And open this notes in the right-window of Zotero.

image

Next, you should copy all of the contents in the note to a '.txt' file named '2.txt' in this path 'C:/Users/hu/Desktop'.

image image

Now, you can run the Python script and a '.txt' file named 'anki.txt' will be creaed in the same path 'C:/Users/hu/Desktop'.

image

Next, open the Anki and import the 'anki.txt' file using the specific Notetype, please use pipe as the field separator.

image

After that, the annotations have been created as crads in the Anki; furthermore, there are two links to the Item in Zotero and the annotation in the Zotero PDF, respectively.

image image

Besides, if you want to add some personal thoughts, please firsly marked the original sentense or words by the 'Zotero PDF Translate' plugin in Zotero. Then you can edit the comment on this annotation. After pressing the space bar twice, youu can add the personal thoughts before "~" in the annotation.

image

In the Anki, you can see your personal thoughts in the back of the card. image image

Last but not least, all of the file name or path used should be reivesed according to your machine.

About

This script is able to convert zotero annotations formed by 'Zotero PDF Translate' plugin into anki cards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages