Nicolas Froment

Results 144 comments of Nicolas Froment

Or be brave and https://python-chess.readthedocs.io/en/latest/svg.html

python-chess might miss some features. * The footer * Displaying "o" as in https://fr.wiktionary.org/wiki/contr%C3%B4ler --> in fact it's possible with the `arrows`parameter of `chess.svg.board` Except this, it supports fen notation,...

"opposition" is the only word triggering the template not supported error because the template is not on a single line. I fixed it on wiktionary and the warning is gone......

If we would decide to include this single line, we can test all words with chess diagram with python -m wikidict fr --gen-dict="opposition,contrôler,contre-gambit,gambit en second,mat de l’escalier,mat des Arabes,mat des...

I don't have code but before starting, make sure the diagram wiki code is really in a part of the word we parse. I don't remember the detail but I...

Good to know the etymology modules are in the dump. We could extract them in a separate json file in the "parse" step and keep a second list to query...

Oh and I couldn't run the tests on my computer because of pyglossary error in 4.4.1. They will probably fail. So this PR is for discussion only for now.

A bit like https://github.com/BoboTiG/ebook-reader-dict/issues/1104, it would be possible to do that if we could store several (word + definition) for a given word. Right now, `Words` is a `dict(str, Word)`...

SVG encoded with base64 is really huge ( 2 to 3x the size of gif/png) and doesn't compress well. I would like to find a way to only use the...

And the PNG one ? does it work in KOReader ?