From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Charting module
Date: Mon, 10 Sep 2001 23:01:34 +0200 [thread overview]
Message-ID: <5.1.0.14.1.20010910222919.025619e8@server-1> (raw)
In-Reply-To: <11821851225.20010909190227@bigfoot.com>
[-- Attachment #1: Type: text/plain, Size: 2430 bytes --]
Hi,
I'm willing to look into extensions later this year but we should then
collect the wishes first. I know that for instance Tobias has some wishes
with regards to straight lines [not that complicated] and i'm sure that
Willy has some too.
while with half-grid steps I could put the intermediate link box 0
>(which btw shows as an empty dot; how to make it disappear so that
i see no quick hack [have to print the module] for the dot.
>A second question is about connection points. Despite the
>recommendations in the manual about trying to avoid multiple
>(outgoing) links per side (using e.g. [-b] or [+b]), I find this
>possibility helpful, and actually essential in the above mentioned
>example, where "Box 1" has two connection at the bottom (left and
>right). (Yes I know I should rearrange the chart, but I don't want
>to; I prefer it this way.)
this looks doable and is mostly a matter of interfacing
>However, these connections are too spaced away, because they are
>at about 1/4, 3/4 of the side, which is essential if a third
>connection (midpoint) is used, but sub-optimal when only two
>connections are used (a better positioning in this case would be
>to use a 1/3, 2/3 spacing). The suggestion resolves finally in
>either giving the user the possibility to control position of the
>connection points, or providing automatically the best position
>depending on how many connection points are actually used. (And
>what about allowing the users to have "as many connection points
>per side as desired"? Imagine a (horrible?) thing with five
>connection points: ++b, +b, b, -b, --b !)
horrible indeed but 1 / 2 / 3 / 5 connections as option are ok
>Finally: why do corner radius and arrow size share the same value?
>Is there a way to change the value for some connections only and
>activate/deactivate arrows for specific connections? is there a
>way to force a straight arrow even when by default it would come
>out bended?
i suppose that you looked into m-chart -) most is configurable in the mp
module, so again it's mostly a matter of interfacing [and lazyness of me]
concerning changes in settings: you can change them in the flow and use
grouping if needed, so you can have one connection with arrows and another
with no arrows.
Also: for lovers of <angle brackets> i have a xml interface to flowcharts;
combined with mathml and stepcharts and alike, this gives impressive chunks
of xml
Hans
[-- Attachment #2: demo-001.tex --]
[-- Type: text/plain, Size: 2862 bytes --]
% output=pdftex interface=en
\usemodule[chart,mathml,steps]
\setupcolors[state=start] \setupbodyfont[lbr,8pt]
\setuplayout[width=middle,height=middle,backspace=1cm,topspace=1cm,header=0pt,footer=0pt]
\startbuffer[xml]
<flowchartdefinition identifier="test">
<?context-flowchart-directive lines color darkgreen ?>
<flowcell>
<name> tex </name>
<location> <x> 1 </x> <y> 1 </y> </location>
<shape> action </shape>
<text> &tex; </text>
<connection> <type> rl </type> <name> context </name> </connection>
</flowcell>
<?context-begin-group a very important cell ?>
<?context-flowchart-directive shapes framecolor darkred ?>
<flowcell>
<?context-flowchart-directive lines color darkyellow ?>
<name> context </name>
<location> <x> 2 </x> <y> 1 </y> </location>
<shape> action </shape>
<text>
<stepchart>
<cell> one </cell> <text> even </text>
<cell> two </cell> <text> odd </text>
<cell> three </cell>
</stepchart>
</text>
<connection> <type> rl </type> <name> rubish </name> </connection>
</flowcell>
<?context-end-group a very important cell ?>
<flowcell>
<name> rubish </name>
<location> <x> 1 </x> <y> 2 </y> </location>
<shape> action </shape>
<text> <m> 1+2=3 </m> </text>
<connection> <type> rl </type> <name> another </name> </connection>
</flowcell>
<flowcell>
<?context-flowchart-directive lines color darkblue ?>
<name> another </name>
<location> <x> 2 </x> <y> 2 </y> </location>
<shape> action </shape>
<text>
<math> <apply> <sin/> <apply> <plus/>
<cn> 2 </cn> <ci> a </ci>
</apply> </apply> </math>
</text>
<connection> <type> bt </type> <name> tex </name> </connection>
</flowcell>
</flowchartdefinition>
<flowchart identifier="test"/>
\stopbuffer
\startbuffer[tex]
\startFLOWchart [test]
\setupFLOWlines[color=darkgreen]
\startFLOWcell
\name{tex}
\location{1,1}
\shape{action}
\text{\TeX}
\connect[rl]{context}
\stopFLOWcell
\start
\setupFLOWshapes[framecolor=darkred]
\startFLOWcell
\setupFLOWlines[color=darkyellow]
\name{context}
\location{2,1}
\shape{action}
\text
{\startSTEPchart
\cell{one} \text{even}
\cell{two} \text{odd}
\cell{three}
\stopSTEPchart}
\connect[rl]{rubish}
\stopFLOWcell
\stop
\startFLOWcell
\name{rubish}
\location{1,2}
\shape{action}
\text{$1+2=3$}
\connect[rl]{another}
\stopFLOWcell
\startFLOWcell
\setupFLOWlines[color=darkblue]
\name{another}
\location{2,2}
\shape{action}
\text{$\sin(2+a)$}
\connect[bt]{tex}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[test]
\stopbuffer
\starttext
\processXMLbuffer[xml] \typebuffer[xml] \page
\getbuffer[tex] \typebuffer[tex]
\stoptext
[-- Attachment #3: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
prev parent reply other threads:[~2001-09-10 21:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 17:02 Giuseppe Bilotta
2001-09-10 20:18 ` Hans Hagen
2001-09-11 12:38 ` Re[2]: " Giuseppe Bilotta
2001-09-12 6:28 ` Hans Hagen
2001-09-10 21:01 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20010910222919.025619e8@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).