From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112445 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Create an enumeration style Date: Wed, 11 Aug 2021 12:41:59 +0200 Message-ID: References: <3e22b50c-9fea-1e0d-14d3-722f08436298@gmail.com> <49567FD0-A7D1-4621-AD7A-6E3556812AFB@gmail.com> <4bcb5023-971a-ad4a-89d2-cfbbfe26191a@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4474931527252622561==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17142"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 11 12:44:31 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDlio-0004Fn-1s for gctc-ntg-context-518@m.gmane-mx.org; Wed, 11 Aug 2021 12:44:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2D33286244; Wed, 11 Aug 2021 12:43:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BHF61IefLMRq; Wed, 11 Aug 2021 12:43:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9EB1A28663B; Wed, 11 Aug 2021 12:43:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0B6CD2865FC for ; Wed, 11 Aug 2021 12:43:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0rTPDycdgqFA for ; Wed, 11 Aug 2021 12:43:52 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.170; helo=mail-oi1-f170.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DB7E8286244 for ; Wed, 11 Aug 2021 12:43:51 +0200 (CEST) Original-Received: by mail-oi1-f170.google.com with SMTP id bi32so3950030oib.2 for ; Wed, 11 Aug 2021 03:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RxxEVNcWS5J1QG5NJyLTmKoHOgMlPWM7hV2AA8TkaKo=; b=eKw/u8QVuB4+AV9f1SewAju5NaKvCDzzVFWnnwSveEdlbFIFFrxcJFizO13Gf/49Ho LM2LN14jpRjbDgW1qZcuUja2zaUNNMBtam4u9g2gWLEb8uHtuU8D16fiKDkNjV6LxA1C zjUstmR8CGnOEetDAWebL/hpoJD1e/QdevPRJ6LfKcQ6iM/ZJ5itfRoQPxQHoxgNbLMe gYNZxxEOsql8nz0eDY/6UvdYkmsuDMaxRG1YWds4aCPj1aVsmhsvpQ8nMWwilxhit5/C IEhr5eK7t2NKin8WxP+2NYuuzC9955+gnEV+tNAX5KY+pYsN2uF3jEHB4eyZLFPETmOJ Hfjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RxxEVNcWS5J1QG5NJyLTmKoHOgMlPWM7hV2AA8TkaKo=; b=DVoR7GTIfwE5117DxqUBv3/jV4mdjd7jginZSi5wqTYwW/6LC4LNw8TvCb96Gf1u85 WtJruBdUGcZaCgCvkhqtsEdshIMIZDgiNvpprU/TW645ZtybRtgTm7ifSHgeh9eXak23 MjXoIiWlJt2iketHUAar1LLUWdVqjSV92H5tRZBQP9w0FSbgzkKpzrueU5dgBmuUG+HZ crbmJ1Dm8vddWYUby7QYwc+eoVT4jDx7Y+bJdLBGb3zsAF3hE0Jw2/N/s+sOTYTLUu7k eQZxbCqmGLsNBSubSXdPmxDLS1EDtfrE0FTQKPbFxIrTTOpJbpesCczFLm1Hv4VmfCNI Dxfw== X-Gm-Message-State: AOAM531+ClJtcq7HIglMoOT0Ui9VZdbZ822rEQxPXqcO+TXfaESC/dIo yAVa7RzvdUBeG45wEicp+dYlmUh/9ed4DaQCQ4kfAO2V X-Google-Smtp-Source: ABdhPJzpPQnswPI4Hq5w9zyqXgd9iZLuevs5/hXHF1UlB5vOX9ekZo0GWZ/sZpOCWMaR168y8QQJpahbpU8avrqAxSM= X-Received: by 2002:aca:d604:: with SMTP id n4mr669625oig.122.1628678630264; Wed, 11 Aug 2021 03:43:50 -0700 (PDT) In-Reply-To: <4bcb5023-971a-ad4a-89d2-cfbbfe26191a@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112445 Archived-At: --===============4474931527252622561== Content-Type: multipart/alternative; boundary="00000000000035d11005c9464b22" --00000000000035d11005c9464b22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Wolfgang, Many thanks Fabrice Le mer. 11 ao=C3=BBt 2021 =C3=A0 10:23, Hans Hagen via ntg-context a =C3=A9crit : > 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: > >> (=E2=80=A6) > >> core-con.lua (line 1155): > >> > >> local ordinals =3D { > >> [...] > >> french =3D function(n) > >> if n =3D=3D 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 = =C2=AB > french =C2=BB part of ordinals should be > > > > french =3D function(n) > > if n =3D=3D 1 then > > return =C2=AB er" > > else > > return =C2=AB =C3=A8me" > > 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 ... > > 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 > > _________________________________________________________________________= __________ > --00000000000035d11005c9464b22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Wolfgang,
Many thanks
Fabrice

Le=C2=A0mer. 11 ao= =C3=BBt 2021 =C3=A0=C2=A010:23, Hans Hagen via ntg-context <ntg-context@ntg.nl> a =C3=A9crit=C2=A0:
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:
>> (=E2=80=A6)
>> core-con.lua (line 1155):
>>
>> local ordinals =3D {
>>=C2=A0 =C2=A0 =C2=A0 [...]
>>=C2=A0 =C2=A0 =C2=A0 french =3D function(n)
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if n =3D=3D 1 then
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return "er&qu= ot;
>> +=C2=A0 =C2=A0 =C2=A0 =C2=A0else
>> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return "e"
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end
>>=C2=A0 =C2=A0 =C2=A0 end,
>> }
>
> Hi Wolfgang,
>
> Thanks for the example and the fix, but I would rather think that the = =C2=AB french =C2=BB part of ordinals should be
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0french =3D function(n)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if n =3D=3D 1 th= en
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0return =C2=AB er"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0else
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 return =C2=AB =C3=A8me"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0end
>=C2=A0 =C2=A0 =C2=A0 =C2=A0end,
>
> 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 ...

Hans


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000035d11005c9464b22-- --===============4474931527252622561== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4474931527252622561==--