Converts files of JWPCE dictionary entries to an Anki importable CSV.
Note this has most recently specifically been tested on python 3.6.7. Using python 2.7 is not supported.
Where JWPCE is a Windows based Japanese text input and dictionary program and Anki is a flash card program.
There are two types of definitions:
- kanji [kana] translations
- kana translations
This program will output:
- kanji, "kana (html) newline translations"
- kana, "translations"
As well as a reversed version where the translation is the "front" and the Japanese is the "back".
Note The JWPCE files must be in utf-8 format, not the default it uses. That's another job for the future.
Install requirements:
pip install -r requirements.txt
pip install -r requirements-dev.txt
Install the package locally:
pip install -e .
This will allow using the entry points from the setup.py file.
Running the command line version:
jwpce_convert
Running the gui version:
jwpce_convert_gui
jwpce_convert [-h] [--output OUTPUT] [--force] input
This uses py.test as the test runner. The requirements are included in requirements-dev.txt.
After installing those in the main directory run:
py.test tests
This will run the tests, run coverage, and run flake8 as a linter. The settings for this can be found in the "setup.cfg" file.
- Update to work with the default JWPCE encoding.
- Update coverage, although the gui code might be problematic.