Skip to main content

Module anki

Module anki 

Source
Expand description

Anki .apkg import: reads an Anki shared deck and lays out a vultan-compatible notes directory (one .md per card direction + a seeded .vultan.ron).

Scope (v1):

  • Note types: Basic (1 template) and Basic (and reversed card) (2 templates). Cloze, image-occlusion, and custom multi-template models are skipped.
  • Tags: the Anki deck name (last ::-separated segment, slugified) becomes the single vultan tag. Per-note Anki tags are dropped.
  • Review state: factor / interval / due are mapped 1:1 where possible (Anki ease 2500 → vultan factor 2500, etc.). Slight algorithmic drift is inevitable since the SRS schedules differ.
  • Filenames: anki-<note_id>-<ord>.md (ord 0 = front→back, ord 1 = reverse).

Structs§

ImportSummary
ImportedCard

Functions§

export_apkg
Export the supplied vultan cards into an .apkg at output_path. All exported cards land in a single Anki deck named deck_label. When with_state is false (the default for shared decks), cards are emitted as new — recipients see them fresh. When true, factor/interval/due are preserved so the recipient picks up where the sender left off.
import_apkg
render_card_markdown
slugify_deck_name
strip_html