From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82479 Path: news.gmane.org!not-for-mail From: "Keith J. Schultz" Newsgroups: gmane.comp.tex.context Subject: MPLibrabray "txt" broken!? Date: Tue, 14 May 2013 14:23:35 +0200 Message-ID: <5D530638-CD82-4756-A842-7CFA967D3008@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/mixed; boundary="===============0064192032==" X-Trace: ger.gmane.org 1368534238 3868 80.91.229.3 (14 May 2013 12:23:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 May 2013 12:23:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 14 14:23:56 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcEGo-0006HD-Q7 for gctc-ntg-context-518@m.gmane.org; Tue, 14 May 2013 14:23:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB2B9101EF; Tue, 14 May 2013 14:23:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GSN8Li-qWlBI; Tue, 14 May 2013 14:23:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7CC8D101E7; Tue, 14 May 2013 14:23:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B72E0101E7 for ; Tue, 14 May 2013 14:23:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tqfRQGKSONg6 for ; Tue, 14 May 2013 14:23:48 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 8B1A7101E0 for ; Tue, 14 May 2013 14:23:38 +0200 (CEST) Original-Received: from mout.web.de (mout.web.de [212.227.17.11]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4ECNbGK006585 for ; Tue, 14 May 2013 14:23:37 +0200 Original-Received: from [10.0.62.5] ([84.58.253.171]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MINMF-1UfFCh418x-003y7i for ; Tue, 14 May 2013 14:23:37 +0200 X-Mailer: Apple Mail (2.1503) X-Provags-ID: V02:K0:dYzNC6k6KyjFFolDhY+Z4UxJTqpGbyPWqGs/YZ4Jnxh RYoljB0ylF3TAqu649IqPqN2uY8Jvzta327heCVVnF+Ju3u4mh vSudW+IWTIXMXUVsMZ25KE+radhYuV9dtpqWml7YFJXlqIT40H e6KW9WBJyMDffCwtlVY892uHfg1dL6DXGfUsMrSD6Bxt623dnk PQ1eYg76dLkXp+fs9dbvQ== X-Bayes-Prob: 0.8941 (Score 2, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.11; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJzMnBRk - 542b8337501e - 20130514 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82479 Archived-At: --===============0064192032== Content-Type: multipart/alternative; boundary="Apple-Mail=_ECA05FD6-EBF7-408F-B5BE-1D0C79E19AFE" --Apple-Mail=_ECA05FD6-EBF7-408F-B5BE-1D0C79E19AFE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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:=20 -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 :=3D ((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=3D10pt] \starttext \startshapetext[shape] \input knuth \endgraf \stopshapetext % The \type{background} is set only to visualize the parshape \startTEXpage[background=3Dshape,offset=3D2mm] {\getshapetext} \stopTEXpage \stoptext= --Apple-Mail=_ECA05FD6-EBF7-408F-B5BE-1D0C79E19AFE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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
How can it = be the file test2-mograph.mpd was used from the TexLive 2012

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 :=3D ((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}]

<= /div>
\setupshapetexts%
  = [bodyfont=3D10pt]

\starttext
\startshap= etext[shape]
  \input knuth = \endgraf
\stopshapetext


= % The \type{background} is set only to visualize the = parshape
\startTEXpage[background=3Dshape,offset=3D2mm]
{\getshapetext}
\stopTEXpage
\stoptext
<= /html>= --Apple-Mail=_ECA05FD6-EBF7-408F-B5BE-1D0C79E19AFE-- --===============0064192032== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0064192032==--