ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vincent Hennebert via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Vincent Hennebert <vhennebert@gmail.com>
Subject: Re: Create an enumeration style
Date: Fri, 27 Aug 2021 11:26:47 +0200	[thread overview]
Message-ID: <73a8f3779102acc790aa463cf4196c13bbdde06c.camel@gmail.com> (raw)
In-Reply-To: <4bcb5023-971a-ad4a-89d2-cfbbfe26191a@xs4all.nl>

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-
> > > context@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
___________________________________________________________________________________

  parent reply	other threads:[~2021-08-27  9:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-08 15:47 Fabrice Couvreur via ntg-context
2021-08-08 19:29 ` Wolfgang Schuster via ntg-context
     [not found]   ` <CACyK-epjgPwOitRnz1uWNmaTWoD-g_LXhV=EfgcOQnuH4HT9NA@mail.gmail.com>
2021-08-09 16:10     ` [NTG-context] " Wolfgang Schuster
2021-08-11  8:09       ` Otared Kavian via ntg-context
2021-08-11  8:19         ` Thomas A. Schmitz via ntg-context
2021-08-11 11:55           ` Otared Kavian via ntg-context
2021-08-11  8:23         ` Hans Hagen via ntg-context
2021-08-11 10:41           ` Fabrice Couvreur via ntg-context
2021-08-11 10:57             ` Fabrice Couvreur via ntg-context
2021-08-13 10:41               ` Wolfgang Schuster via ntg-context
2021-08-27  9:26           ` Vincent Hennebert via ntg-context [this message]
2021-08-27 15:10             ` Rudolf Bahr via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73a8f3779102acc790aa463cf4196c13bbdde06c.camel@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=vhennebert@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).