From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102916 Path: news.gmane.org!.POSTED!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: double followtokens? Date: Tue, 1 Jan 2019 19:17:52 +0100 Message-ID: References: <026e5b07-3364-2011-50bf-29a249fb41b7@xs4all.nl> <6a1d4148-1bb5-2633-d9e1-9859c05bb665@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="===============8376703000113332348==" X-Trace: blaine.gmane.org 1546366572 24505 195.159.176.226 (1 Jan 2019 18:16:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2019 18:16:12 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 01 19:16:08 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 esmtp (Exim 4.84_2) (envelope-from ) id 1geOaE-0006Gr-Hy for gctc-ntg-context-518@m.gmane.org; Tue, 01 Jan 2019 19:16:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F4C5BE54C; Tue, 1 Jan 2019 19:17:56 +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 8XZh0j5oHMIs; Tue, 1 Jan 2019 19:17:55 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 53622BE465; Tue, 1 Jan 2019 19:17:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 57664BE465 for ; Tue, 1 Jan 2019 19:17:54 +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 W0UyES-jUsPd for ; Tue, 1 Jan 2019 19:17:53 +0100 (CET) Original-Received: from smtpq3.mnd.mail.iss.as9143.net (smtpq3.mnd.mail.iss.as9143.net [212.54.34.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 877D9BBC0E for ; Tue, 1 Jan 2019 19:17:53 +0100 (CET) Original-Received: from [212.54.34.114] (helo=smtp6.mnd.mail.iss.as9143.net) by smtpq3.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1geObx-0006Uq-9V; Tue, 01 Jan 2019 19:17:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=ziggo.nl; s=201809corplgsmtpnl; h=To:Subject:Date:Mime-Version:Message-Id:From; bh=ok4EPrRH27ubEY4Ibx7sJbXHsT8hIa2WJQ/IBAqVzBw=; b=SELCsfNEMx7Ev1J0UzBHN4InHD 74R7PB1SRewcWLXKtMOxwprUvjB1wJCnsqesn8zmsuWZfyHvJoY18m/6tUF5SyWwyy44P2LOC24bi 2cDepY8w1ol3OtemJQKFZMmV2Dc/i99Mbh8IYMgEb78L1RtDZV9OzMxzWsRCcoHYkyBKNTV1u3oVG 2q4uhjvTby3LZ6Gs5299VzdJihyezfmyV8By1kGjExaIKSfoNrwl6B+D9z1yAvKr7WVeZRXHPngaf SoEdJGrfBY7xstDYbfS7gW40w3dM2xG0Lda8ElyAUVHXBi7TmGNPrQ4LqLEt6ql/wY4PFR2npeR10 8877oaYQ==; Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.21]) by smtp6.mnd.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1geObx-0001Ln-6o; Tue, 01 Jan 2019 19:17:53 +0100 In-Reply-To: X-Mailer: Apple Mail (2.3445.9.1) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=ab0fYigt c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=3JhidrIBZZsA:10 a=YEMqx4UAAAAA:8 a=Uows8UApAAAA:8 a=MiNTnEJAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=vn2sti7V5wjfT4xYF1QA:9 a=QEXdDO2ut3YA:10 a=KUVUyp9iF3ef2q-EXQYA:9 a=O-orBxLmolaE8T-T:21 a=_W_S_7VecoQA:10 a=V0662LiR8DSfwiDagK97:22 a=oX0v64vK4IwbpfTCMRm2:22 a=LmrbSfiT3hecnSZifb5M:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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:102916 Archived-At: --===============8376703000113332348== Content-Type: multipart/alternative; boundary="Apple-Mail=_9165689B-8E8E-46EA-82E7-B4475E0CA511" --Apple-Mail=_9165689B-8E8E-46EA-82E7-B4475E0CA511 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Is followtext(=E2=80=9Cstring=E2=80=9D,path) not yet implemented? Because I get an error when running: \startMPcode path p; p:=3Dreverse halfcircle xyscaled 25mm; draw p; followtext("some text but not that long",p); % <- causes error \stopMPcode Or do I need to call followtext in some other way that is not clear to = me. dr. Hans van der Meer > On 8 Apr 2018, at 16:41, Hans Hagen wrote: >=20 > On 4/8/2018 12:11 AM, Pablo Rodriguez wrote: >> On 04/07/2018 11:25 PM, Hans Hagen wrote: >>> On 4/7/2018 11:04 PM, Pablo Rodriguez wrote: >>>> Dear list, >>>>=20 >>>> I have the following sample: >>>>=20 >>>> \useMPlibrary[txt] >>>>=20 >>>> \starttext >>>>=20 >>>> \startuseMPgraphic{followtokens} >>>> path RotPath ; RotPath :=3D reverse halfcircle ; >>>> % path RotPath ; RotPath :=3D halfcircle rotatedaround (origin, = 180) ; >>>> \stopuseMPgraphic >>>>=20 >>>> \followtokens{Just follow the tokens} >>>> \stoptext >>>>=20 >>>> How can I get both paths (in diverse directions)? >>>>=20 >>>> I would like to repeat the same text twice, separating both = sentences >>>> with a character. >>>>=20 >>>> I have to ask this, beause MetaPost is all Greek to me. >>> i have no clue what you mean but this will change the direction >> Many thanks for your reply, Hans. >> I attach an image of what I mean. >> I want a full circle in two halves with the same duplicated sentence. >> The first one written clockwise and the second one written >> counterclockwise (as in the commented path above). >> I hope it is clearer now. >=20 > path p ; p :=3D reverse halfcircle scaled 5cm ; > path q ; q :=3D reverse halfcircle scaled 5cm rotated 180 ; >=20 > path q ; q :=3D reverse halfcircle scaled 5cm rotated 180 ; >=20 > \followtokens{~this way~} > \followtokens{\reversedtext{~this way~}} >=20 > we will have this in metafun: >=20 > followtext("this way",p) ; >=20 > so that one can do it all in mp ... a nice gimmick for the ctx meeting >=20 > Hans >=20 >=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 > ----------------------------------------------------------------- > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_9165689B-8E8E-46EA-82E7-B4475E0CA511 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Is = followtext(=E2=80=9Cstring=E2=80=9D,path) not yet implemented?

Because I get an error when = running:
\startMPcode
path p; p:=3Dreverse halfcircle xyscaled 25mm; draw = p;
followtext("some text but not that long",p); % <- causes = error
\stopMPcode

Or do I need to call followtext in some = other way that is not clear to me.

dr. Hans van der Meer


On 8 Apr 2018, at 16:41, Hans Hagen <j.hagen@xs4all.nl> = wrote:

On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:
On 04/07/2018 11:25 PM, = Hans Hagen wrote:
On = 4/7/2018 11:04 PM, Pablo Rodriguez wrote:
Dear list,

I have = the following sample:

=    \useMPlibrary[txt]

=    \starttext

=    \startuseMPgraphic{followtokens}
=     path RotPath ; RotPath :=3D reverse halfcircle = ;
    % path RotPath ; RotPath :=3D = halfcircle rotatedaround (origin, 180) ;
=    \stopuseMPgraphic

=    \followtokens{Just follow the tokens}
=    \stoptext

How can I get = both paths (in diverse directions)?

I would = like to repeat the same text twice, separating both sentences
with a character.

I have to ask = this, beause MetaPost is all Greek to me.
i = have no clue what you mean but this will change the direction
Many thanks for your reply, Hans.
I = attach an image of what I mean.
I want a full circle in = two halves with the same duplicated sentence.
The first = one written clockwise and the second one written
counterclockwise (as in the commented path above).
I hope it is clearer now.

   path p ; p :=3D reverse halfcircle scaled = 5cm ;
   path q ; q :=3D reverse = halfcircle scaled 5cm rotated 180 ;

=    path q ; q :=3D reverse halfcircle scaled 5cm rotated = 180 ;

=    \followtokens{~this way~}
=    \followtokens{\reversedtext{~this way~}}

we will have this in metafun:

   followtext("this way",p) ;
so that one can do it all in mp ... a nice gimmick for the = ctx meeting

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 / 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
_______________________________________________________________= ____________________

= --Apple-Mail=_9165689B-8E8E-46EA-82E7-B4475E0CA511-- --===============8376703000113332348== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8376703000113332348==--