From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27680 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt + MetaUML Date: Sat, 06 May 2006 12:33:36 +0200 Message-ID: <445C7B80.1010309@nibua-r.org> References: <445772F1.5010605@nibua-r.org> <44590A0D.9020302@wxs.nl> <445918DA.2080209@nibua-r.org> <445B2AA2.2040703@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1926627921==" X-Trace: sea.gmane.org 1146911658 6627 80.91.229.2 (6 May 2006 10:34:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 May 2006 10:34:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat May 06 12:34:16 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FcK6z-0004CH-D8 for gctc-ntg-context-518@m.gmane.org; Sat, 06 May 2006 12:34:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4B54127C6; Sat, 6 May 2006 12:34:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29054-06; Sat, 6 May 2006 12:34:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D71E12780; Sat, 6 May 2006 12:34:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C97D12780 for ; Sat, 6 May 2006 12:34:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29018-09 for ; Sat, 6 May 2006 12:34:01 +0200 (CEST) Original-Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by ronja.ntg.nl (Postfix) with SMTP id 3181212778 for ; Sat, 6 May 2006 12:34:01 +0200 (CEST) Original-Received: (qmail 28167 invoked by uid 503); 6 May 2006 10:35:15 -0000 Original-Received: from b7.ovh.net (HELO mail138.ha.ovh.net) (213.186.33.57) by 27.mail-out.ovh.net with SMTP; 6 May 2006 10:35:15 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 6 May 2006 10:33:34 -0000 Original-Received: from mail138.ha.ovh.net (10.0.50.138) by mail138.ha.ovh.net with SMTP; 6 May 2006 10:33:30 -0000 Original-Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 6 May 2006 10:33:30 -0000 Original-Received: from d213-103-222-44.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@213.103.222.44) by ns0.ovh.net with SMTP; 6 May 2006 10:33:29 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <445B2AA2.2040703@wxs.nl> X-Ovh-Remote: 213.103.222.44 (d213-103-222-44.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.5|H 0.5 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27680 Archived-At: This is a multi-part message in MIME format. --===============1926627921== Content-Type: multipart/alternative; boundary="------------010202080102060907070907" This is a multi-part message in MIME format. --------------010202080102060907070907 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, Ovidiu Gheorghies has sent to me an intermediate-release yesterday, I'll test it and if same problems occur I'll try to modify the metauml structure by myself in interaction with Ovidiu (according th Hans's advic= e). I'll do that as soon as I have the time... ;) Cheers, Renaud Hans Hagen a =E9crit : >Renaud AUBIN wrote: > =20 > >>Hi Hans, >> >>The example with clearboxes's crash: >> =20 >> >this is probably due to the fact that clearboxes hooks into endfig > > >\setupoutput[pdftex] > >\starttext > >\startMPinclusions > input boxes; >\stopMPinclusions > >\startuseMPgraphic{my_uml_figure} >input metauml; > >Class.A("Point") > ("+x: int", > "+y: int") (); > >Class.B("Circle") > ("radius: int") > ("+getRadius(): int", > "+setRadius(r: int):void"); > >topToBottom(45)(A, B); > >drawObjects(A, B); > >clink(aggregationUni)(A, B); >\stopuseMPgraphic > >\placefigure[here]{none}{\useMPgraphic{my_uml_figure}} > >\stoptext > >this only works when in boxes.mp, we have: > >extra_beginfig :=3D extra_beginfig > & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=3Denddef;"; >extra_endfig :=3D extra_endfig & " clearboxes"; > >(space added before clearboxes in string) > >(maybe i should clean up boxes.mp and preload that in metafun if only i=20 >know what it's meant for) > >i suggest that you contact the author of metauml: > >- rename the util_* files into metauml_util_* in order to prevent=20 >clashes with other util_* files >- load all files into the main file, so that you get rid of the=20 >redundant file reads (loading quits when the files are already=20 >loaded,but best do some testing before they are input) >- provide a metauml_preload.mp file that preloads e.g. boxes.mp so that=20 >you can do > >\startMPinclusions > input metauml_preload; >\stopMPinclusions > >\startuseMPgraphic{my_uml_figure} >input metauml; >\stopuseMPgraphic > >- provide "load_metauml" that loads once only, so that you can do > >\startMPinclusions > input metauml_preload; >\stopMPinclusions > >\startuseMPgraphic{my_uml_figure} >load_metauml; >\stopuseMPgraphic > >\startuseMPgraphic{my_second_uml_figure} >load_metauml; >\stopuseMPgraphic > >and get only one load when you collect graphics instead of runtime=20 >processing > >Hans > > >----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl >----------------------------------------------------------------- > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > > > =20 > --------------010202080102060907070907 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all,

Ovidiu Gheorghies has sent to me an intermediate-release yesterday, I'll test it and if same problems occur I'll try to modify the metauml structure by myself in interaction with Ovidiu (according th Hans's advice).

I'll do that as soon as I have the time... ;)

Cheers,

Renaud


Hans Hagen a écrit :
Renaud AUBIN wrote:
  
Hi Hans,

The example with clearboxes's crash:
    
this is probably due to the fact that clearboxes hooks into endfig


\setupoutput[pdftex]

\starttext

\startMPinclusions
 input boxes;
\stopMPinclusions

\startuseMPgraphic{my_uml_figure}
input metauml;

Class.A("Point")
       ("+x: int",
        "+y: int") ();

Class.B("Circle")
       ("radius: int")
       ("+getRadius(): int",
        "+setRadius(r: int):void");

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);
\stopuseMPgraphic

\placefigure[here]{none}{\useMPgraphic{my_uml_figure}}

\stoptext

this only works when in boxes.mp, we have:

extra_beginfig := extra_beginfig
  & "boxjoin();save pic_,sproc_,pproc_;def clearboxes=enddef;";
extra_endfig := extra_endfig & " clearboxes";

(space added before clearboxes in string)

(maybe i should clean up boxes.mp and preload that in metafun if only i 
know what it's meant for)

i suggest that you contact the author of metauml:

- rename the util_* files into metauml_util_* in order to prevent 
clashes with other util_* files
- load all files into the main file, so that you get rid of the 
redundant file reads (loading  quits when the files are already 
loaded,but best do some testing before they are input)
- provide a metauml_preload.mp file that preloads e.g. boxes.mp so that 
you can do

\startMPinclusions
 input metauml_preload;
\stopMPinclusions

\startuseMPgraphic{my_uml_figure}
input metauml;
\stopuseMPgraphic

- provide "load_metauml" that loads once only, so that you can do

\startMPinclusions
 input metauml_preload;
\stopMPinclusions

\startuseMPgraphic{my_uml_figure}
load_metauml;
\stopuseMPgraphic

\startuseMPgraphic{my_second_uml_figure}
load_metauml;
\stopuseMPgraphic

and get only one load when you collect graphics instead of runtime 
processing

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  

--------------010202080102060907070907-- --===============1926627921== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1926627921==--