From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117106 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Otared Kavian 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 15:56:03 +0100 Message-ID: References: <313499664.497356.1677340869384.ref@mail.yahoo.com> <313499664.497356.1677340869384@mail.yahoo.com> <6470BFAA-6DFC-45CA-B7DE-7C10FC634C96@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.14\)) Content-Type: multipart/mixed; boundary="===============7857046671465607710==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39362"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Otared Kavian To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 27 15:56:34 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 1pWevZ-000A1v-S7 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 27 Feb 2023 15:56:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B56836176A; Mon, 27 Feb 2023 15:56:11 +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 PhPg-EBsAVga; Mon, 27 Feb 2023 15:56:09 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6EA8361771; Mon, 27 Feb 2023 15:56:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C8D0136176A for ; Mon, 27 Feb 2023 15:56:06 +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 54ltFBUAU1ks for ; Mon, 27 Feb 2023 15:56:05 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.53; helo=mail-wr1-f53.google.com; envelope-from=otared@gmail.com; receiver= Original-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 0EB403615F5 for ; Mon, 27 Feb 2023 15:56:05 +0100 (CET) Original-Received: by mail-wr1-f53.google.com with SMTP id j2so6510530wrh.9 for ; Mon, 27 Feb 2023 06:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=FIoBnskMAl9ncxY6ybOdQT6BtBH6BTq4ZlsoodivxZY=; b=TiDpcrDHntbo/wBJ2M8aDow6oc95VNgiDkDxH6HZAHdhwIgR+gASc+TGXTN6JOySEN YObB86mDkM9eNUgBUihmubJ/gEndgLrm3q7WK1XUeSifzcSp2Zk9j6ylk8hBcvuatPhk SpGSazY4nkaaAiZCLQJgZQGeiraOqNeUMLsU+YQYxJwNW/T8f79QdUMZGqXJxjhMsmUZ wmpjLeOa9BVAqhDu5exuvWBEpfwPHAz7xFovZWvB7/B3KZrvZ/64oFSMeNmuvRFyrb+U dCuo6qxhoroUi9LtlK4BHgfqqBFvKQeMw9W4R+UH9KxKspcari3vPvvvBRJfcygqJy4s pQLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FIoBnskMAl9ncxY6ybOdQT6BtBH6BTq4ZlsoodivxZY=; b=ZXwNrFKfRFq7DlG6mYimyo+LJJ5mMFqu3GHepm4rxUs2gFfRCciu79VQtWJ6bN9bP+ uNcz9r4h+EmUAGaRT8ouv8yUuRXjUWKUnty+5HGmSj3/zu7AVOyTnStSEgrACW4RVwzQ Rw7kxH6a0wUi++8ObpBClsQ6/ObBmTI9fBi/DVqreV7Q5FkGt9PAKzZdQBRgS4JersfA 1aJm0vj78toEwiB4MpwppuvOR0FJ81uRNaiVZBFyl6sNSAzyVDHzxy9qrHwiCy8iH1CC Cd2g7jexd1aRN+hR82tMIuJ9v/gKQOj76d1hyyHKzGAtBupHVExowBXaioqsc76FBveN XNvg== X-Gm-Message-State: AO0yUKVR8hcaXcZBUH2DWKKAF9BX0odL/UQOqzIIOO2qn0IyXclPrExX 1Kyna3b5SKeuMZhFdqW8hyEppavhF/c= X-Google-Smtp-Source: AK7set+jCSvpXcdl9w9oghSe2w3v7Gsh2te/upPbchkFt4d30gMart1klBp4QhbH7ilSaOYJTNZWTQ== X-Received: by 2002:a5d:6404:0:b0:2c7:c9e:2c41 with SMTP id z4-20020a5d6404000000b002c70c9e2c41mr17259887wru.57.1677509764574; Mon, 27 Feb 2023 06:56:04 -0800 (PST) Original-Received: from smtpclient.apple ([2a01:e34:ec02:4760:b852:1354:22fb:120a]) by smtp.gmail.com with ESMTPSA id r6-20020a05600c35c600b003dc4fd6e624sm9947846wmq.19.2023.02.27.06.56.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2023 06:56:04 -0800 (PST) In-Reply-To: <6470BFAA-6DFC-45CA-B7DE-7C10FC634C96@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.14) 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:117106 Archived-At: --===============7857046671465607710== Content-Type: multipart/alternative; boundary="Apple-Mail=_049E78B6-E905-481E-83A4-78D74050CB4A" --Apple-Mail=_049E78B6-E905-481E-83A4-78D74050CB4A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Indeed you are right. However, Hans said the feature would be added in = the next update: so you have to wait a little bit :-) Best regards: Otared > On 27 Feb 2023, at 12:33, Jan-Erik H=C3=A4ggl=C3=B6f via ntg-context = wrote: >=20 > I tested the code and the separator didn=E2=80=99t show up >=20 > \mainlanguage[sv] >=20 > \setupbodyfont[12pt] >=20 > \defineitemgroup > [fooditems] >=20 > \setupitemgroup > [fooditems] > [each] > [none,text] > [textseparator=3D,] >=20 > \starttext >=20 > \startfooditems > \item fish > \item eggs > \item milk > \stopfooditems >=20 > \stoptext > > > >=20 >> 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 >> = __________________________________________________________________________= _________ >=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 > = __________________________________________________________________________= _________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_049E78B6-E905-481E-83A4-78D74050CB4A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Indeed = you are right. However, Hans said the feature would be added in the next = update: so you have to wait a little bit :-)

Best regards: Otared


On 27 Feb 2023, at 12:33, Jan-Erik H=C3=A4ggl=C3= =B6f via ntg-context <ntg-context@ntg.nl> wrote:

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
<test.log>
<test.pdf>
<test.tex>

26 feb. 2023 kl. 11:55 skrev Hans Hagen via = ntg-context <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

---------------------------------------------------------------= --
=             &n= bsp;           &nbs= p;            =     Hans Hagen | PRAGMA ADE
=             &n= bsp;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 / 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
_______________________________________________________________= ____________________

Otared Kavian
Phone: +33 6 88 26 70 95




= --Apple-Mail=_049E78B6-E905-481E-83A4-78D74050CB4A-- --===============7857046671465607710== 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== --===============7857046671465607710==--