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
394 stars 21 forks source link

Convert "<>" to HTML entities #1562

Open BoboTiG opened 1 year ago

BoboTiG commented 1 year ago

Wikicode:

"pode-se/é possível/é imaginável <verbo>"

Output:

"pode-se/é possível/é imaginável <verbo>"

And it's stripped automatically by --check-word.

Expected:

"pode-se/é possível/é imaginável &lt;verbo&gt;"

Upvote & Fund

Fund with Polar

BoboTiG commented 1 year ago

Wikicode:

{{given name|en|male|from=Hebrew<t:God is my reward>}}

Output:

  File "lang/en/template_handlers.py", line 428, in render_given_name
    suffix += f"{langs[from_split[0]]} {from_split[1]}"
KeyError: 'Hebrew<t'

Expected:

A male given name from Hebrew (“God is my reward”)
BoboTiG commented 1 year ago

Whatever fix we will provide, if any, should take care of #1652.

BoboTiG commented 1 year ago

Same issue here: