From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8840 invoked from network); 26 Apr 2023 23:55:38 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2023 23:55:38 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1D516E0AA; Thu, 27 Apr 2023 01:55:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 OZCCIY4ceWss; Thu, 27 Apr 2023 01:55:17 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 64ACE799; Thu, 27 Apr 2023 01:55:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 714CA799 for ; Thu, 27 Apr 2023 01:55:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 NTVqdIvzqqbs for ; Thu, 27 Apr 2023 01:55:12 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.53; helo=mail-io1-f53.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 zapf.ntg.nl (Postfix) with ESMTPS id CA1348F for ; Thu, 27 Apr 2023 01:55:12 +0200 (CEST) Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-76656f3568cso5014939f.1 for ; Wed, 26 Apr 2023 16:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682553310; x=1685145310; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=niZTtgYlrZiHbDSRTa0nn4HxmXuRcie1mztN2m5ZvNM=; b=crUzWqS76a1S5WnjXj8QWcfeNA2n/MkydKiSQq7Rs70YsgZBt65eS4+yIrYN1tpuo8 V8nVkZZeZbbpEUKh10JVqFpFxZl75Gf+PRjnxEoyw+BZPv2PeWP5k/Pn1JSVOmOwY/ly nlUuNOnQ22jFbuS/N9IY3ZlI8bQCF5ZuiqqZzKRXzY0ZBqzzJMYsT5ZOzsWri+EIP/Ud KUeUqCn0lQeqxcCPpqELY0MKFmMPJWaUglqUdh1f8z2zQkdEmV87m6QenToELxKOPqnK yWbFv0m7s1S06ehzd8nU1hrlS5wvk1oWhVJoyhizA9FfjPKTSsELaSrw+oNADF4FChTB 0IDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682553310; x=1685145310; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=niZTtgYlrZiHbDSRTa0nn4HxmXuRcie1mztN2m5ZvNM=; b=barbS8yXg2VB9VuplkqxDlOWhX4h8ZWlZPEJl8Fxw7Vba8v/3f6SNpxTRE5RiXCjjO x32ZRcnFZJGPG5oXO32VECn7MGHFyMJgZC79NsEzlLFIKhmRmLYZPpz2kFhzQ+GTIuUu RqfcTtojP0UduH3NEcR8Ma1B3+QA3oKKabO7BNow+Blc13aAlX43xFXzW7vaheWps2Hl pWMSG+sczEQ/9EyAT1FWhzRPilEHg9tVtMc92TbMGjIriC/HSpk+AOzNfuxcKW65vvAn gmLI64neX9kQncdzsBGt676lqw1d/Yy2Oi+PkAFsmeQ1ZJDFwjVvcV0xqQEPwww3MUiQ 5SRg== X-Gm-Message-State: AC+VfDzWmoDCh3pNfphdtJE9FGcOnQzHo4n5Su6j9Xm+zZHQgSnUgS6U oQ/sRgyjhY72iwxIJNZ0Wx/bNb5uJNtzpinFQ15lmrXoI9o= X-Google-Smtp-Source: ACHHUZ5c/nRohFcUEz1YYSATcniOtHIyCZKw6paKPHCsvCX00o+p+T1J4Y9HJlU4q5zC72QXnc80MQzP5fVlEYJv0DY= X-Received: by 2002:a05:6e02:3499:b0:32b:4518:d122 with SMTP id bp25-20020a056e02349900b0032b4518d122mr35669ilb.3.1682553309411; Wed, 26 Apr 2023 16:55:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 26 Apr 2023 18:54:58 -0500 Message-ID: To: mailing list for ConTeXt users Subject: Re: [NTG-context] update X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Jairo A. del Rio via ntg-context" Reply-To: mailing list for ConTeXt users Cc: "Jairo A. del Rio" Content-Type: multipart/mixed; boundary="===============5262267859978387652==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============5262267859978387652== Content-Type: multipart/alternative; boundary="00000000000052bcd505fa45f873" --00000000000052bcd505fa45f873 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Hans. The following happens with the last update: loading > ConTeXt Node Macros / Page Building resolvers > lua > unknown file 'node-pag.lua' error loading file: node-pag.lua (aborting) Indeed, the file is missing in the distribution (there's only node-pag.mkxl). Regards El mi=C3=A9, 26 abr 2023 a la(s) 16:56, Hans Hagen via ntg-context ( ntg-context@ntg.nl) escribi=C3=B3: > Hi, > > I uploaded a new version with some new features discussed at the end of > this mail. > > - A next version of luatex will break context (format making etc) but > the change is unavoidable because of other macro package demands wrt > security (context does that differently). The low level start up command > has been adapted so unless you update indepdently thinsg should work ok. > Of course this has no consequences for lmtx. > > - I've done a bit of callback cleanup (like getting rid of some mkiv > luatex left-overs). It should have no effect on regular usage. > > - There again a few improvements wrt math (this time dealing with > accents artifacts in some fonts). We check all the free math fonts for > potential issues and then try to fix it (read: deal with it). It's a lot > of work but we're getting there. > > - A few reported buglets have been fixed. > > - The biggest addition is however a new number model. In metapost one > can now use 'posit' (positfun instance) as number mode which will use > (currently 32 bit but at some point 64 bit) posit unums. It's also bit > of a playground because 32 bit posits are not more accurate than 64 bit > doubles. It anyhow exposed some potential issues that we'll look into. > > - There's also a (again currently 32 bit) posit library at the Lua end > as playground. > > - However, 32 bit posits come in handy at the tex end because they pack > better accuracy in 32 bits than floats and it makes it possible to have > native floats, so we have: > > \newfloat (uses \floatdef, register like \dimendef is used in \newdimen) > > \newposit (uses \positdef, like \dimensiondef etc) > > \floatexpr (like \numexpr) > > \iffloat (like \ifnum) (also \ifabsfloat and i'll add the others too) > > Actually it adds an extra range of registers so it bumps memory usage a > bit. I'm considering lowering the number of registers (currently 64K per > category) because after all, if 64K is not enough then we can as well > stick to 32K or 16K (for some even less). There's always Lua for > unlimited storage of quantities. > > So, > > \newfloat\fooA > > \scratchdimen=3D123.456pt\relax [\type{dim:} > \the\scratchdimen=3D=3D123.456pt]\par > \fooA =3D123.456\relax [\type{pos:} \the\fooA > =3D=3D123.456] \par > \fooA =3D\scratchdimen\relax [\type{pos:} \the\fooA > =3D=3D123.456] \par > \scratchdimen=3D\fooA\relax [\type{dim:} > \the\scratchdimen=3D=3D123.456pt]\par > \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:} > \the\scratchdimen=3D=3D133.456pt]\par > > produces > > [dim: 123.456pt=3D=3D123.456pt] > [pos: 123.45600128173828=3D=3D123.456] > [pos: 123.45599365234375=3D=3D123.456] > [dim: 123.456pt=3D=3D123.456pt] > [dim: 133.456pt=3D=3D133.456pt] > > As you can see dimens will get mapped onto floats not as integers > (scaled points) but in pt units. Counts stay numbers. I need to handle > glue too (not yet done). > > In the future I might use this for fractions but there might be some > rough ends so for now it's experimental. > > Hans > > > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > 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 > > _________________________________________________________________________= __________ > --00000000000052bcd505fa45f873 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Hans. The following happens with the last update:
<= br>loading =C2=A0 =C2=A0 =C2=A0 =C2=A0 > ConTeXt Node Macros / Page Buil= ding
resolvers =C2=A0 =C2=A0 =C2=A0 > lua > unknown file 'node= -pag.lua'

error loading file: node-pag.lua (aborting)

Ind= eed, the file is missing in the distribution (there's only node-pag.mkx= l). Regards

El mi=C3=A9, 26 abr 2023 a la(s) 16:56, Hans Hagen via ntg-conte= xt (ntg-context@ntg.nl) escribi= =C3=B3:
Hi,

I uploaded a new version with some new features discussed at the end of this mail.

- A next version of luatex will break context (format making etc) but
the change is unavoidable because of other macro package demands wrt
security (context does that differently). The low level start up command has been adapted so unless you update indepdently thinsg should work ok. =C2=A0 Of course this has no consequences for lmtx.

- I've done a bit of callback cleanup (like getting rid of some mkiv luatex left-overs). It should have no effect on regular usage.

- There again a few improvements wrt math (this time dealing with
accents artifacts in some fonts). We check all the free math fonts for
potential issues and then try to fix it (read: deal with it). It's a lo= t
of work but we're getting there.

- A few reported buglets have been fixed.

- The biggest addition is however a new number model. In metapost one
can now use 'posit' (positfun instance) as number mode which will u= se
(currently 32 bit but at some point 64 bit) posit unums. It's also bit =
of a playground because 32 bit posits are not more accurate than 64 bit doubles. It anyhow exposed some potential issues that we'll look into.<= br>
- There's also a (again currently 32 bit) posit library at the Lua end =
as playground.

- However, 32 bit posits come in handy at the tex end because they pack better accuracy in 32 bits than floats and it makes it possible to have native floats, so we have:

\newfloat=C2=A0 (uses \floatdef, register like \dimendef is used in \newdim= en)

\newposit=C2=A0 (uses \positdef, like \dimensiondef etc)

\floatexpr (like \numexpr)

\iffloat=C2=A0 =C2=A0(like \ifnum) (also \ifabsfloat and i'll add the o= thers too)

Actually it adds an extra range of registers so it bumps memory usage a bit. I'm considering lowering the number of registers (currently 64K pe= r
category) because after all, if 64K is not enough then we can as well
stick to 32K or 16K (for some even less). There's always Lua for
unlimited storage of quantities.

So,

\newfloat\fooA

\scratchdimen=3D123.456pt\relax=C2=A0 =C2=A0 =C2=A0 =C2=A0 [\type{dim:} \the\scratchdimen=3D=3D123.456pt]\par
\fooA=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D123.456\relax=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 [\type{pos:} \the\fooA
=3D=3D123.456]=C2=A0 \par
\fooA=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D\scratchdimen\relax=C2=A0 =C2=A0 [\type= {pos:} \the\fooA
=3D=3D123.456]=C2=A0 \par
\scratchdimen=3D\fooA\relax=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [\type= {dim:}
\the\scratchdimen=3D=3D123.456pt]\par
\scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:}
\the\scratchdimen=3D=3D133.456pt]\par

produces

[dim: 123.456pt=3D=3D123.456pt]
[pos: 123.45600128173828=3D=3D123.456]
[pos: 123.45599365234375=3D=3D123.456]
[dim: 123.456pt=3D=3D123.456pt]
[dim: 133.456pt=3D=3D133.456pt]

As you can see dimens will get mapped onto floats not as integers
(scaled points) but in pt units. Counts stay numbers. I need to handle
glue too (not yet done).

In the future I might use this for fractions but there might be some
rough ends so for now it's experimental.

Hans




-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--00000000000052bcd505fa45f873-- --===============5262267859978387652== 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://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 ___________________________________________________________________________________ --===============5262267859978387652==--