From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 946162E90C for ; Wed, 17 Sep 2025 06:23:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B18B6487046 for ; Wed, 17 Sep 2025 06:22:23 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavis); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:message-id:date:date:from :from:mime-version:received:received:received:received:received :received; s=cgl; t=1758082943; x=1760674944; bh=BIwYlMPfCNSNyqM T+Lie7aQ9+io9aujmvCRP1oCDmc0=; b=dVxhnT7nOgbvY0waZnuLyGfW29ghL35 2If46qUw02PVVLf5U0MHT3qttoVWWXP/2nffZpRN3rf5y33VXH/pVNWgBiFgGD8a II6GskcTEsFcfa59/qYmULwyWkINDpINyTXrtDjd/+tdT6ppK8/1rLXbSt00dCHp QZDZEE8XrrEo= X-Virus-Scanned: Debian amavis at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavis); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavis, port 10024) with ESMTP id QsEClJPipLS8 for ; Wed, 17 Sep 2025 06:22:23 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 47F40487149 for ; Wed, 17 Sep 2025 06:19:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E649E486BA1 for ; Wed, 17 Sep 2025 06:18:45 +0200 (CEST) X-Virus-Scanned: Debian amavis at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavis, port 10024) with ESMTP id HyX5Hz9J2Am1 for ; Wed, 17 Sep 2025 06:18:44 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.182; helo=mail-vk1-f182.google.com; envelope-from=andresconrado@gmail.com; receiver=ntg.nl Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id DEA85486B8E for ; Wed, 17 Sep 2025 06:18:44 +0200 (CEST) Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-54a6248e23aso61578e0c.3 for ; Tue, 16 Sep 2025 21:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758082722; x=1758687522; darn=ntg.nl; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=iU7dewATxYCMCCy8oNOJi0lvAiWIQNLOfAaXA2BuVaM=; b=lHBeD8Zsf4OHCQA1sFqcWaHr1/A1iqYJgpBg9Ad0Bym9sZoa89Mii1C6K1zZaAY2ag LhpNU/SMERIeSpVoEmr6wXRWDD3RgBf2aRY8RQf5EZ/9kLRnHoKUzf7F02KYlPBbEgwy u4f8R7+LGeRk0hDV9FePAqgSCCTEsA34Z42LCExrK0yOX+W5kzCNym5gttAeDY8y+IlF F+6zg6Zfx9s4fM9ErW4X5oMewFVPdDnAcKXqfi+0S2YBEISyQfqi4muSDt0jigveNu5r ZusGVH3165RfwD0cec5RhefNsomIrlibDzpIYJghpOPuaKEa7tP61ZXn+V/Lqck+hhFM az7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758082722; x=1758687522; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iU7dewATxYCMCCy8oNOJi0lvAiWIQNLOfAaXA2BuVaM=; b=v8c27b9NYp5yTrgtq1PDedoG+45y4q2eYjDK715fFr8/H9SkBYPFWGpTkyanK50wZ3 dnFEh70sMYwZYUysj837ewuwsGfWGHmNXXS/OSotn3fWIwRNithm1XsiLo/gvRFKtdDl I+l9eaN84ZfOWxpP62eVo7gy3BNbKPJtck4lLzWA8Zgs8/lZUVf1OxVL6Or8ob3srTtO 1nXUN8wbObb1XpZvbuEA2zebaUXdS9tcesDn0iA5EtXHmcWOq4SNWNJreFIkG80BjGWV h2ENM3QuFXxW9tZwYh0+H6DXIPpTCVthePQZNnugfgya+XXAshZ5NRE4Jtux1YN3IPCe e2Pw== X-Gm-Message-State: AOJu0Yx3GstO8wTSX2PIEVJ2Wn+op936IkvMNxdyKyIkO1vXFPxBCm9z enD3r3XxCRzbC0ISaF7nEMyYxXq57QG63r+I/PS/m4NSB2J/Vv8NDQq54APvM+Qx0ehqcS4gLRM dcmWYJo13LuZmlKgHbBqmiafse4g0TgLFfQFg X-Gm-Gg: ASbGncsL0TFkXbU6K403MlrFXiwUxK+JOmYNMCaIpt/idJCB0dzvU7+Z2cNLYEUfiN/ SQqamtEA2EAAgmbM+t/vDAaqjxzQZSZNxC0znPT7nt8aDYzyHW42URfqQ7t91Acp5MfWSgH1v0a BcX3VvzPeY5xtiWDgHyFy5bB+7/frUpuxzEPxBIJCxVkkfIu7jiP7pSIEy3VwxCnc/qos3i373c wL4zNiBH4S1gCAvnQ== X-Google-Smtp-Source: AGHT+IHCP0DpisDqyEWgnPHvQs8cJ/RQDfR+1iHgd1uk4qp6Pu3JiqtSl1WwQ/aYfifCSCUGgVtpJsSXC3hW6yAF6Cg= X-Received: by 2002:a05:6122:1acf:b0:53c:6d68:1cdc with SMTP id 71dfb90a1353d-54a60a7a10fmr216781e0c.14.1758082722230; Tue, 16 Sep 2025 21:18:42 -0700 (PDT) MIME-Version: 1.0 From: Andres Conrado Montoya Date: Tue, 16 Sep 2025 23:18:06 -0500 X-Gm-Features: AS18NWB3620X8BhMNtt3Neeml0xS2OiS5A38xnSTbie9IhMyDSdVQDzxFRNhHBM Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: FCI5I2UKSLVMZS6HQMN5RZ2ZVKP2DZIU X-Message-ID-Hash: FCI5I2UKSLVMZS6HQMN5RZ2ZVKP2DZIU X-MailFrom: andresconrado@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Using \commalistsentence in combination with \processcommacommand... I'm going mad? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1988814077717117730==" --===============1988814077717117730== Content-Type: multipart/alternative; boundary="00000000000024f774063ef788a7" --00000000000024f774063ef788a7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi list. This is probably the wrong thing to do. However, it's what I have been trying: % MWE %%%%%%%%%%%%%%%%%%%%%% % Registro de autores \definenamespace[autores][ type=3Dmodule, name=3Dautor, command=3Dyes, parent=3Dautores, ] \define[1]\AutorNombreApellido{\edef\currentautor{#1}{% \doifsomething{\autorparameter{nombres}}{\autorparameter{nombres}\space}% \doifsomething{\autorparameter{apellidos}}{\autorparameter{apellidos},}% }} \define[1]\ListaAutores{{\AutorNombreApellido{#1}}\space} \define\autoresListaH{\processcommacommand[\documentvariable{autores}]\List= aAutores} \defineautor[autores][rol=3D{autor}] \defineautor[andi][autores][nombres=3D{Andr=C3=A9s Conrado}, apellidos=3D{M= ontoya Acosta}] \defineautor[soni][autores][nombres=3D{Sonia Amparo}, apellidos=3D{Rodr=C3= =ADguez Rodr=C3=ADguez}] \defineautor[sofi][autores][nombres=3D{Sof=C3=ADa}, apellidos=3D{Parra Alba= rrac=C3=ADn}] \startdocument[autores=3D{andi,soni,sofi}] \commalistsentence[\documentvariable{autores}][{;\space},{\space\letterampe= rsand\space}] \blank[big] \commalistsentence[\autoresListaH][{;\space},{\space\letterampersand\space}= ] \stopdocument %%%%%%%%%%%%%%%%%%%%%%%%% As you may see, I'm trying to process a list of authors, based on the examples in https://wiki.contextgarden.net/Command/startdocument and https://wiki.contextgarden.net/Command/commalistsentence. But this is getting convoluted and I'm convinced there must be an obvious simpler solution I can't seem to find. - The output comes out `Andr=C3=A9s Conrado Montoya Acosta, Sonia Amparo Rodr=C3=ADguez Rodr=C3=ADguez, Sof=C3=ADa Parra Albarrac=C3=ADn,` - I want `Andr=C3=A9s Conrado Montoya Acosta; Sonia Amparo Rodr=C3=ADguez R= odr=C3=ADguez & Sof=C3=ADa Parra Albarrac=C3=ADn` as the first line in the output: `andi; s= oni & sofi` I think I am doing something wrong, because probably it's possible to set up the \processcommacommand to act in the same way as the \commandlistsentence? (I'm guessing this is what I want) But I can't seem to find how. Also consulted: - https://wiki.contextgarden.net/ConTeXt_and_Lua_programming/Tutorials/System= _Macros/Action_Processing - https://wiki.contextgarden.net/ConTeXt_and_Lua_programming/Tutorials/System= _Macros/Comma_Separated_Lists Something there should help but I'm not really sure what. Any clue would be greatly appreciated. Thank you very much. --=20 Andr=C3=A9s Conrado Montoya andresconrado@gmail.com http://sesentaycuatro.com ---------------------------------------- Los fines no justifican los medios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispuestos a utiliz= ar, no por los fines que proclamamos. --00000000000024f774063ef788a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi list. This is probably the wrong thing to do. Howe= ver, it's what I have been trying:=C2=A0

% MWE %%%%%%= %%%%%%%%%%%%%%%%
% Registro de autores
\definenamespace[autore= s][
=C2=A0 type=3Dmodule,
=C2=A0 name=3Dautor,
=C2=A0 command=3Dye= s,
=C2=A0 parent=3Dautores,
]

\define[1]\AutorNombreApellido{\= edef\currentautor{#1}{%
=C2=A0 \doifsomething{\autorparameter{nombres}}{= \autorparameter{nombres}\space}%
=C2=A0 \doifsomething{\autorparameter{a= pellidos}}{\autorparameter{apellidos},}%
}}

\define[1]\ListaAutor= es{{\AutorNombreApellido{#1}}\space}
\define\autoresListaH{\processcomma= command[\documentvariable{autores}]\ListaAutores}

\defineautor[autor= es][rol=3D{autor}]
\defineautor[andi][autores][nombres=3D{Andr=C3=A9s Co= nrado}, apellidos=3D{Montoya Acosta}]
\defineautor[soni][autores][nombre= s=3D{Sonia Amparo}, apellidos=3D{Rodr=C3=ADguez Rodr=C3=ADguez}]
\define= autor[sofi][autores][nombres=3D{Sof=C3=ADa}, apellidos=3D{Parra Albarrac=C3= =ADn}]

\startdocument[autores=3D{andi,soni,sofi}]

\commalists= entence[\documentvariable{autores}][{;\space},{\space\letterampersand\space= }]

\blank[big]

\commalistsentence[\autoresListaH][{;\space},{= \space\letterampersand\space}]

\stopdocument

%%%%%%%%%%%%%%%%= %%%%%%%%%

As you may see, I'm trying to proces= s a list of authors, based on the examples in=C2=A0https://wiki.contextgarden.net/Com= mand/startdocument and=C2=A0https://wiki.contextgarden.net/Command/commalists= entence. But this is getting convoluted and I'm convinced there mus= t be an obvious simpler solution I can't seem to find.

- The output comes out `Andr=C3=A9s Conrado Montoya Acosta, Sonia = Amparo Rodr=C3=ADguez Rodr=C3=ADguez, Sof=C3=ADa Parra=C2=A0Albarrac=C3=ADn= ,`
- I want `Andr=C3=A9s Conrado Montoya Acosta; Sonia Amparo Rod= r=C3=ADguez Rodr=C3=ADguez & Sof=C3=ADa Parra=C2=A0Albarrac=C3=ADn` as = the first line in the output: `andi; soni & sofi`

<= div>I think I am doing something wrong, because probably it's possible = to set up the \processcommacommand=C2=A0to act in the same way as the \comm= andlistsentence? (I'm guessing this is what I want)=C2=A0But I can'= t seem to find how.

Also consulted:=C2=A0
- https://wiki.contextgarden.net/Co= nTeXt_and_Lua_programming/Tutorials/System_Macros/Action_Processing=C2= =A0

Something there should help = but I'm not really sure what.=C2=A0Any clue would be greatly appreciate= d. Thank you very much.

-- =
-----------------------= -----------------
Los fines no justifican los medios, porque la medida v= erdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos= dispuestos a utilizar, no por los fines que proclamamos.
--00000000000024f774063ef788a7-- --===============1988814077717117730== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============1988814077717117730==--