From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116916 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Otared Kavian via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: autospacing and colonequals (was Lucida-1.901 (2023-01-21) available) Date: Thu, 26 Jan 2023 22:52:23 +0100 Message-ID: <7C8A3A2B-2A77-4A6F-801E-B715BE83B600@gmail.com> References: <72c8c550-e49d-09ea-6edd-b0870c8fa9d3@fiee.net> <9b1c62d7-833b-f81e-0f49-88df0e84ea6f@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/mixed; boundary="===============6779758041480227362==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15244"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Otared Kavian To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 23:06:34 2023 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 1pLAO9-0003jY-I9 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 26 Jan 2023 23:06:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3A37F10BE; Thu, 26 Jan 2023 23:06:00 +0100 (CET) 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 DsXXsBypfwRc; Thu, 26 Jan 2023 23:05:58 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 42FB938075C; Thu, 26 Jan 2023 23:05:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3615138009A for ; Thu, 26 Jan 2023 23:05:57 +0100 (CET) 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 tpL1K-LFo9Go for ; Thu, 26 Jan 2023 23:05:55 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.50; helo=mail-wr1-f50.google.com; envelope-from=otared@gmail.com; receiver= Original-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F20B210BE for ; Thu, 26 Jan 2023 23:05:54 +0100 (CET) Original-Received: by mail-wr1-f50.google.com with SMTP id q5so3348327wrv.0 for ; Thu, 26 Jan 2023 14:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=WxB0xJKSOu4nbHX9oGyd743dm9KdMyfyxXiJbuyJR6M=; b=N1l/8ornNFvnMdG+ujsUo39Zfq4nVVnAqyAycZHH14Y8xix18RXGx0M0sWgx4EIo8Z GhI26icY28c0HLHHIn/R4b6fktGx3C7DWZ8bS8mPotwSQcJecR+o2kaF6vJcqGJv0Ql8 jWpbW9+JLx1syKce4l9zqcRZB69zXjiI73sMYEQkbjC/K+A/yEtEmhisRvHkicHUTdmo if4+ZDhrEmVSH4m4yzSmII2XWXU5uO29VDi4sX0CmhdJv9nSQt/RzP8tO7OX+ZkyjkvU DBY0OyeXLds1TGtqqk4UaWYsbYbJU+VZOj/cBaqdgmlWfq/HTwNjtqmgQnFXh/m4uTvf DAEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WxB0xJKSOu4nbHX9oGyd743dm9KdMyfyxXiJbuyJR6M=; b=IGyl1pCkB9Olzbuyz5pYrXczVjZrUrCQ/fvIaXACrLebKQSfRlqP/7HKpz18UFCXL6 gJBLjyT58/JxdLsg1PRVl+alC+mx9SUWO+xHRUvS2q1uKLIeu+UqallTMTTXKTql5Elx NUZyBWxDYMbGnt9OHUjPGvbwKX6mIjut45tKqlgKBJtD2YbaQx/WTzvXn084QZhxSalt O+8F7rzJFBhhc4xMzt3e9+TE4uw26I65nxM3COun/kNX3j/yeMxIVpsYEuWOpC9DbIJa qOtgP5DQBXi6oKO0yOH7C5IyRZQJj80PsU3JnbXDaZmJ7PxDbXfL4qAx0gxceZK+SQCc QuqA== X-Gm-Message-State: AFqh2krtJFoXbEoyQBZWykqOodpvOur6n/FzFneoNN7F86ke0Ww2HFbi YeZ/6fRg0P/BSRTr981T5cvihZOwYow= X-Google-Smtp-Source: AMrXdXuBV5OtKRFaGUtDjTcIepQadHAk4rSNSkKlpvQ2Iiwchkhzn4to469MUKNbjQMd/BQMgJSiBQ== X-Received: by 2002:a05:6000:98d:b0:2bd:c6ce:7bfb with SMTP id by13-20020a056000098d00b002bdc6ce7bfbmr37700196wrb.28.1674770754092; Thu, 26 Jan 2023 14:05:54 -0800 (PST) Original-Received: from smtpclient.apple (2a01cb0087aeda00ac73b180707c07b6.ipv6.abo.wanadoo.fr. [2a01:cb00:87ae:da00:ac73:b180:707c:7b6]) by smtp.gmail.com with ESMTPSA id r7-20020a5d52c7000000b002bdf5832843sm2316093wrv.66.2023.01.26.14.05.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2023 14:05:53 -0800 (PST) In-Reply-To: <9b1c62d7-833b-f81e-0f49-88df0e84ea6f@freedom.nl> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:116916 Archived-At: --===============6779758041480227362== Content-Type: multipart/alternative; boundary="Apple-Mail=_329976BD-E25F-447A-AED2-95DBC82FD571" --Apple-Mail=_329976BD-E25F-447A-AED2-95DBC82FD571 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Hans and Mikael, Thank you both for your attention to my reply and the clarification and = hints regarding the comman \colonequals and=20 \setupmathematics[autospacing=3Dyes] Indeed the command \colonequals give the precise expected alignment for = the combination glyph =C2=AB :=3D =C2=BB. Befors changing the = combination =C2=AB :=3D =C2=BB to \columnequals in my documents, I am = wondering whether one could add a small lua code in order to make an = automatic replacement at run time. Actually, since I don=E2=80=99t know = of any other instance in which the combination =C2=AB :=3D =C2=BB is = used to mean something else, would it not be reasonnable to make =C2=AB = :=3D =C2=BB synonym to \colonequals? I played a little bit with=20 \setupmathematics[autospacing=3Dyes] and it seems to me that without this command one gets automatic spacing = in math mode, while with the above command the spacing obeys what has = been inserted in the source. Is this behaviour intended, or is there a = mismatch between=20 \setupmathematics[autospacing=3Dyes] and \setupmathematics[autospacing=3Dno] Best regards: Otared > On 26 Jan 2023, at 10:33, Hans Hagen via ntg-context = > wrote: >=20 > On 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote: >> On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context >> > wrote: >>>=20 >>> Hi, >>>=20 >>> Thanks Hraban for the information and the link to the article by = Hans and Mikael about the math fonts in Lucida. >>>=20 >>> I very much appreciated that article: one sees how the handling of = almost impercebtile details in ConTeXt make us to adhere to and love = LuaMetaTeX=E2=80=A6 So a great thank you to Hans and Mikael for all this = work! >>>=20 >>> Regarding the details of vertical alignment in math, I wonder = whether the column =C2=AB : =C2=BB in front of the equal sign =C2=AB =3D = =C2=BB, in the combination =C2=AB :=3D =C2=BB (used to define for = instance a new variable) should be alos centered around the math axis, = as explained in the article. For instance in the following example >>>=20 >>> \setupbodyfont[lucidaot,12pt] >>> \starttext >>> \startformula >>> f(x) :=3D -(u|x) :=3D - \langle u, x \rangle >>> \stopformula >>> \stopformula >>> \startformula >>> f : A \longrightarrow B >>> \stopformula >>> \stoptext >>>=20 >>> it seems to me that the lower dot (or square=E2=80=A6) in the = semicolumn of the first formula (in front of the equal sign) is lower = than in the second formula. >>>=20 >>> Best regards: Otared >> Thank you for the kind words, Otared, >> Regarding the colons (and other symbols with "dots"), I would say it >> is still not optimal in Lucida (and difficult to make it = "consistent", >> there are too many symbols that are at the moment different). But in >> your example you can use \colonequals and \colon if you prefer. They >> are centered around the math axis. >> Best, Mikael >> \setupbodyfont[lucidaot,12pt] >> \starttext >> \startformula >> f(x) :=3D -(u|x) \colonequals - \langle u, x \rangle >> \stopformula >> \startformula >> f : A \longrightarrow B \breakhere >> f \colon A \longrightarrow B >> \stopformula >> \startformula >> \mathaxisbelow :=3D \colonequals : \colon >> \stopformula >> \stoptext > There is a (experimental as we played with it and then got distracted) = feature that makes some symbols adapt to spacing in the input. >=20 > \starttext >=20 > \setupmathematics[autospacing=3Dyes] >=20 > \setupmathematics[collapsing=3D2] >=20 > \im{A:B} and \im{A : B}\par > \im{A:=3DB} and \im{A :=3D B}\par > \im{A\colonequals B} and \im{A {\colonequals} B}\par >=20 > \stoptext >=20 > the second line is not yet ok as collapsing the :=3D (old feature) = comes at the wrong time when we do autospacing (something Mikasl and I = now need to discuss and test) >=20 > This autospacing is part of some larger effort, for instance we can = also auto handle fences and so. All this relates to minimizing the input = and make it a bit more natural. Think (1,2) vb (1, 2) where we - due to = the many more classes that we have - want spacing to be right. >=20 > All will be revealed in the upcoming releases and the upcoming 3145 = page math manual. >=20 > Hans >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl = | www.pragma-pod.nl = > ----------------------------------------------------------------- >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_329976BD-E25F-447A-AED2-95DBC82FD571 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hi Hans and = Mikael,

Thank you = both for your attention to my reply and the clarification and hints = regarding the comman \colonequals and 
= \setupmathematics[autospacing=3Dyes]

Indeed the command \colonequals give = the precise expected alignment for the combination glyph =C2=AB :=3D =C2=BB= . Befors changing the combination =C2=AB :=3D =C2=BB to \columnequals in = my documents, I am wondering whether one could add a small lua code in = order to make an automatic replacement at run time. Actually, since I = don=E2=80=99t know of any other instance in which the combination =C2=AB = :=3D =C2=BB is used to mean something else, would it not be reasonnable = to make =C2=AB :=3D =C2=BB synonym to \colonequals?

I played a little bit = with 
= \setupmathematics[autospacing=3Dyes]
and it = seems to me that without this command one gets automatic spacing in math = mode, while with the above command the spacing obeys what has been = inserted in the source. Is this behaviour intended, or is there a = mismatch between 
= \setupmathematics[autospacing=3Dyes]
and
= \setupmathematics[autospacing=3Dno]

Best regards: Otared


On 26 Jan 2023, at 10:33, Hans = Hagen via ntg-context <ntg-context@ntg.nl> wrote:

On = 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote:
On Wed, Jan 25, 2023 at = 11:02 AM Otared Kavian via ntg-context
<ntg-context@ntg.nl> = wrote:

Hi,

Thanks Hraban for the = information and the link to the article by Hans and Mikael about the = math fonts in Lucida.

I very much = appreciated that article: one sees how the handling of almost = impercebtile details in ConTeXt make us to adhere to and love = LuaMetaTeX=E2=80=A6 So a great thank you to Hans and Mikael for all this = work!

Regarding the details of vertical = alignment in math, I wonder whether the column =C2=AB : =C2=BB in front = of the equal sign =C2=AB =3D =C2=BB, in the combination =C2=AB :=3D =C2=BB= (used to define for instance a new variable) should be alos centered = around the math axis, as explained in the article. For instance in the = following example

\setupbodyfont[lucidaot,12pt]
\starttext
\startformula
f(x) :=3D -(u|x) :=3D - \langle = u, x \rangle
\stopformula
\stopformula
\startformula
f : A \longrightarrow B
\stopformula
\stoptext

it seems to me that the lower dot (or square=E2=80=A6) in the = semicolumn of the first formula (in front of the equal sign) is lower = than in the second formula.

Best regards: = Otared
Thank you for the kind words, = Otared,
Regarding the colons (and other symbols with = "dots"), I would say it
is still not optimal in Lucida = (and difficult to make it "consistent",
there are too many = symbols that are at the moment different). But in
your = example you can use \colonequals and \colon if you prefer. They
are centered around the math axis.
Best, = Mikael
\setupbodyfont[lucidaot,12pt]
\starttext
\startformula
f(x) :=3D = -(u|x) \colonequals - \langle u, x \rangle
\stopformula
\startformula
f : A \longrightarrow B = \breakhere
f \colon A \longrightarrow B
\stopformula
\startformula
\mathaxisbelow :=3D \colonequals : \colon
\stopformula
\stoptext
There is a (experimental as we played with it = and then got distracted) feature that makes some symbols adapt to = spacing in the input.

\starttext

=    \setupmathematics[autospacing=3Dyes]

   \setupmathematics[collapsing=3D2]

   \im{A:B} and \im{A : = B}\par
   \im{A:=3DB} and \im{A :=3D = B}\par
   \im{A\colonequals B} and \im{A = {\colonequals} B}\par

\stoptext

the second line is not yet ok as collapsing = the :=3D (old feature) comes at the wrong time when we do autospacing = (something Mikasl and I now need to discuss and test)

This autospacing is part of some larger effort, for instance = we can also auto handle fences and so. All this relates to minimizing = the input and make it a bit more natural. Think (1,2) vb (1, 2) where we = - due to the many more classes that we have - want spacing to be = right.

All will be revealed in the upcoming = releases and the upcoming 3145 page math manual.

Hans

---------------------------------------------------------------= --
=             &n= bsp;           &nbs= p;            =     Hans Hagen | PRAGMA ADE
=             &n= bsp;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
_______________________________________________________________= ____________________

Otared Kavian
Phone: +33 6 88 26 70 = 95




= --Apple-Mail=_329976BD-E25F-447A-AED2-95DBC82FD571-- --===============6779758041480227362== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6779758041480227362==--