More consistent cards generation

AnkiWeb addon 1713990897

Ensures non-cloze cards are generated if and only if at least one non-empty field is shown.
AI-generated summary; may contain mistakes.

card-templatesobsolete

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
2 (πŸ‘ 2 Β· πŸ‘Ž 0)
Updated
2019-08-12
Anki versions
<=2.1.19
Description language
en

Maintenance

abandoned

  • Last update or commit was 2444 days before the snapshot (2020-01-22).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.192019-08-12
History across monthly snapshots

Loading…

Similar addons

Export Anki cards as picture

Exports Anki cards as images using customizable Jinja2 HTML templates and CSS, with options for resolution, cloze replacement, excluded fields, per-note templates, and ImageMagick auto-cropping.

exportcard-templates

Rating 1 πŸ‘ 0 Β· πŸ‘Ž 1 ⭐ 0 Anki 24.06.2~ Updated 2024-06-18
ML-Tutor

Uses ChatGPT to rephrase Anki review questions, preserving answers, to reduce memorization of exact wording and generalize recall.

aireview-flowcloze

Rating 2 πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 2 Anki 23.12.1~ Updated 2025-02-19
Cloze Generator

Generates cloze notes in Anki from non-cloze source notes according to configurable mappings, skipping duplicates and empty cloze elements, with optional tags.

card-creationcloze

Rating 9 πŸ‘ 6 Β· πŸ‘Ž 3 Updated 2018-07-22

README

More consistent cards generation

Rationale

If you are a power user, you may want to be able to use complex template. The rule Β«a card is generated if and only if the question side show the content of a fieldΒ» is a really nice rule. But that's far from being what anki actually does. See generation ules for a real explanation

So, this add-on change anki, in order to ensure that cards are generated if only if they should be generated !

Warning

Computer only

It should sadly be noted that this add-on is kind of incompatible with any version of anki without this addon. It means that some cards may be generated here, and be seen as empty on ankidroid/ankiweb/ios.

Cloze deletion

This add-on only deals with non-cloze notes. In the case of cloze note, this add-on use the anki's standard algorithm to decide which cards remain. This may change in the future

Internal

It changes the following methods:

  • Template.render_unescaped, it now returns a pair, whose second element is True if and only if the field was found and showAField. (Currently, the field may be a special field. TODO: remove this)
  • Template.render_tags: similarly, it returns a pair, which is true if only if some field was found and showAField.
  • Template.render: same modification
  • _Collection._renderQA: The dictionnary returned contains an entry "showAField" which has the meaning of the previous change
  • Card.isEmpty: it now returns the correct answer !
  • ModelManager.availOrds: Same thing

Version 2.0

None

Anki > 2.1.19

Anki changed a lot in version 2.1.20. I am currently unable to understand those change, as they are in rust, and I don't know it. Furthermore, rules for card generation change, so it's possible that this add-on becomes useless. Anyway, until I know more about 2.1.20, this add-on won't be available with latest anki. As this add-on as only peen downloaded 63 times, I believe that's not a real trouble.

TODO

  • Do not consider cards with only special fields as successful cards.
  • Also correct cloze deletion generation

Links, licence and credits

Key Value
Copyright 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-correct-card-generation
Addon number 1713990897