/praktika-vortaro-dicts

Generate sqlite database from Reta Vortaro's XML files

Primary LanguagePython

Dictionary files for Praktika Vortaro

Generating the database

Install Python environment:

pyenv update
pyenv install 3.11.0
pyenv virtualenv 3.11.0 pv-dicts311
pyenv activate

Install the dependencies, download the dictionary files and process them:

git submodule init && git submodule update
pip install pipenv
pipenv install -d
# if using pyenv
pyenv rehash
praktika_vortaro process_revo

This will generate the sqlite database output/vortaro.db.

To download the most recent data files from Revo:

# you may need 'sudo apt install lynx'
./download_revo.sh
praktika_vortaro process_revo

Tests

pytest