AnkiWeb
- Rating
- 6 (π 5 Β· π 1)
- Updated
- 2022-10-07
- Anki versions
- 2.1.55~
- Description language
- en
AnkiWeb addon 175027074
Imports legacy .anki files from Anki 1, then recommends restarting Anki to avoid potential interference.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | 2.1.34 | 2020-05-04 |
| 2.1.35 | 2.1.40 | 2020-12-22 |
| 2.1.41 | 2.1.48 | 2021-08-20 |
| 2.1.49 | β | 2021-12-09 |
| 2.1.50 | 2.1.55+ | 2022-10-07 |
Loadingβ¦
Relocates existing duplicate or conflicting cards to the imported .apkg deck, matching exact GUIDs and preserving scheduling.
Batch imports multiple .apkg decks from files or folders, optionally recursively or via zip, with backup, modern import options, progress reporting, and safeguards against collection packages.
Adds a Go to Deck browser context menu option that filters cards to the selected card's deck, optionally highlighting the sidebar with a clipboard workaround.
Imports e-books or .txt files, splits text into sentences using NLTK, and creates Basic notes, naming the deck after the file.
Exports selected notes or decks as searchable video-clip libraries with JSON metadata, plays clips via mpv, and imports clips back into existing Anki notes.
Helps debug missing sound by adding an mpv log file configured through Anki's Debug Console, saved alongside mpv.conf in the Anki2 folder.
A long time ago, there was Anki 1. It used a file format called ".anki". Very different from today's Anki2's ".anki2" format. You can still find on the web some old decks, shared a decade ago, in this format. This add-on allow to import them.
You should probably restart anki once you're done importing data. Importing .anki data essentially starts a copy of anki 2.0 which itself starts a copy of anki 1.0; that's not things you want to keep running and potentially interfering with your normal study. I can't guarantee there won't be any interference (especially in hooks)
The only new code is in aqt/importing.py, where I change the
"onImport" function in order to deal with ".anki" file. If importing
such a file is requested, it will import anki/importing/__init__.py,
which itself will add all the required codebase. It essentially is a
copy of the backend code and anki1 code, as it was before this feature
was removed in all
https://github.com/ankitects/anki/commit/1dce3eaaff649e2c1dbfd53bfe289cf42971045e#diff-c60e37732e601ec3d7f7e7146624b3a1
.
My best guess is that anki 1 was in python 2. Dropping the importer ensured that the code didn't have to be porter to python 3. I'm not certain, because tools exists to do the port.
Anyway, to get code from anki 1, anki 2.0 did used anki1 code to compute all cards. It actually simply opened this file as a collection and then used the function which ports collection from 1 to 2.0. I believe that there was no difference between decks and collection in anki 1; which might explain why it used anki 2.0 can import a deck and consider it as a collection.
Remove all part of the code not actually useful for anki
| Key | Value |
|---|---|
| Copyright | Arthur Milchior arthur@milchior.fr |
| Based on | Anki code by Damien Elmes anki@ichi2.net |
| License | GNU GPL, version 3 or later; http://www.gnu.org/licenses/gpl.html |
| Source in | https://github.com/Arthur-Milchior/anki-import-anki1-files |
| Addon number | 175027074 |