Skip to content

Create and import Anki cards

Egor Churaev edited this page May 29, 2018 · 2 revisions

Create and import Anki cards

After saving history, with translate-shell.vim, you can import your history file to Anki.

The steps to do it are described below. I'll describe the way to create cards with audio. I've set the following format for keeping history: g:trans_history_format = '%s;%t;%as;%at. The table looks like in the following screenshot:

table

Creating new type of cards

After opening Anki for the first time, I'll see the main window like on the screen:

anki1

Default card type have only two fields: Front and Back. We have to create card type that supports adding audio files.

  • Click on the Add button and after that on the Type button. See on the screen:

    anki2

  • Click on the Manage button:

    anki3

  • Click on the Add button:

    anki4

  • Select template of type card to add and enter the name of type:

    anki5_1 anki5_2

  • Select created type and click on Choose:

    anki6

  • Click on the Fields... button and add two fields: Front audio and Back audio:

    anki7

  • Press on the Cards... button and Front template and Back template in the same way like on the screen:

    anki8

  • Close Add window.

Import translate-shell.vim history to Anki

  • Click File -> Import... and select your history file.

    anki9

  • Select created type of cards and deck to import the cards:

    anki10

  • Copy all mp3 files from directory with history file to Anki media directory. Default Anki media directory is: ~/Documents/Anki/UserName/collection.media/.

  • After this you can learn your cards with audio 🥇