From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104785 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: metafun 2 Date: Wed, 14 Aug 2019 16:58:18 +0200 Message-ID: References: <174f2ea4-37ef-046c-198b-a9c7b3912e4a@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0286519247746285587==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="231455"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 14 17:02:25 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hxunA-000y34-FG for gctc-ntg-context-518@m.gmane.org; Wed, 14 Aug 2019 17:02:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35210153521; Wed, 14 Aug 2019 16:58:50 +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 h2fUvAjGyiKB; Wed, 14 Aug 2019 16:58:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 39D9715352C; Wed, 14 Aug 2019 16:58:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 938B0153497 for ; Wed, 14 Aug 2019 16:58:46 +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 sMsWL5pwMWgw for ; Wed, 14 Aug 2019 16:58:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.175; helo=mail-qt1-f175.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 78F93153356 for ; Wed, 14 Aug 2019 16:58:45 +0200 (CEST) Original-Received: by mail-qt1-f175.google.com with SMTP id l9so110350902qtu.6 for ; Wed, 14 Aug 2019 07:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UUjT/h4y4kmLD/IcSWQvP6psl+Z7doGvf5UVgAP2DzQ=; b=VVOO66BHTfgRv1eJTJ3/LxbXb0n+yxJuAYvGxivKlKuq+uJu0ThweVvseMaBTmzu6N s4R4yNGh3hkqG5PsaAcA0VBrMUAFlVpndQsm1nuhsDWfpj/4EpIAPh39pOWeJnLbK7dY UJkdw+8z7aOvE87M7aTRYykVrP1vDwTo0M6RRZl3OvmvZuLQ4LMuNAlVfGsf7crrAPy3 +8nZc/BAeCN928yMA3xzl2z6VqEYLCvf6jB0xCcbvAhCioGn7tUhbCxkgi3ZO69IT3ll +DOXq78q7Ki1VK8xBOeZdg6xE8Ofwi2YybP14U0dU95VmhQ9IlsP5qwdU6iMUntKOy7h KYpg== 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; bh=UUjT/h4y4kmLD/IcSWQvP6psl+Z7doGvf5UVgAP2DzQ=; b=PLgTPSbHt2yYr21/ASqCRKJYeSEZnXW5fmZSQwx9Nl9Nrgm9VP7G8ySihNsD5mMRn0 5K+wW/zQyBHyNsHFKegmSA/r0aRvZGNZnd4QkKkW6nt+WA+zjXVJfAmPqSWbDO7ElD/w zoxqaIFpdlhBg/Fsukh1AuxYbnzOm1rPWuf9xuWJcSlt+ToDP1fiHkCh/MBmUdpzuYaG pzec4SDimYqVIwisJhLi/UPtGzt+KSW6ua8BZkODJDO2bSv5u1d6w+zx89cGSXfaISUG yR6Nh3NSOkJ0Nc+7Umf2PHRdEO6KKSKszmZSqrsoA1gftathWftUn8E/dCETe91NKr3W AoSw== X-Gm-Message-State: APjAAAUhcEMCqkbqHPpg/yXFpTmG0MVJzkkZFcQTu/q1qVw9avRMwZ4d vmb1JzxDf+oB7HQhCU//daK3XM87dwckTYvZPat21Q== X-Google-Smtp-Source: APXvYqx2dzRMAZUdW0y/vjltris4VMl0a2btqt2+l8Jr9+F1e2jY61LyI+F1nUje+24NOP3yNmawDn2utnZr8eHZkcc= X-Received: by 2002:ac8:4a12:: with SMTP id x18mr32835465qtq.218.1565794723935; Wed, 14 Aug 2019 07:58:43 -0700 (PDT) In-Reply-To: <174f2ea4-37ef-046c-198b-a9c7b3912e4a@xs4all.nl> 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.org gmane.comp.tex.context:104785 Archived-At: --===============0286519247746285587== Content-Type: multipart/alternative; boundary="0000000000004fb931059014fe2d" --0000000000004fb931059014fe2d Content-Type: text/plain; charset="UTF-8" On Wed, Aug 14, 2019 at 11:55 AM Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface to > some of the old and also new MetaFun code we wonder what kind of > features users would like to see. > > http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf > > As a teaser I uploaded a MyWay document that shows some of what is > coming. All is experimental but it shows the direction. We're talking > ConTeXt LMTX here. For instance, > > draw lmt_outline [ > content = "hello", > kind = "reverse", > fillcolor = "darkred", > drawcolor = "darkblue", > rulethickness = 1/2, > ] ysized h shifted (3.75h,-1.25h) ; > > Wraps all the outline drawing in one macro with a set of options (there > will be xml interface definitions for that). Or take: > > draw lmt_followtext [ > content = "How well does it work {\bf 1}! ", > path = (fullcircle scaled 4cm), > trace = true, > spread = true, > ] ysized 5cm ; > > which is an easier interface to text along a curve. Arrows can be drawn > with > > draw lmt_arrow [ > kind = "draw", > location = "middle", > alternative = "curved", > path = fullcircle > scaled 3cm > shifted (3.5cm,0cm), > ] withcolor "darkblue" ; > > but of course the low level interface with its many variables for > tweaking stays around. Other examples are shown in the mentioned document. > > So the question is: What do you miss in metapost support? Of course it > should fit within the concept, so 'artistic freehand drawings' is not > something that is likely to get interfaced. We are particularly > interested in educational applications, if only because ConTeXt started > out that way. > > 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 / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > Hi, this looks very promising!! Since you ask for feature requests: 1) 3d support. This is of course a very big request, but it would also be useful for many people. 2) About graphing, it would be nice to be able to do contour polots and density plots. I know I asked for contour plots some time ago, and there were some examples, but I don't think there was ever some built in support for it. Maybe that can be done "easy" with help of lua? I guess there exist good algorithms. 3) (small) The possibility to have arrows in coordinate axes. I have not had the possibility to test the new features today, and maybe this is already built in (drawarrow?), but I mention it since I did not see it in the pdf. Again, it is very nice that you work on extending MetaPost/MetaFun further!! /Mikael --0000000000004fb931059014fe2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 14, 2019 at 11:55 AM Hans Hag= en <j.hagen@xs4all.nl> wrote= :
Hi,

In the process of providing an additional (more abstract) interface to
some of the old and also new MetaFun code we wonder what kind of
features users would like to see.

http://www.pragma-ade.com/general/magaz= ines/mag-1104-mkiv.pdf

As a teaser I uploaded a MyWay document that shows some of what is
coming. All is experimental but it shows the direction. We're talking <= br> ConTeXt LMTX here. For instance,

=C2=A0 =C2=A0 =C2=A0draw lmt_outline [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0content=C2=A0 =C2=A0 =C2=A0 =C2=A0=3D &qu= ot;hello",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0kind=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =3D "reverse",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fillcolor=C2=A0 =C2=A0 =C2=A0=3D "da= rkred",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drawcolor=C2=A0 =C2=A0 =C2=A0=3D "da= rkblue",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0rulethickness =3D 1/2,
=C2=A0 =C2=A0 =C2=A0] ysized h shifted (3.75h,-1.25h) ;

Wraps all the outline drawing in one macro with a set of options (there will be xml interface definitions for that). Or take:

=C2=A0 =C2=A0 =C2=A0draw lmt_followtext [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0content =3D "How well does it work {= \bf 1}! ",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path=C2=A0 =C2=A0 =3D (fullcircle scaled = 4cm),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0trace=C2=A0 =C2=A0=3D true,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0spread=C2=A0 =3D true,
=C2=A0 =C2=A0 =C2=A0] ysized 5cm ;

which is an easier interface to text along a curve. Arrows can be drawn with

=C2=A0 =C2=A0 =C2=A0draw lmt_arrow [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0kind=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D "= ;draw",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0location=C2=A0 =C2=A0 =3D "middle&qu= ot;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0alternative =3D "curved",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0path=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D fullc= ircle
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0scaled=C2=A0 3cm
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0shifted (3.5cm,0cm),
=C2=A0 =C2=A0 =C2=A0] withcolor "darkblue" ;

but of course the low level interface with its many variables for
tweaking stays around. Other examples are shown in the mentioned document.<= br>
So the question is: What do you miss in metapost support? Of course it
should fit within the concept, so 'artistic freehand drawings' is n= ot
something that is likely to get interfaced. We are particularly
interested in educational applications, if only because ConTeXt started out that way.

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 / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://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: http://contextgarden.net
___________________________________________________________________________= ________

Hi,

t= his looks very promising!!

Since you ask for featu= re requests:

1) 3d support. This is of course a ve= ry big request, but it would also be useful for many people.
2) A= bout graphing, it would be nice to be able to do contour polots and density= plots. I know I asked for contour plots some time ago, and there were some= examples, but I don't think there was ever some built in support for i= t. Maybe that can be done "easy" with help of lua? I guess there = exist good algorithms.
3) (small) The possibility to have arrows = in coordinate axes. I have not had the possibility to test the new features= today, and maybe this is already built in (drawarrow?), but I mention it s= ince I did not see it in the pdf.

Again, it is ver= y nice that you work on extending MetaPost/MetaFun further!!

=
/Mikael=C2=A0
--0000000000004fb931059014fe2d-- --===============0286519247746285587== 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== --===============0286519247746285587==--