Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

History
54 lines (35 loc) · 1.03 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.03 KB

Inflection list generator

This is an old version; the new version has been integrated into the DPD exporter:

https://github.com/digitalpalidictionary/dpd-db/

Description

Generate all inflections from scratch and write to CSV, HTML and text.

Usage

Run following commands from the root directory of the repo

Create and activate a Python environment:

python3 -m venv env
source env/bin/activate

source command should be run for every new shell.

Creating an environment is optional but recommended.

Install the package:

pip3 install -e .

-e flag makes installations editable, i.e. package may be edited in place without reinstallation.

Directory with the dictionary sources may be set with DPS_DIR environment variable:

export DPS_DIR='/PATH/TO/DIR/'

DPS_DIR directory expected to contain spreadsheets subdirectory with CSV files.

Run generator with command:

inflection-generator --kind DPS

Or in an old style:

python3 'inflection generator.py'