| 1 |
This importer is for a single dictionary format only, as used by the epo-eng |
| 2 |
dictionary from |
| 3 |
<http://www.denisowski.org/Esperanto/ESPDIC/espdic_readme.htm>. |
| 4 |
It is (c) 2015 Paul Denisowski, under the terms of the Creative Commons Attribution |
| 5 |
3.0 Unported License. |
| 6 |
|
| 7 |
Usage |
| 8 |
----- |
| 9 |
|
| 10 |
The usage of this script is extremely simple: |
| 11 |
|
| 12 |
$ python3 epo-eng-import.py <UPSTREAM_DICT> <TEI_SKELETON> <OUT_DIR> |
| 13 |
|
| 14 |
- `UPSTREAM_DICT`: path to the text dictionary, as distributed by the upstream |
| 15 |
project |
| 16 |
- `TEI_SKELETON`: header information; should be taken from the last release |
| 17 |
and extended with the changes with the newer version. |
| 18 |
- `OUT_DIR`: output directory, must not exist. |
| 19 |
|
| 20 |
Python3 is the name of the Python interpreter. It might be that your systems |
| 21 |
calls a Python version > 3.x just `python`, then you need to alter the command. |
| 22 |
|
| 23 |
Sources |
| 24 |
------- |
| 25 |
|
| 26 |
The markup of the original Esperanto-English dictionary is hard to parse. The |
| 27 |
current parser is far from perfect, but it does a fairly good job. I've |
| 28 |
contacted upstream regarding a patch (Jul 2017), but haven't got a response. |
| 29 |
Therefore, the changes are recorded in [epo-eng.patch](epo-eng.patch) and can be |
| 30 |
applied to the epo-eng dictionary released in 2015. |
| 31 |
|
| 32 |
The file README.dict is copied as README to the output directory. |