From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112710 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans van der Meer via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: parameters TeX->LuaTeX Date: Sun, 5 Sep 2021 10:39:19 +0200 Message-ID: References: <99336F15-7FDC-4E78-B5A1-046C8ACE57A6@ziggo.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: multipart/mixed; boundary="===============8680963628638232728==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40493"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hans van der Meer To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 05 10:39:47 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 1mMngo-000ALu-Aa for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Sep 2021 10:39:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B1047287137; Sun, 5 Sep 2021 10:39:24 +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 poEJwmlG6k0y; Sun, 5 Sep 2021 10:39:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A9FDD28712E; Sun, 5 Sep 2021 10:39:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48A0C28712C for ; Sun, 5 Sep 2021 10:39:21 +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 ABR8TSxmOd_t for ; Sun, 5 Sep 2021 10:39:20 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F10FB287116 for ; Sun, 5 Sep 2021 10:39:19 +0200 (CEST) Original-Received: from [212.54.42.105] (helo=smtp1.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMngN-0003Yr-Qk for ntg-context@ntg.nl; Sun, 05 Sep 2021 10:39:19 +0200 Original-Received: from [192.168.178.20] ([84.106.134.200]) by smtp1.tb.mail.iss.as9143.net with ESMTPA id MngNmubrdyyFvMngNmSitU; Sun, 05 Sep 2021 10:39:19 +0200 X-Env-Mailfrom: havdmeer@ziggo.nl X-Env-Rcptto: ntg-context@ntg.nl X-SourceIP: 84.106.134.200 X-CNFS-Analysis: v=2.4 cv=L99+/8f8 c=1 sm=1 tr=0 ts=61348237 cx=a_exe a=wCstmS+ZHA3zSJXjQC+ubA==:117 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=1ad8Vb1ZqPfsFYJfda8A:9 a=CjuIK1q_8ugA:10 a=AW3pJyf8ywBECeX3BTkA:9 a=shoyK9t5N5Q2lxsw:21 a=_W_S_7VecoQA:10 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Authenticated-Sender: havdmeer@ziggo.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ziggo.nl; s=202002corplgsmtpnl; t=1630831159; bh=D0QyCZiaqVUIfQ4IKiPRpZRttqM6cpnImOFmj/AsdLw=; h=From:Subject:Date:References:To:In-Reply-To; b=BhN/t1DhczGNpe5uxCq8AtmCCHPVda5thmIqRkDTXrQB6g0639ify18tc6Akg2VzE njTvwGPWtZRseBJc9ShzPYtWBRiHW/OhDqkUrFR8JHFJVqPxbk8qiMPshE5M+ReNN1 8G/4JURbws2RVn7YytW3fS/1l7QJyKBM1ZZRVvkov5mwYJNLGhC43vUfEcRlqeU8v4 WDqDZDaQpQt5NKVsraqFBFDpH8+R2QvtEl8BvOwnOgjryctVr0F8Kykh/lq/4a1vsH gecLcXnzbJCpvMwy6n8z2KD8I//vHbgypFvmUlhX7xzHUQltU9KfEiOMe7lMUs5rTS uIp8YizHlZqWw== In-Reply-To: <99336F15-7FDC-4E78-B5A1-046C8ACE57A6@ziggo.nl> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CMAE-Envelope: MS4xfBP2IlUFVghLa80jWAOupQfmqYgErYi+l72j4hezYgg33/bkX/K6z3Xg35tVi433PXyY6fUtg+w+0hPcLEfq2MsQ+4RPXZeTdOYkEJ3hKNpoMNv5CUNs YIXugs7s8qsy1HBN7wakqezI7KGy/dnYeDxDzB8OoJaENOIbsOmsehwjQNra0a9gQtqqeL+mdEwnTg== 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:112710 Archived-At: --===============8680963628638232728== Content-Type: multipart/alternative; boundary="Apple-Mail=_AFBBFDF9-66AB-4A90-B9AC-26C4AFA5A988" --Apple-Mail=_AFBBFDF9-66AB-4A90-B9AC-26C4AFA5A988 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii And \ListSort[[abc]]{value} turns out to be worse: doesn't makes it into = LuaTeX at all. dr. Hans van der Meer > On 5 Sep 2021, at 10:14, Hans van der Meer via ntg-context = wrote: >=20 > There is something I do not understand in the passing of parameters = from TeX to LuaTex. > This is my TeX definition: > = \def\ListSort[#1]#2{\directlua{hvdm.listsort([=3D=3D=3D[#2]=3D=3D=3D],[=3D= =3D=3D[#1]=3D=3D=3D])}} >=20 > Calling \ListSort[sep=3D{ + }]{} delivers the string 'sep=3D{ + }' = into LuaTeX as the printout in the logfile shows and as intended. > However in \ListSort[{ + }]{} the braces have disappeared and = transferred is nothing more than ' + '. >=20 > Why is the transfer messing up the character string I am passing by = removing the outer braces? Is this a bug or is it an unavoidable = consequence of the TeX-LuaTeX interface? >=20 > dr. Hans van der Meer >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_AFBBFDF9-66AB-4A90-B9AC-26C4AFA5A988 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii And = \ListSort[[abc]]{value} turns = out to be worse: doesn't makes it into LuaTeX at all.
dr. Hans van der Meer


On 5 Sep 2021, at 10:14, Hans van der Meer via ntg-context = <ntg-context@ntg.nl> wrote:

There is something I = do not understand in the passing of parameters from TeX to LuaTex.
This is my TeX definition:
\def\ListSort[#1]#2{\directlua{hvdm.listsort([=3D=3D=3D[#2]=3D=3D= =3D],[=3D=3D=3D[#1]=3D=3D=3D])}}

Calling \ListSort[sep=3D{ + }]{} delivers the string =  'sep=3D{ + }' into = LuaTeX as the printout in the logfile shows and as intended.
However in \ListSort[{ + = }]{} the braces have disappeared and transferred is nothing = more than ' + '.

Why is the transfer = messing up the character string I am passing by removing the outer = braces? Is this a bug or is it an unavoidable consequence of the = TeX-LuaTeX interface?

dr. = Hans van der Meer


___________________________________________________= ________________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_AFBBFDF9-66AB-4A90-B9AC-26C4AFA5A988-- --===============8680963628638232728== 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== --===============8680963628638232728==--