From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111556 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: mathcolor attribute in MathML (mkiv) Date: Thu, 27 May 2021 18:07:55 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1145081806093360633==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu May 27 19:08:52 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 1lmJV6-0007qR-A9 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 27 May 2021 19:08:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AEC4E283DFF; Thu, 27 May 2021 19:08:16 +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 vacFky0cTwK2; Thu, 27 May 2021 19:08:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C961E283E1F; Thu, 27 May 2021 19:08:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 50E70283E16 for ; Thu, 27 May 2021 19:08:13 +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 M7dAzEXaRyan for ; Thu, 27 May 2021 19:08:12 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.49; helo=mail-lf1-f49.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 D45F5283DFF for ; Thu, 27 May 2021 19:08:11 +0200 (CEST) Original-Received: by mail-lf1-f49.google.com with SMTP id q7so1142760lfr.6 for ; Thu, 27 May 2021 10:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xmAwLe+JaCDNxlMgKeh3dZJTmJSweQqesErQyy1Terc=; b=JoruVw2U0b5++N8OSY+IprkKJl3104LXyn8ZmFKOdwSyYP3eMNLN4hrlUW9Pt6y6Sm qe2nJqsfEJxOh0rwBG/O2BZPWks/XOhY4A268cEBdF9Ma4fr6t8MsS9RAOVnqz8I3SBm g6+an56Mtm21A/dfM71L7CGz1w+3YTHY1TU1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xmAwLe+JaCDNxlMgKeh3dZJTmJSweQqesErQyy1Terc=; b=f3Ygg1qN2MFFiNiYDXLdcZnnCpUuDt9hQzmnZVFlH6uzF2ahbrhOw2AXzjG58Fkfoj AwNWnlIXriGEWDbv7gfO55JGDKS5zCN4aEfWkRbnMUa1N1HWFFaZEXkLujEq/TYDaP+m 8pu8fmV9XqjyrgwJoodYvRiZjHXLX8DkUQ8YjyCQIcVg0P5SkaAmnJXFFrJ8AW9Iqn+V PdJUNVdjMFCoQnnxJ3gRFnQgF2Nr/ZRWR5y0ibdmqx7lwNG9KqsGyBjkL/qj1Wwfc+6o 8wnYFCuOXgxiQHyRX/CQbfnqkRJslOwSP9XEqfNnXrFfWXDSqzChuifuwnM176ldVCES MCgg== X-Gm-Message-State: AOAM532jI5zU7fTfVDoPgjrlwaO1HPDmxJ6DnzJYsxQfg4boyEFoJw+K qKTCRm7+2SFzvrPTenGt2jlu5VkH/6m78aBPiUQp7w== X-Google-Smtp-Source: ABdhPJzZJAdCEeYpZ5YRky5ipW9bT1X8kVLz3x+usqcHjW1dY2QCIDBXmhdKbyIkS3ndMO23iWNUCeVWWQSzhlNKuXw= X-Received: by 2002:a19:c710:: with SMTP id x16mr3009721lff.533.1622135291093; Thu, 27 May 2021 10:08:11 -0700 (PDT) In-Reply-To: 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:111556 Archived-At: --===============1145081806093360633== Content-Type: multipart/alternative; boundary="000000000000cdbc3505c352cd53" --000000000000cdbc3505c352cd53 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Understood and appreciated, Hans, and many thanks for the patch which I will be testing shortly. Completely agree re the real world of MathML. We are still converting our MathML masters to other formats after many years for various uses and fixes because of the situation you describe with patchy and dodgy support especially in the browser world. Maths on the web is still a little bit wild west. Thanks again. Duncan On Thu, 27 May 2021 at 18:00, Hans Hagen wrote: > On 5/27/2021 6:30 PM, Duncan Hothersall wrote: > > Apologies Hans. > > > > MWE: > > > > \usemodule[newmml] > > \starttext > > \xmlprocessdata{}{ > > > '> > > E > > > > =CF=80 > > > > > > }{} > > \stoptext > > > > The =CF=80 symbol does not show in red. > Kind of trivial ... i'll send you a patched module. > > If you want you can check with the standard and see where we need to add > it. I'll then adapt the mkiv file before taking a look at upgrading the > lmtx one. > > For decades this mathml stuff has been a bit of a pain, because when one > uses it for a mixed web / text project one always needs to satisfy the > latest greatest either or not bugged web rendering, it disappearing from > browsers, coming back, rendered remote or in the browser, mixed > (in/with) asciimath which has its own tweaks. A pitty that content > mathml never took off, probbably also due to the failure of openmath > which took away attention from it and that we actually sort of > support(ed). So when it comes to (reasonable quality) rendering in print > one always runs a bit behind. > > I'm also always a bit hesitant to touch the code because it's actually > used by a collegue in some (zero budget, so me looking at the mml is > just hobbying) projects concerning math school books where often the web > part controls the limitations and enforces weird coding (tens of > thousands of files with plenty mathml). Btw, especially symbols are a > mess and interfere with assumed structure, so that's always tricky to > touch. Especially when you want to have it specific for (mid/high) > school math. > > But anyway things like a bit of color and so are not that hard to > support (more a matter of making sure performance is not hit). > > 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 > ----------------------------------------------------------------- > --=20 Duncan Hothersall, Operations Director CAPDM Limited - Online Program Enablers 0131 677 2400 www.capdm.com Registered in Scotland: SC168970 VAT: 682 846 983 Registered address: 20 Forth Street Edinburgh EH1 3LH UK Capture, author, publish, deliver and manage your learning materials. *Sign up to the CAPDM newsletter here * --000000000000cdbc3505c352cd53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Understood and appreciated, Hans, and many thanks for the = patch which I will be testing shortly.

Completely agree = re the real world of MathML. We are still converting our MathML masters to = other formats after many years for various uses and fixes because of the si= tuation you describe with patchy and dodgy support especially in the browse= r world. Maths on the web is still a little bit wild west.

Thanks again.

Duncan

On Thu, 27 May = 2021 at 18:00, Hans Hagen <j.hagen@= xs4all.nl> wrote:
On 5/27/2021 6:30 PM, Duncan Hothersall wrote:
> Apologies Hans.
>
> MWE:
>
> \usemodule[newmml]
> \starttext
> \xmlprocessdata{}{<formula>
>=C2=A0 =C2=A0<math xmlns=3D'http://www.w3.org/1998/Math= /MathML
> <http://www.w3.org/1998/Math/MathML>'>
>=C2=A0 =C2=A0 <mi>E</mi>
>=C2=A0 =C2=A0 <mfenced>
>=C2=A0 =C2=A0 =C2=A0 <mo mathcolor=3D"red">=CF=80</m= o>
>=C2=A0 =C2=A0 </mfenced>
>=C2=A0 =C2=A0</math>
> </formula>}{}
> \stoptext
>
> The=C2=A0=CF=80 symbol does not show in red.
Kind of trivial ... i'll send you a patched module.

If you want you can check with the standard and see where we need to add it. I'll then adapt the mkiv file before taking a look at upgrading the=
lmtx one.

For decades this mathml stuff has been a bit of a pain, because when one uses it for a mixed web / text project one always needs to satisfy the
latest greatest either or not bugged web rendering, it disappearing from browsers, coming back, rendered remote or in the browser, mixed
(in/with) asciimath which has its own tweaks. A pitty that content
mathml never took off, probbably also due to the failure of openmath
which took away attention from it and that we actually sort of
support(ed). So when it comes to (reasonable quality) rendering in print one always runs a bit behind.

I'm also always a bit hesitant to touch the code because it's actua= lly
used by a collegue in some (zero budget, so me looking at the mml is
just hobbying) projects concerning math school books where often the web part controls the limitations and enforces weird coding (tens of
thousands of files with plenty mathml). Btw, especially symbols are a
mess and interfere with assumed structure, so that's always tricky to <= br> touch. Especially when you want to have it specific for (mid/high)
school math.

But anyway things like a bit of color and so are not that hard to
support (more a matter of making sure performance is not hit).

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
-----------------------------------------------------------------


--
Duncan Hothersall,= Operations Director
= CAPDM Limited - Online Program Enablers
0131 677 2400= =C2=A0=C2=A0www.capdm.com
Registered in Scotland: SC168970=C2=A0 =C2=A0 =C2=A0 =C2=A0VA= T: 682 846 983
Registered address:=C2=A020 = Forth Street Edinburgh EH1 3LH UK

Capture,= author, publish, deliver and manage your learning materials.
--000000000000cdbc3505c352cd53-- --===============1145081806093360633== 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== --===============1145081806093360633==--