Anki

From miki
Revision as of 15:42, 20 March 2023 by Mip (talk | contribs) (→‎Install)
Jump to navigation Jump to search

Links

Guides
Reposition tells Anki in which order to present new cards (Anki will not necessarily present them exactly in that order however!)

Install

  • Download latest version from Anki web site (version from package manager are often outdated).
Troubleshoot - no launcher
  • Copy the anki.desktop to appropriate directory
sudo cp /usr/local/share/anki/anki.desktop /usr/local/share/applications/
Troubleshoot - blank start window
  • This is a known problem on recent distros (eg. Debian BookWorm).
  • To fix, edit the desktop file at /usr/local/share/applications/anki.desktop to include
Exec=env QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" anki %f

Tips

Export Deck from AnkiDroid to AnkiApp

  • Export deck as .apkg format, but remove the scheduling information (include media is ok).
  • Copy deck to phone.
  • Import deck.

Import (private) deck from Quizlet

  • Install this add-on: Improved Quizlet to Anki 2.1 Importer
  • Log into Quizlet in Chrome.
  • Open DevTools (Ctrl-Shift-C), go to network tab and reload (Ctrl-R)
  • Click 'All' to show all request, and click on first request
  • Find the line like:
 set-cookie: qlts=1_a5aBh2rZ6sA0SXXvHEMiTs461.I8ghlXK3qj9xijz0wRpglNoI1AL9wt7mPuBjwJnB3HSjdgsH1CEA; expires=Wed, 09-Feb-2022 18:58:02 GMT; Max-Age=7776000; path=/; secure; httponly
  • Go to Ankiweb, add-on dialog, select add-on, and click Config, then paste in the value of qlts:
{
    "cookies": "",
    "qlts": "1_a5aBh2rZ6sA0SXXvHEMiTs461.I8ghlXK3qj9xijz0wRpglNoI1AL9wt7mPuBjwJnB3HSjdgsH1CEA",
    "rich_text_formatting": false
}
  • In Tools, select Import from Quizlet. Then paste-in the URLs of set you want to import. If multi-URL, make a list in an editor separated by newline and paste the list. Eg.
 https://quizlet.com/be/524417350/anglais-score-7-flash-cards/
 https://quizlet.com/be/524420347/anglais-score-9-flash-cards/

Add reverse to an existing card/note

  • If the note was based on card type Basic (with optional reverse), one solution is to type anything in the field Add reverse (like y). This will automatically creates a second card.
Anki can mass edit this using the search & replace feature (just select field Add reverse, then use regexp to fill that field with eg y).
Note however than clearing that field later doesn't seem to remove the Reverse card. For that use second method below.
  • Otherwise, simpler is to change the note type to Basic (and reversed card).
This latter option is even better because it allows for easy mass edit, and also mass removal of the reverse cards by selecting back the original note type.