BoboTiG / ebook-reader-dict

Finally decent dictionaries based on Wiktionary for your beloved eBook reader.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
350 stars 20 forks source link

[EN] Specifically deal with labels for en and zh #2062

Open lasconic opened 2 weeks ago

lasconic commented 2 weeks ago

after https://github.com/BoboTiG/ebook-reader-dict/pull/2061 is merged, we need to modify scripts/en-labels.py to deal with the en and zh labels. For now they are ignored. See https://github.com/BoboTiG/ebook-reader-dict/pull/2061/files#diff-f24d28a94c8167b3f5247a2ab565b375167f913e2e8b13dc06c7185479e101e4R257

See : https://en.wiktionary.org/wiki/Module:labels/data/lang/en https://en.wiktionary.org/wiki/Module:labels/data/lang/zh https://en.wiktionary.org/wiki/Module:labels/data/lang/zh/functions

lasconic commented 2 weeks ago
python -m wikidict en --check-word word

is failing because of this issue I believe.

lasconic commented 2 weeks ago

The commit above fixes parts of the problems for en but some labels for en are still not extracted. Nothing is done for zh yet.