AnkiWeb
- Rating
- 1 (π 1 Β· π 0)
- Updated
- 2020-03-09
- Anki versions
- unknown
- Description language
- en
AnkiWeb addon 1159566613
Allows using Python to generate card templates and provides a domain-specific language for template generation.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | β | 2020-03-09 |
Loadingβ¦
Turns subtitles or text documents into Anki language-learning flashcards, extracting video subtitles via FFmpeg, supporting Chinese-to-English dictionaries, frequencies, and updating existing notes.
Transcribes audio files attached to Anki cards via Deepgram or Whisper, offering API key configuration, fill-in and template-filter options with caching.
Integrates ChatGPT into Anki for in-card explanations, examples, memory prompts, and questions via customizable hotkeys, prompts, and Python extensions.
Generates AI multiple-choice vocabulary questions with blanked sentences and deck-word distractors for selected notes or whole decks, configurable via config.json and syncable to mobile.
Provides paid API-key access to automated translation, transliteration, and text-to-speech in many languages, automatically adding audio, translations, or transliterations to new notes.
Adds cloze-style word hiding to Basic note types for multiple cards, requires desktop creation, and supports mobile review with a specific seven-field note.
This is a BETA version. If people want to help debugging and improving. It may change a lot and while I use this add-on a lot, I can't promise it to be fit for everyone (yet?)

To use this add-on, you must have installed addon 802285486.
To see a few examples of note type created using this add-on, go read: [examples/README.md] You should probably download this add-on and try those examples to understand how everything works.
Please, refer to documentation to learn how to use this add-on. I'll just give a few examples here.
One of anki big limitation, as far as I'm concerned, is that templates can't have code in them. In my case, in a fixed note type, most of the templates are similar. Which means that I have to do a lot of copy-paste. And if I want to edit a part of the template, I have to edit once in each template.
If you know a little bit of Python and of HTML, you can use this add-on to ensure that your template is generated by some arbitrary Python code. The Python expression is given as an attribute of an HTML tag of the template. This ensure that the python code can remain in the template while never being shown in the card's content. This also means that you can recompile a template already compiled - which is pretty useful for debugging.
In order to easily write templates, this add-on also gives you a library/domain specicif language of basic component, called generators. Those generators allow you to change the template, depending on a lot of conditions.
| Key | Value |
|---|---|
| Copyright | Mostly https://github.com/hssm/anki-addons |
| Maintener | Arthur Milchior arthur@milchior.fr |
| Based on | Anki code by Damien Elmes anki@ichi2.net |
| License | GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html |
| Source in | https://github.com/Arthur-Milchior/anki-template-card-type |
| Addon number | 1159566613 |