Automate deck creation for Anki to learn german
Project description
DAnki: Automate deck creation for Anki to learn german
DAnki
automate the work of creating decks for Anki to learn german. From the export of your Kindle's notes
or a csv file, DAnki can generate cards with the translation of the word for 8 different languages including
the german pronunciation sound.
This library and its author(s) are not affiliated/associated with the main Anki project in any way.
It was created for my german students to develop their vocabular. Using Kindle you can just highlight the german words or expressions you want to practice, export these notes to your email and use the csv file with this program. It also create tags for Anki with the page number.
Note: Your Kindle's language must be in portuguese or english .
How to use
Here is an exemple using a csv file from kindle.
language = 'en'
csv_filepath = r'csv_exemple_files/sherlock_highlights_from_kindle_english.csv'
deck_name = 'sherlock_en'
from_kindle = True
myDanki = DAnki(language, csv_filepath, deck_name, from_kindle)
myDanki.create_translated_deck()
Here is an exemple using a csv file with only 2 columns: German Word and Tag.
language = 'ch'
csv_filepath = r'csv_exemple_files/not_from_kindle.csv'
deck_name = 'not_from_kindle'
from_kindle = False
myDanki = DAnki(language, csv_filepath, deck_name, from_kindle)
myDanki.create_translated_deck()
You can find the csv exemple files HERE.
Available languages
DAnki uses leo.org to find a translation from german, so the available languages are:
('pt' - portuguese) ('en' - english) ('fr' - french) ('es' - spanich) ('it' - italian) ('ch' - chinese) ('ru' - russian) ('pl' - polish)
Must
You must add 'de_DE_frami.dic' and 'de_DE_frami.aff' files in
C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\enchant\data\mingw64\share\enchant\hunspell
Dictionary link: https://extensions.openoffice.org/en/project/german-de-de-frami-dictionaries
For more information: https://pyenchant.github.io/pyenchant/tutorial.html
Credits
My thanks to:
HanTa - I don't use this library, but allowed me to understand lemmatization.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file DAnki-1.0.1.tar.gz
.
File metadata
- Download URL: DAnki-1.0.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86a502fbfc4e92e99b23c1d253423a3063dce2c1f42fce5e8b0ccc434574149d |
|
MD5 | 08fcfb6ed22aa47dd6bd847d7bff6b8c |
|
BLAKE2b-256 | 925e828ba991a720939babcaf6f618370c6dfa982659d3b3918179d6b9000e07 |
File details
Details for the file DAnki-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: DAnki-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1654a6382aecd779d621d6dacebb56a0cfde44a302ac97669884849c0505aa1d |
|
MD5 | 610a4cb3ce28e5f1b63d177f9ee38b58 |
|
BLAKE2b-256 | 2745de3e0dfdda18bfbf0a4e8bc0b22ff547277d81e27b7946a2a042d4708a90 |