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=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE 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 67061261D7 for ; Fri, 15 Mar 2024 00:56:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DFF7B4841CA for ; Fri, 15 Mar 2024 00:55:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=jdvb.ca Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fCKvteeVgphD for ; Fri, 15 Mar 2024 00:55:53 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 73FF6484349 for ; Fri, 15 Mar 2024 00:54:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6C1BB484171 for ; Fri, 15 Mar 2024 00:54:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id go6Ms5D0eM7o for ; Fri, 15 Mar 2024 00:54:19 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=67.215.8.22; helo=seout13.web-dns1.com; envelope-from=zlists+context@jdvb.ca; receiver= Received: from seout13.web-dns1.com (seout13.web-dns1.com [67.215.8.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 9C29048416E for ; Fri, 15 Mar 2024 00:54:19 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se1.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkutg-00H1Nv-4L for ntg-context@ntg.nl; Thu, 14 Mar 2024 19:54:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mXCJSpI5NdB+0t3BkA6Hi27Auh3qmiaqRRmUL2sbcbA=; b=S2P3l6sRyYDyaN0s4ukWq+FJlu +3uTqU/z297t34Rdn8BjAZHcdhlko1jAP5bz/ReudS+HO2+zdoBXHhLy/Ccw/kQxBeT3ZjedoiNrb 9WOFN9d4q6ocJUlHWvdORr5dtkCvxSMi6+hibC4mau1QJ61wSS9PqWqtJ3gOTwdTQUyoSpG1V9cZS HZywhPNynVMvQiFfgXdpJHO5sdhT08JZT1vgp+h+1+6ZsGtjoQ89Qn2UkatS87yn5mRHNsrnFVe70 /7UReE6shcOzDoGGNcPMPqBaoTFcOJhZ1rgi6EGI2rJPaVeHH01TGHZm9SVxG7UcyyGL1c/EDBdlq UzFsZQ8A==; Received: from [47.55.144.2] (port=50602 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rkutZ-003joG-0c for ntg-context@ntg.nl; Thu, 14 Mar 2024 19:54:03 -0400 Received: by x360 (Postfix, from userid 1000) id AE6EB1E0715; Thu, 14 Mar 2024 20:53:56 -0300 (ADT) Date: Thu, 14 Mar 2024 20:53:56 -0300 From: Jim To: mailing list for ConTeXt users Message-ID: References: <5b3c436565692c3da7b76aa4666d9d0c22eeb46b.camel@telus.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.13) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9Zym/+HCetHQtMKEgqtnqwPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x+OkQ6e4TPVgvpcS1fNw4ZIpdOJ9Sgfu6rKL8kf6cp2WbK d+THtaFmd8ruRRy+mZjilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RI0ADIbIyQzeIwB+Xs5B5gGg8CBO1Snvm6qXHQp7O9kdfVx4GsWPrj5Abbqhk9i9oABGzKf EMfQP5IsMlZ0RJfOLDnQGgRgHjioU8fpt7xeC7AK0L/uTNt3WCw41GzGb1Zq+pu9ho29CVyp3Dt9 A9c5hLgYgFsBSgLe7UmHHVjYG9GnC3OL+6eaioOqJ1MVeBS8xyVOjEJvIAACfll1FjMqX1/meW3M G7kx6XXEd8YzfeZE7YJwhBWCb1PmFojBOyjXs2KsRjKrCowEavDwQuKo3bSrXfKp2XsEXUBafcEf xV8Coej5pI7/nMRAwrsF7/9g5p66If/IR1kfxLX5OBwkE6OHS8/FxA6Moo6tghBinBqZR3KVQgqF /fPYYAfEfsga52Z8JJXfjlinQlAXz8EMFSdfXmCpxBt2MeF3x6rGzkxfZS/Tz6ux8B7ZBY2lXAqK YxfWMD3hvX7x6ERBKx0ZUefp74u7wOZVbHJtJYlzOef4BOzgtGrtZu2lf9pWDU7nlEbz++OvPn/h BrVpEmS9K+VzIi1ULT1qXnF5VPHSv0yGxBWcv0SD5EsQJf8Qne42yxs4dE+pq8RbeMxl4IDqVKFw Dpe+9rZABUSOmrMA1koJ6AwQyWBzwby8nMWavwYbRbqCeHUi+97VuZvKuam4nYkEGSzMN+VIFNVe FYSeTIdjF0AJTElrPumkT4cGbnHyI0CgGXyP43F+qNYPSuWcFJCaRyv/5ZYeeiHIC6yQfBXhzfc7 VH8oZoor1GNoqgMfjrevqpm/2sp3cgpxOLQb+Onf21Cxz6rC7Olhe4vH4Q== X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: PCUDA36XTZ2IADLOI6MCZ3BPASAORVCO X-Message-ID-Hash: PCUDA36XTZ2IADLOI6MCZ3BPASAORVCO X-MailFrom: zlists+context@jdvb.ca 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.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: PDF, runner, and TikZ patches List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Max (et al), were you hoping the ConTeXt distribution would ship its own pgfutil-context.def, or were you hoping that someone could convince Henri to put the RGB change in? And, if anyone has the will to push this (or add it in to a ConTeXt distribution version), I'd still like the cmyk support, even if there is no ability to specify colour profiles: \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil { \pgfmathsetmacro{\@red@}{(1 - #2) * (1 - #5)}% \pgfmathsetmacro{\@green@}{(1 - #3) * (1 - #5)}% \pgfmathsetmacro{\@blue@}{(1 - #4) * (1 - #5)}%=20 \expandafter\edef\csname\string\color@#1\endcsname {\noexpand\xcolor@ {}{}{rgb}{\@red@,\@green@,\@blue@}} } I don't see that it would hurt anything, even if it doesn't give complete cmyk support. Cheers. Jim On Thu, Mar 14, 2024 at 17:18 (-0600), Max Chernoff wrote: > Hi all, > I've had a few patches applied to my installation for a little while > now, so I figured that I should send them in. There's a diff at the end > of the email, and the modified files are attached [but rejected by the > mailing list, so sent separately to Hans] > * In the definition of "featurecreep()" in "lpdf-mis.lmt", > "structures.pages.tobesaved[i].status" should be "[...].state" to > match the definition of "pages.save" in "strc-pag.lua".=A0 > * For the "resultof" runner in "util-sbx.lmt", the current io.popen > mode only works with Windows. See the definition of "l_checkmodep" in > "liolib.c". > * Some of the pgfplots 3D shaders appear to be broken, > see=A0https://tex.stackexchange.com/a/708121 . > * The TikZ "RGB" colour model does not currently work properly. This is > internally used by "\usepgfplotslibrary[colorbrewer]" among others. > See=A0https://github.com/pgf-tikz/pgf/pull/1130 . > Thanks, > -- Max > diff --git a/tex/generic/pgf/utilities/pgfutil-context.def b/tex/generic/= pgf/utilities/pgfutil-context.def > index eddab09ab..66edb0980 100644 > --- a/tex/generic/pgf/utilities/pgfutil-context.def > +++ b/tex/generic/pgf/utilities/pgfutil-context.def > @@ -26,8 +26,17 @@ > \def\pgfutil@definecolor#1#2#3{\csname pgfutil@emu@#2\endcsname{#1}#3\@n= il} > \def\pgfutil@emu@rgb#1#2,#3,#4\@nil{\expandafter\def\csname\string\color= @#1\endcsname{\xcolor@{}{}{rgb}{#2,#3,#4}}} > -\def\pgfutil@emu@gray#1#2\@nil{\expandafter\def\csname\string\color@#1\e= ndcsname{\xcolor@{}{}{rgb}{#2,#2,#2}}} > +\def\pgfutil@emu@gray#1#2\@nil{\expandafter\def\csname\string\color@#1\e= ndcsname{\xcolor@{}{}{gray}{#2}}} > \def\pgfutil@emu@cmyk#1#2,#3,#4,#5\@nil{\expandafter\def\csname\string\c= olor@#1\endcsname{\xcolor@{}{}{cmyk}{#2,#3,#4,#5}}} > +\def\pgfutil@emu@RGB#1#2,#3,#4\@nil{% > + \begingroup > + \pgfmathdivide@{#2}{255}\let\pgfutil@emu@RGB@r\pgfmathresult > + \pgfmathdivide@{#3}{255}\let\pgfutil@emu@RGB@g\pgfmathresult > + \pgfmathdivide@{#4}{255}\let\pgfutil@emu@RGB@b\pgfmathresult > + \edef\pgf@marshal{\def\expandafter\noexpand\csname\string\color@#1\e= ndcsname{% > + \noexpand\xcolor@{}{}{rgb}{\pgfutil@emu@RGB@r,\pgfutil@emu@RGB@g= ,\pgfutil@emu@RGB@b}}}% > + \expandafter\endgroup\pgf@marshal > +} > % no need for x colors (users can load it if needed) > diff --git a/tex/generic/pgfplots/pgfplotsmeshplothandler.code.tex b/tex/= generic/pgfplots/pgfplotsmeshplothandler.code.tex > index 60d6274..106c490 100644 > --- a/tex/generic/pgfplots/pgfplotsmeshplothandler.code.tex > +++ b/tex/generic/pgfplots/pgfplotsmeshplothandler.code.tex > @@ -2804,6 +2804,9 @@ > \def\pgfplotsretval{4}% > \fi > \fi > + \if0\pgfplotsretval > + \def\pgfplotsretval{5} > + \fi > \pgfkeyslet{/pgfplots/surf shading/shading type}\pgfplotsretval% > % > \pgfplotsplothandlermesh@set@shader@colormap > diff --git a/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfs= ys-luatex.def b/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgf= sys-luatex.def > index 0046daa..b563732 100644 > --- a/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-luat= ex.def > +++ b/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-luat= ex.def > @@ -61,7 +61,7 @@ > \pgfplotslibrarysurfusepath > \endpgfpicture > }% > - \immediate\saveboxresource resources{ > + \saveboxresource resources{ > /Pattern << \pgfplots@glob@TMPa >> % write the pattern resource dictiona= ry > }\pgfutil@tempboxa > \leavevmode > diff --git a/tex/context/base/mkxl/util-sbx.lmt b/tex/context/base/mkxl/u= til-sbx.lmt > index b48d4a9..0ee8a16 100644 > --- a/tex/context/base/mkxl/util-sbx.lmt > +++ b/tex/context/base/mkxl/util-sbx.lmt > @@ -393,7 +393,7 @@ local runners =3D { > if trace then > report("resultof: %s",command) > end > - local handle =3D iopopen(command,"rb") -- already has flush > + local handle =3D iopopen(command,"r") -- already has flush > if handle then > local result =3D handle:read("*all") or "" > handle:close() > diff --git a/tex/context/base/mkxl/lpdf-mis.lmt b/tex/context/base/mkxl/l= pdf-mis.lmt > index 0f21cf9..a9cfe02 100644 > --- a/tex/context/base/mkxl/lpdf-mis.lmt > +++ b/tex/context/base/mkxl/lpdf-mis.lmt > @@ -510,7 +510,7 @@ local function featurecreep() > return -- fatal error > end > local label =3D p.viewerprefix or "" > - if p.status =3D=3D v_stop then > + if p.state =3D=3D v_stop then > if not stopped then > list[#list+1] =3D i - 1 -- pdf starts numbering at 0 > list[#list+1] =3D pdfdictionary { > _________________________________________________________________________= __________ > 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 > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-c= ontext.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________= ________