On 4 Nov 2024, at 17:52, Hans Hagen via ntg-context <ntg-context@ntg

> And then for Bruce to come up with the singular / plural variant for

Thanks Hans.

A “pluraliser” for item/item, entry/entries etc is overkill given that only one 
person has requested the feature so far and, mainly, I have no idea how a 
multi-lingual version might work. :-)

In English texts it is quite common to write “item(s)” when it is not certain 
how many are being referred to. This works quite nicely in Context:

  \def\item(s){\if\upcomingnofitems 1{item}\else{items}\fi}

which allows:

  This list has \upcomingnofitems\ \item(s)

in the source.

So I’m going to suggest that we leave it for individual users to do what’s 
simplest for them. I’ll add something to the wiki when this comes out in the 
next release.

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to