Console app to construct an xml file that is compatible to import a new deck into AnkiApp
Add this file: (.vscode/launch.json)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/bin/Debug/net6.0/AnkiAppXmlGenerator.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "integratedTerminal"
}
]
}
-
Add your vocabulary into a spreadsheet with three columns (front, back, notes). Export the file in a
.csvformat.
-
Open the .
csvfile and copy the contents into thenew-vocab.csvfile in this repo under/filesdirectory. -
Run the program by executing the command:
dotnet runin a terminal at the root of this repo. -
When prompted, enter the name of your new deck you want to create. Hit
enter. The output of the xml will be written to the terminal.
-
You should see the new
.xmlfile written to the/filesdirectory. You can now use this file to import intoAnkiApp.
[!NOTE] At the time of this writting, importing a deck on the Mac app or the Web interface doesn't seem to sync to the IOS app property. The deck won't show any cards. There seems to be a bug. For the time being, I've been using the IOS app to import the deck, since I primarily use this app on my phone. I do that by doing the following:
- Download the new
.xmlfile onto your phone - Use the
AnkiAppandimport deck. (Choose the AnkiApp.xmlformat) - Locate the new file on your phone
- The new deck will be created at the root of your decks. If you want, you can move that deck into subfolders.

