Is followtext(“string”,path) not yet implemented?

Because I get an error when running:
\startMPcode
path p; p:=reverse 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 := reverse halfcircle ;
    % path RotPath ; RotPath := 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 := reverse halfcircle scaled 5cm ;
   path q ; q := reverse halfcircle scaled 5cm rotated 180 ;

   path q ; q := 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


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