On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote:
> On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote:
> > 
> > 
> > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context <ntg-
> > > cont...@ntg.nl> wrote:
> > > (…)
> > > core-con.lua (line 1155):
> > > 
> > > local ordinals = {
> > >      [...]
> > >      french = function(n)
> > >          if n == 1 then
> > >              return "er"
> > > +       else
> > > +           return "e"
> > >          end
> > >      end,
> > > }
> > 
> > Hi Wolfgang,
> > 
> > Thanks for the example and the fix, but I would rather think that the
> > « french » part of ordinals should be
> > 
> >         french = function(n)
> >                 if n == 1 then
> >                         return « er"
> >                 else
> >                          return « ème"
> >                 end
> >         end,
> > 
> > Now if this were not accepted as a fix in core-con.lua, is there a
> > way for a user to change the default to the above choice in his
> > document ?
> 
> it is no problem to fix if you all can agree on what/how to fix ...

The purpose of abbreviations is, well, to abbreviate. Even though ‘ème’
is seen a lot, it’s wrong because it’s too long. Source (pretty
official):
https://www.academie-francaise.fr/abreviations-des-adjectifs-numeraux

So for numbers starting from 3 the proper abbreviation is ‘e’.

For 1 and 2 it’s more complicated, however, as it depends on the
gender. For 1:
* masculine: 1er
* feminine: 1re

In addition for 2, and when the enumeration contains only 2 elements,
there is the option to use the older word ‘second(e)’:
* masculine: 2d
* feminine: 2de

For 3 elements and above, we always use the newer word ‘deuxième’,
which is abbreviated in the form of the generic ‘e’.

While that rule is optional, people who use tools like ConTeXt are
likely to pay attention to that kind of details and will probably want
to use it.

Finally, we have to add an ‘s’ to all the abbreviations if the plural
is needed (the 1st (1ers) elements, the 2nd (2ds or 2es) elements,
etc., vs the 1st (1er) element, 2nd (2d or 2e) element…).

Now, can all those subtleties be coded in a function? :)

Vincent


> Hans
> 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> _______________________________________________________________________
> ____________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> _______________________________________________________________________
> ____________


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to