Hi All, Hans,

I want to use  build_parshape and shapetext with the latest standalone
ConTeXt  ver: 2013.05.12 22:16 MKIV beta  fmt: 2013.5.13  int: english/english

with the Example below I get a small box with the top part of a T in it.

Interresting enough the example works with the TexLive 2012 version!

Running with latest standalone the following files are created: 
-rw-r--r--  1 staff  14410 14 Mai 13:59 test2.log
-rw-r--r--  1 staff   5132 14 Mai 13:59 test2.pdf
-rw-r--r--  1 staff    634 14 Mai 13:59 test2.synctex.gz
-rw-r--r--@ 1 staff    899 14 Mai 13:37 test2.tex
-rw-r--r--  1 staff   8413 14 Mai 13:59 test2.tuc

Using MkIV from TeXLive 2012 the following files are created:
-rw-r--r--  1 staff    561 14 Mai 14:09 test2-mpgraph.mpd
-rw-r--r--  1 staff  19404 14 Mai 14:09 test2.log
-rw-r--r--  1 staff   9638 14 Mai 14:09 test2.pdf
-rw-r--r--  1 staff   3237 14 Mai 14:09 test2.synctex.gz
-rw-r--r--@ 1 staff    899 14 Mai 13:37 test2.tex
-rw-r--r--  1 staff   6079 14 Mai 14:09 test2.tuc

And all is well!

Goofy as I am I tried the standalone again, this works only
partially because the text is not aligned properly.
How can it be the file test2-mograph.mpd was used from the TexLive 2012
version!

So something is astray! I do know that we are using a newer Metapost, but
I assume the problem is the library or how the temporary files are generated
or used.

Any help would be nice.

regards
Keith.

\useMPlibrary[txt]

\startuseMPgraphic{shape}
  % Shape of the paragraph
  path p ; p := ((0,1)..(-1,0)..(1,0)--cycle) scaled 5cm ;

  build_parshape
  ( p,                     % shape path
   .5*\baselinedistance,  % offset
   .5*\baselinedistance,  % x offset
   .5*\baselinedistance,  % y offset
   \baselinedistance,     % distance between lines
   \strutheight,          % height of a line
   \strutdepth,           % depth of a line
   \strutheight           % height of the first line
  ) ;

  % For visualization purposes only
  draw p ;
\stopuseMPgraphic

% For visualization purposes only
\defineoverlay[shape][\useMPgraphic{shape}]

\setupshapetexts%
  [bodyfont=10pt]

\starttext
\startshapetext[shape]
  \input knuth \endgraf
\stopshapetext


% The \type{background} is set only to visualize the parshape
\startTEXpage[background=shape,offset=2mm]
{\getshapetext}
\stopTEXpage
\stoptext