python3 src/write_bilingual_dict.py <source language code> <target language code>
A practical example:
python3 src/write_bilingual_dict.py pandunia eng
With this command the program will read the files dict/P/pandunia.tsv and dict/E/eng.tsv. Then it combines together those rows that have the same concept id in the source language file and the target language file. Finally it writes a bilingual dictionary in the file generated/pandunia-eng.md, which is a Markdown file. The file will look a below.
Code: Select all
## A
**argente** *n* silver
**aur** *n* gold
## B
**barka** *v* bless
**bina** *v* build
**brad** *n* brother
It doesn't look fancy but it does the job. Let's improve the program later to generate better looking dictionaries with more information about things like style, synonyms, morphology and etymology.Markdown_formatter wrote: A
argente n silver
aur n gold
B
barka v bless
bina v build
brad n brother