Skip to content

Console app to construct an xml file that is compatible to import a new deck into AnkiApp

Notifications You must be signed in to change notification settings

duyn9uyen/AnkiAppXmlGenerator

Repository files navigation

AnkiAppXmlGenerator

Console app to construct an xml file that is compatible to import a new deck into AnkiApp

VS Code Debugger configuration

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"
        }
    ]
}

How to Use This Program to Create a New Deck and Import Into AnkiApp?

  1. Add your vocabulary into a spreadsheet with three columns (front, back, notes). Export the file in a .csv format. alt text

  2. Open the .csv file and copy the contents into the new-vocab.csv file in this repo under /files directory.

  3. alt text

  4. Run the program by executing the command: dotnet run in a terminal at the root of this repo.

  5. 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. alt text

  6. You should see the new .xml file written to the /files directory. You can now use this file to import into AnkiApp. alt text


[!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:

  1. Download the new .xml file onto your phone
  2. Use the AnkiApp and import deck. (Choose the AnkiApp .xml format)
  3. Locate the new file on your phone
  4. The new deck will be created at the root of your decks. If you want, you can move that deck into subfolders.

alt text

About

Console app to construct an xml file that is compatible to import a new deck into AnkiApp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages