/anki-card-converter

This tool automates the process of converting basic Anki cards into multiple choice cards, allowing users to test their knowledge by selecting the correct answer from a list of options.

Primary LanguagePythonApache License 2.0Apache-2.0

license Code style: black tests

Anki Card Converter

Notice: Early Development Stage

This converter is intended for use with the Multiple Choice for Anki add-on.

It converts Basic Card quiz questions

basic card front

basic card back

into AllInOne Card format, which allows selecting options in interactive mode

allinone card front

and highlights the correct answers

allinone card back

Usage

  1. Clone this repository to your local machine.
  2. Ensure that you have Python 3.10 and Poetry installed on your machine. The author used Poetry 1.3.1.
  3. Install the project dependencies using the following command:
poetry install --no-dev
  1. Export cards as "Notes in Plain Text (.txt)" by choosing menu item "File -> Export (Ctrl + E)".

export anki cards

Note: only "Basic Cards" are supported currently.

  1. Run the convert script
poetry run convert -i <input file.txt> -o <output file.txt>
  1. Import converted file in Anki.

Note: to replace oritinal cards with converted, first change their type to AllInOne. Go to "Browse" window, select cards, right click on them and select Notes -> Change Note Type (Ctrl + Shift + M). In drop down menu select "AllInOne (kprim, mc, sc)" and click "Save".