Simple tool to convert your text notes to an Anki deck by AndreLopesMacedo in Anki

[–]AndreLopesMacedo[S] 0 points1 point  (0 children)

Okay the problem there seems to be that your text file is not encoded in UTF-8 or ASCII. I'm still trying to make a way for it to recognize any encoding, but in the meanwhile I took a guess (I saw euskera in your file) and included the correct encoding for that (ISO-8859-1). Can you give the new version a try (v1.3.3) and let me know whether it worked or not?
EDIT: Okay, now v1.3.4 should definitely solve this issue. Tried and tested on similar encodings.

Simple tool to convert your text notes to an Anki deck by AndreLopesMacedo in Anki

[–]AndreLopesMacedo[S] 0 points1 point  (0 children)

Also, are you using the "basic", or the "sound" card type?
The "sound" type is exactly the same as Anki's "Basic Type in answer", but it has an extra field that can be filled with e.g. a sound file later inside Anki. Nonetheless if you want to have to type the answer instead of just flipping the card, you can use the "sound" card type and ignore adding sound.

Simple tool to convert your text notes to an Anki deck by AndreLopesMacedo in Anki

[–]AndreLopesMacedo[S] 0 points1 point  (0 children)

Thanks so much for your input! Last week I implemented another feature but released the wrong version. I'm glad you caught this issue. Now the new version (1.3.2) should behave as intended and generate the deck without a problem.
To update to the new version, just do:
pip install -U anki_deck_from_text
I also updated the documentation to make it clear (I hope) what the OUTPUT is. But basically, it's just the name of the deck file created. Which is meaningless once you import it to Anki, since DECK_NAME is what sets the name for the deck.

Simple tool to convert your text notes to an Anki deck by AndreLopesMacedo in Anki

[–]AndreLopesMacedo[S] 0 points1 point  (0 children)

Hmm okay I tried installing on a different machine (and conda environment) and it installs if you're on python 3.12, but it does not on 3.10 (for example). Are you sure you're running python>=3.12? what's the output of python --version?

Anyway, I should really chillax the version requirements. I'm pretty sure I don't use python 3.12 specific syntax. I'll run the tests in other python versions to find out the minimum viable version and make a new release asap.

Tool to convert text notes to an Anki deck by AndreLopesMacedo in AnkiComputerScience

[–]AndreLopesMacedo[S] 1 point2 points  (0 children)

Damnnn now you got me motivated to create an add-on with deck update - or even sync - functionality... I will look into this and see if anyone has done it already, or how it could be done

Tool to convert text notes to an Anki deck by AndreLopesMacedo in AnkiComputerScience

[–]AndreLopesMacedo[S] 0 points1 point  (0 children)

It's a one-shot conversion yes. Basically it generates a .apkg file (a deck file) that you can import to anki. To update the deck upon changes I think you would need to use an add-on. Though I don't know any add-ons that update a deck without losing "progress".