From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117103 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?q?Jan-Erik_H=C3=A4ggl=C3=B6f_via_ntg-context?= Newsgroups: gmane.comp.tex.context Subject: Re: Can ConTeXt display a simple itemized list as a comma-separated list? Date: Mon, 27 Feb 2023 13:00:28 +0100 Message-ID: <406E6BD1-D75B-463D-8310-BA8EDDA7FD3E@gmail.com> References: <313499664.497356.1677340869384.ref@mail.yahoo.com> <313499664.497356.1677340869384@mail.yahoo.com> <6470BFAA-6DFC-45CA-B7DE-7C10FC634C96@gmail.com> <9daf561f-4096-c348-c7c5-f289d3f11bbf@fastwebnet.it> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Content-Type: multipart/mixed; boundary="===============0064672588107682464==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 27 13:01:05 2023 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 1pWcBk-0003B7-4d for gctc-ntg-context-518@m.gmane-mx.org; Mon, 27 Feb 2023 13:01:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2DD9E38081E; Mon, 27 Feb 2023 13:00:38 +0100 (CET) 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 ePmusqjkuABA; Mon, 27 Feb 2023 13:00:35 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC1FE380763; Mon, 27 Feb 2023 13:00:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8686F3807FC for ; Mon, 27 Feb 2023 13:00:33 +0100 (CET) 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 ruZUXmaHRV9D for ; Mon, 27 Feb 2023 13:00:32 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.51; helo=mail-lf1-f51.google.com; envelope-from=skrantajanneman@gmail.com; receiver= Original-Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 C28B43804AD for ; Mon, 27 Feb 2023 13:00:31 +0100 (CET) Original-Received: by mail-lf1-f51.google.com with SMTP id i9so8199163lfc.6 for ; Mon, 27 Feb 2023 04:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=c85QszCs9IAGu6vfKP8YxTQx3Ok7vGYrThVXsnqQins=; b=ZFZiTrFr1LZUOx3NDMefmQ9Rg1mcw1r0KnNgbzxMMTldOC2VUt55YEsCcH28mKJmAN IIRhUuvdKYiPhVlEYkNZQ++Ch9rqnE0Dc6kWAkky9Sgo/aYIYPqurNbAZyYFJwEzkvAP wlWdUJp4OhBrkIPOUkOzHX8BSInmRimCpTXgkw/9g/LqwSu9+EcOpihZPZN3tZV56CBu A7o8U3xSj+9JH3g+PINdKCvG6yYCNpHMPOmO8jKK6X162Ua/rGc3wm+0kF7rQtjsi6H3 pSlQvTGvFjKm/PVa/zMIrek2a/JFBGemjf/ipBqJsG00ndZhFLLeCuE0U8QtOAYsTcdU Na1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c85QszCs9IAGu6vfKP8YxTQx3Ok7vGYrThVXsnqQins=; b=T6RdIW7vyr5DoW0JwfHbZcO2bV7XGgEalD/XdWW762LF12TZw9T2QJVB/PFOPVJLLP 6Ze+jGZnrKVQSTgrD5D/v2Gd81QVwUxVmZvWK4VayPIbtSL8qcc4xGqBMWY8xDwgIT7d awPUkLhOTRYx68XNHQP1M/IX7cS/S9eNHbBDLbBJ6uPfB+qklDjsg6I1VTPr67ndmKq+ 1SOIG2quYRNVAyS1srQPt4wSiZPlZ/jcC6DWurInIpMXMv0H1O995O1EeGK2L6U64Crd hYsKm+cfUP87oDe+aLxeIW6jDG9lgklpfUBc/fMx3/A6cLz8Y7zjA5JhmB9KlZIbgD9b VENQ== X-Gm-Message-State: AO0yUKXn1waFXHFYwTM1sTAZt+VruV4ZNLuXSN48fngi00VXeSlghCrt hYuy8jesjtBuPRaHFlKvPKnXOam+0Sdi5g== X-Google-Smtp-Source: AK7set8E11NYYY4eshgBWo+vifCjIPNPuuqK1hgStvHLbfahe8ibeO4HEcus/R4xhKb1r6dT24x/IA== X-Received: by 2002:ac2:5456:0:b0:4b4:6490:cbf1 with SMTP id d22-20020ac25456000000b004b46490cbf1mr8211627lfn.15.1677499230515; Mon, 27 Feb 2023 04:00:30 -0800 (PST) Original-Received: from smtpclient.apple ([194.103.203.170]) by smtp.gmail.com with ESMTPSA id s11-20020a19ad4b000000b0048b365176d9sm882162lfd.286.2023.02.27.04.00.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2023 04:00:29 -0800 (PST) In-Reply-To: <9daf561f-4096-c348-c7c5-f289d3f11bbf@fastwebnet.it> X-Mailer: Apple Mail (2.3696.120.41.1.2) 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:117103 Archived-At: --===============0064672588107682464== Content-Type: multipart/alternative; boundary="Apple-Mail=_E17F0202-9004-48F7-B4D3-209B7A1C72AA" --Apple-Mail=_E17F0202-9004-48F7-B4D3-209B7A1C72AA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I added the braces but still no difference, still empty between items Jan-Erik H=C3=A4ggl=C3=B6f skrantajanneman@gmail.com ConTeXt ver: 2023.02.23 21:26 LMTX fmt: 2023.2.27 int: = english/english > 27 feb. 2023 kl. 12:53 skrev mf via ntg-context : >=20 > \setupitemgroup > [fooditems] > [each] > [none,text] > [textseparator=3D{,}] >=20 > Comma is used to separate options; if you don't use braces, it means = that the textseparator is set to the empty string. >=20 > Massi >=20 > Il 27/02/23 12:33, Jan-Erik H=C3=A4ggl=C3=B6f via ntg-context ha = scritto: >> I tested the code and the separator didn=E2=80=99t show up >> \mainlanguage[sv] >> \setupbodyfont[12pt] >> \defineitemgroup >> [fooditems] >> \setupitemgroup >> [fooditems] >> [each] >> [none,text] >> [textseparator=3D,] >> \starttext >> \startfooditems >> \item fish >> \item eggs >> \item milk >> \stopfooditems >> \stoptext >>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context = = >>: >>>=20 >>> On 2/25/2023 5:01 PM, Joel via ntg-context wrote: >>>> I have a list like this: >>>> \startitemize[1] >>>> \item fish >>>> \item eggs >>>> \item milk >>>> \stopitemize >>>> Is there any command in ConTeXt to make this display the items as a = comma-separated list, like this: >>>> fish, eggs, milk >>>> Or a semi-colon-separated list? >>>> fish; eggs; milk >>> In the next update you can set a textseparator. >>>=20 >>> \starttext >>>=20 >>> \startitemize[none,text][textseparator=3D;] >>> \item fish >>> \item eggs >>> \item milk >>> \stopitemize >>>=20 >>> \defineitemgroup >>> [fooditems] >>>=20 >>> \setupitemgroup >>> [fooditems] >>> [each] >>> [none,text] >>> [textseparator=3D;] >>>=20 >>> \blank[2*line] >>>=20 >>> \startfooditems >>> \item fish >>> \item eggs >>> \item milk >>> \stopfooditems >>>=20 >>> \stoptext >>>=20 >>> ----------------------------------------------------------------- >>> Hans Hagen | PRAGMA ADE >>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>> tel: 038 477 53 69 | www.pragma-ade.nl = > | www.pragma-pod.nl = > >>> ----------------------------------------------------------------- >>>=20 >>> = __________________________________________________________________________= _________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> maillist : ntg-context@ntg.nl = > / = https://www.ntg.nl/mailman/listinfo/ntg-context = > >>> webpage : https://www.pragma-ade.nl = > / = http://context.aanhet.net = > >>> archive : https://bitbucket.org/phg/context-mirror/commits/ = = > >>> wiki : https://contextgarden.net = > >>> = __________________________________________________________________________= _________ >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >> maillist : ntg-context@ntg.nl / = https://www.ntg.nl/mailman/listinfo/ntg-context = >> webpage : https://www.pragma-ade.nl / = http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ = >> wiki : https://contextgarden.net >> = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://www.ntg.nl/mailman/listinfo/ntg-context = > webpage : https://www.pragma-ade.nl / = http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ = > wiki : https://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_E17F0202-9004-48F7-B4D3-209B7A1C72AA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I added the braces but still no difference, still empty = between items


Jan-Erik H=C3=A4ggl=C3=B6f
skrantajanneman@gmail.com

ConTeXt  ver: 2023.02.23 21:26 = LMTX  fmt: 2023.2.27  int: english/english

27 feb. 2023 kl. 12:53 skrev mf via ntg-context <ntg-context@ntg.nl>:

\setupitemgroup
   [fooditems]
   [each]
   [none,text]
   [textseparator=3D{,}]

Comma is used to separate = options; if you don't use braces, it means that the textseparator is set = to the empty string.

Massi

Il 27/02/23 12:33, Jan-Erik H=C3=A4ggl=C3=B6f via ntg-context = ha scritto:
I = tested the code and the separator didn=E2=80=99t show up
\mainlanguage[sv]
\setupbodyfont[12pt]
\defineitemgroup
  [fooditems]
\setupitemgroup
  [fooditems]
  [each]
  [none,text]
  [textseparator=3D,]
\starttext
\startfooditems
  =   \item fish
    \item eggs
    \item milk
\stopfooditems
\stoptext
26 feb. 2023 kl. 11:55 = skrev Hans Hagen via ntg-context <ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>>:

On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
I have a list like = this:
\startitemize[1]
\item fish
\item eggs
\item milk
\stopitemize
Is there any command in ConTeXt to = make this display the items as a comma-separated list, like this:
fish, eggs, milk
Or a semi-colon-separated = list?
fish; eggs; milk
In the = next update you can set a textseparator.

\starttext

\startitemize[none,text][textseparator=3D;]
   \item fish
   \item eggs
   \item milk
\stopitemize

\defineitemgroup
 [fooditems]

\setupitemgroup
 [fooditems]
 [each]
 [none,text]
 [textseparator=3D;]

\blank[2*line]

\startfooditems
   \item fish
   \item eggs
   \item milk
\stopfooditems

\stoptext

---------------------------------------------------------------= --
          &nb= sp;            = ;            &= nbsp;     Hans Hagen | PRAGMA ADE
          &nb= sp;  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl> | www.pragma-pod.nl<http://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 <mailto:ntg-context@ntg.nl> / https://www.ntg.nl/mailman/listinfo/ntg-context<https://www.ntg.nl/mailman/listinfo/ntg-context>
webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl> / http://context.aanhet.net<http://context.aanhet.net>
archive =  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
wiki     : https://contextgarden.net <https://contextgarden.net>
_______________________________________________________________= ____________________
__________________________________________________= _________________________________
If your question is of = interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive =  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
_______________________________________________________________= ____________________
_______________________________________________________________= ____________________
If your question is of interest to others as well, please add = an entry to the Wiki!

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

= --Apple-Mail=_E17F0202-9004-48F7-B4D3-209B7A1C72AA-- --===============0064672588107682464== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0064672588107682464==--