BoboTiG / ebook-reader-dict

Finally decent dictionaries based on the Wiktionary for your beloved eBook reader. Daily updates & 14 languages supported so far.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
422 stars 24 forks source link

[EN] Support '...' and 'nb...' templates #431

Closed BoboTiG closed 3 years ago

BoboTiG commented 3 years ago

Wikicode:

{{nb...}}
{{nb...|soccour, soccur, socor, socore, socour, socoure, socowre, socur, socure, soker, sokor, sokore, sokour, sokoure, sokur, soucore, soucour, soukour, succor, succour, succoure, succur, succure, sucour, sucur, suker, sukour|otherforms=1}}

Output:

Nb...
Nb...

Expected:

 […]
&nbsp;[and other forms <i>soccour, soccur, socor, socore, socour, socoure, socowre, socur, socure, soker, sokor, sokore, sokour, sokoure, sokur, soucore, soucour, soukour, succor, succour, succoure, succur, succure, sucour, sucur, suker, sukour</i>]

On the Wiktionary, it would display only [and other forms] with a tooltip containing the rest of the words. But on the Kobo, it will be useless, and so we will print all words.


Model link, if any: https://en.wiktionary.org/wiki/Template:... and https://en.wiktionary.org/wiki/Template:nb...

BoboTiG commented 3 years ago

I will also improve the rendering by splitting plural/singular. Let's be "avant gardiste" :)