From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112709 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: parameters TeX->LuaTeX Date: Sun, 5 Sep 2021 10:14:18 +0200 Message-ID: <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="===============3948317540073426162==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9287"; 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:15:18 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 1mMnJ8-0002EM-52 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Sep 2021 10:15:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E9981287116; Sun, 5 Sep 2021 10:14:23 +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 Au-spo4UU0sK; Sun, 5 Sep 2021 10:14:23 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC3D2287118; Sun, 5 Sep 2021 10:14:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF5A5286FE4 for ; Sun, 5 Sep 2021 10:14:20 +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 t03qWeACZWDh for ; Sun, 5 Sep 2021 10:14: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 EA1F8284234 for ; Sun, 5 Sep 2021 10:14:19 +0200 (CEST) Original-Received: from [212.54.42.106] (helo=smtp2.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1mMnIB-0002xN-Cr for ntg-context@ntg.nl; Sun, 05 Sep 2021 10:14:19 +0200 Original-Received: from [192.168.178.20] ([84.106.134.200]) by smtp2.tb.mail.iss.as9143.net with ESMTPA id MnIAmiBFEAfFsMnIBmsqRW; Sun, 05 Sep 2021 10:14: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=QrM9YX+d c=1 sm=1 tr=0 ts=61347c5b cx=a_exe a=wCstmS+ZHA3zSJXjQC+ubA==:117 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=bEEuCydssaVo3Fr3LuQA:9 a=CjuIK1q_8ugA:10 a=_sV0UEr2eA-4mwn5hAgA:9 a=maE07rR29n6r_u5T:21 a=_W_S_7VecoQA:10 X-Authenticated-Sender: havdmeer@ziggo.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ziggo.nl; s=202002corplgsmtpnl; t=1630829659; bh=iw82E23EYQz1fwB5orIC7+fZHD60WAIHl3i8W6gxld0=; h=From:Subject:Date:To; b=mxZ6XQN+tgjfKNAeJRg/jpFRXhwRxxyQuvALWA8rUC6q3hi7F2BqHVuKWpLDvHKYT ysuXKNsC7Xhp67k0bdyMps7QP76d1sz8Rkz/Z2qe8jzZY5xych/U0yMQjZ05HsTF7G VsCOEUm3on+JZaUxCTFOUSGQGy9n5NP2b4ZaT9dSp4A2MgZSIuC2VsIHWz5eKhhJPC 4pOQtAA3b204R5Xl7y3B1w1nYHjQEhD8r5hLjxsvX6Ktdsrlgqnja51gGJr2p0bUcO LJFnXiDvHav2ZehF4CnhO3ST6hGgdnO73rjR1uSW/8u7OsD+nESxtYqpsgW2r0ZqVK eRZ6c9HhE/M1w== X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CMAE-Envelope: MS4xfDGsIqbjy6Knzwr7V8tv+1CSXZIx+9rx+7uWpDzMZeSsmZhU2P9Hw9jA4JtrqUSVjyR0gQfKl9chu5OBcg5GD1TojG5nJJJF9kXo0GrDN57diiXe89D4 0fIxg3MJEeLbTNWrYe5+PDJJM2K8jegjeE3oNqtNkSbnJil9lAXuhpFTcl4Y5fPxAeAmVJ1kDuV74w== 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:112709 Archived-At: --===============3948317540073426162== Content-Type: multipart/alternative; boundary="Apple-Mail=_B5025D45-2BA1-408C-812C-C6A6917D3299" --Apple-Mail=_B5025D45-2BA1-408C-812C-C6A6917D3299 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 --Apple-Mail=_B5025D45-2BA1-408C-812C-C6A6917D3299 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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


= --Apple-Mail=_B5025D45-2BA1-408C-812C-C6A6917D3299-- --===============3948317540073426162== 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== --===============3948317540073426162==--