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

Clean-up "[[w:foo|bar]]" -> "bar" #1670

Open BoboTiG opened 1 year ago

BoboTiG commented 1 year ago

Wikicode:

[[w:Burattino|Burattino]]

Output:

w<br>
Burattino|Burattino

Expected:

Burattino

Upvote & Fund

Fund with Polar

BoboTiG commented 1 year ago

And at the same time, we should ignore those use cases like we can see at https://it.wiktionary.org/wiki/propedeutici:

[[en:propedeutici]]
[[sh:propedeutici]]

Output:

en:propedeutici
sh:propedeutic

The thing is that we can find any locale ISO code followed by some text.

BoboTiG commented 1 year ago

Another one: https://it.wiktionary.org/wiki/mignottocrazia