AnkiMaker is a tool that generates flashcards for Anki.
AnkiMaker can generate flashcards from .toml
files to .txt
files which can be imported into Anki.
You can edit the flashcards by editing the .toml
file. One file is one deck.
The following is an example of a .toml
file generated by ankimaker --default filename.toml
[info]
deck = ""
mode = "default"
notetype = ""
[content]
paragraph = []
These fields are essential.
You can look An .toml
file (written in Chinese) that can be used by AnkiMaker.
You can also use some other toml grammar, such as replacing """
with "
.
default mode is suitable for almost all Anki decks.
If you don't want to recite ancient Chinese poems in Chinese for the exam which requires you to write them without any mistakes, you needn't to read this.
If you want, read the 简体中文 please.
Please make sure you are using the latest version of Anki to import the flashcards generated by AnkiMaker. Flashcards may not be imported correctly if you are using an older version (<=2.1.54).
And you need to configure the notetype you want use in Anki.
What's more, you should create the deck you want to import the flashcards into (If you use -o
, you don't need it).
To use AnkiMaker, run the following command:
cargo r --release -- <PATH>...
For example, if you want to generate flashcards from file1.toml and file2.toml, run:
cargo r --release -- file1.toml file2.toml
It will generate file1.txt
and file2.txt
in the their current directory. You can then import this file into Anki.
You can also use the --default
argument to generate a default.toml
file:
cargo r --release -- --default default.toml
You can use -o
or --output
argument to specify the output file name:
cargo r --release -- file1.toml file2.toml -o output.txt
Contributions are welcome! Please feel free to open an issue or submit a pull request if you find a bug or have a feature request.
- @lalala-233 - Idea & Initial work
You can also check the list of contributors who participated in this project.