Skip to content

Source code for creating the Regenpfeifer dictionary for German real-time stenography.

License

Notifications You must be signed in to change notification settings

mkrnr/regenpfeifer

Repository files navigation

regenpfeifer

This repo contains code for creating the Regenpfeifer dictionary for German real-time stenography.

The latest Regenpfeifer dictionary is included in the plover_regenpfeifer plugin that can be installed via the Plover Plugins Manager.

Usage

The main entry point for creating the dictionary is dictionary_generator.py. It takes as an input a file containing words and their grammatical form such as wortformliste.csv and needs a few more parameters for the output path, a path for a log file and two additional configuration parameters. To run the program, the dependencies listed in requirements.txt need to be installed.

Development

Setup

The best way to set up the python environment is using a python virtual environment such as venv. Once the environment is activated, you can install the required liraries with:

pip install -r requirements.txt

Tests

There are a number of unittests that also give a good idea on how the individual classes word. They can be run with:

pytest

Formatting

Code formatting is done with black:

black .

We also use flake8:

flake8 --exclude venv

And mypy:

mypy --ignore-missing-imports --exclude venv .

Missing imports are ignored because of marisa_trie.

The checks can also be executed at once with soucre run_checks.sh.

About

Source code for creating the Regenpfeifer dictionary for German real-time stenography.

Resources

License

Stars

Watchers

Forks

Packages

No packages published