- Package:
- dict-freedict-spa-deu
- Source:
- freedict
- Submitter:
- Hannes Müller
- Date:
- 2019-12-09 21:33:16 UTC
- Severity:
- normal
Dear Maintainer, I consider the first line in /usr/share/dictd/freedict-spa-deu.index is invalid since it has only 2 entries: " DTHY h" According to https://linux.die.net/man/8/dictd the index shall have always 3 entries: "... The flat text file contains dictionary entries (or any other suitable data), and the index contains tab-delimited tuples consisting of the headword, the byte offset at which this entry begins in the flat text file, and the length of the entry in bytes..." I noticed this problem using pyglossary, which reports a related syntax failure and stops conversion. I also noticed the related package freedict-spa-deu-0.1.dictd.tar.xz (sha512 9e33dd3294c8a24...) on https://freedict.org has the same problem. But I could not resolve the root cause in the sources. Best Regards Hannes
Dear Maintainer, I found related syntax problems in spa-deu/spa-deu.tei and fixed them with attached patch. The dictd file spa-deu.index now looks fine. I also scanned all other dictionaries for the same problem but found no other candidates. I try to provide also a related upstream patch. Best regards Hannes
Hi Hannes Thanks for your enthusiasm to fix this. Hannes Müller schrieb am 09.12.2019, 21:03 +0100: This patch still shows issues: It should be `<orth>modista</orth>`. Since it seems that spa-deu.tei is broken anyway, it is probably better to fix its importer script. We import it from the Ding format and the importer is currently in a rather bad shape. Any chance you would like to look into it :)? We could still patch it downstream, but I feel this is not the best solution. Thanks for this. Sebastian