I created this Python code to
- tranfer saved entries in Takoboto Japanese dictionary to Anki as flashcards, and
- modify the format of cards imported to Anki from Takoboto into a more preferred format.
Feel free to change the code to fit your needs.
tako_to_anki_own.py
- Takoboto app
- AnkiDroid or AnkiWeb
- Do not need to have AnkiDroid app installed
- Able to immediately download all 'Authored lists'
- Contains all different readings of the word entries
- Only includes 'Authored lists' created by yourself, does not include 'Downloaded lists'
- Does not include additional information, e.g., example sentences
- Go to the word lists view in the Takoboto app (... > 'Lists of words')
- Export entire collection as a .csv file (... > 'Export to file...' > 'SAVE')
- Move the .csv file to be the same file location as
tako_to_anki_own.py
- From within
tako_to_anki_own.py
, editINPUT_CSV
variable to match the name of the .csv file. - Run
tako_to_anki_own.py
tako_to_anki_reformat.py
- Takoboto App
- AnkiDroid
- AnkiWeb
- Able to make/modify cards for 'Downloaded lists' as well as 'Authored
- Contains additional information, e.g., example sentences.
- Need to have AnkiDroid app installed
- Can only export each deck one by one to AnkiDroid, which can be time consuming if you have many decks.
- Only contains one reading of the 'head' Japanese word in the dictionary entry.
- Export own 'Authored lists' or 'Downloaded lists' from within the Takoboto app to AnkiDroid. (... > 'Lists of words' > Open a list > ... > 'Send to AnkiDroid')
- Download the 'Takoboto' deck from within AnkiDroid or Anki Desktop (Select a deck > 'Export deck' > Export format: 'Notes in Plain Text (.txt)'; Include: 'Takoboto') > 'OK')
- Open the .txt file and copy all file contents using Ctrl+A, Ctrl+C.
- Open Microsoft Excel or Google Sheets, paste the contents (Ctrl+V), and save as a .csv file.
- Move the .csv file to be the same file location as
tako_to_anki_reformat.py
- From within
tako_to_anki_reformat.py
, editINPUT_CSV
variable to match the name of the .csv file. - Run
tako_to_anki_reformat.py
- From the AnkiWeb homepage, select 'Import File' and select the desired output file to import into Anki.
- Change 'Field separator' to 'Comma', and make sure the columns in the table preview look correct.
- Enable 'Allow HTML in fields'
- Select the correct deck which the cards should be imported to under 'Deck'
- Under 'Existing notes', select 'Update' to replace already existing cards, 'Preserve' to avoid replacing already existing cards in the deck, or 'Duplicate' to create a second card if a card with the same word already exists.
- To tag all newly imported cards, type in a tag under 'Tag all notes', e.g., 'TAKOBOTO' (and under 'Tag updated notes' if you have 'Update' selected under 'Existing notes')
-
Ensure the correct columns from the table preview match the selections for the card 'Front', 'Back', and 'Tags'.
-
Select 'Import' at the top of the screen.
- Change output CSV file generation to have words separated into different files by their tag names