diff options
Diffstat (limited to 'tex/context/base/m-chart.tex')
| -rw-r--r-- | tex/context/base/m-chart.tex | 572 | 
1 files changed, 228 insertions, 344 deletions
| diff --git a/tex/context/base/m-chart.tex b/tex/context/base/m-chart.tex index b5defdc8f..17c2e16f0 100644 --- a/tex/context/base/m-chart.tex +++ b/tex/context/base/m-chart.tex @@ -60,8 +60,8 @@  \unprotect -\definesorting [flowchart] [flowcharts] [\v!none] % no access -\setupsorting  [flowchart] [\c!state=\v!stop]     % off by default +\definieersorteren [flowchart] [flowcharts] [\v!geen] % no access +\stelsorterenin    [flowchart] [\c!status=\v!stop]    % off by default  \def\@FLOW@{@FLOW@}  \def\@FLOC@{@FLOC@} @@ -79,7 +79,7 @@  \def\FLOWbufferprefix{flw-} -\def\processFLOWbuffer#1{\getbuffer[\FLOWbufferprefix#1]} +\def\processFLOWbuffer#1{\haalbuffer[\FLOWbufferprefix#1]}  \def\typeFLOWbuffer   #1{\typebuffer[\FLOWbufferprefix#1]}  \def\setFLOWname#1#2% funny hack that makes sure that we get @@ -134,13 +134,6 @@     \let\locate     \doFLOWlocate     \let\connect    \doFLOWconnect} -\let\FLOWcell       \s!unknown -\let\FLOWshape      \s!unknown -\let\FLOWdestination\s!unknown -\let\FLOWfocus      \s!unknown -\let\FLOWoverlay    \empty -\let\FLOWtext       \empty -  \def\doFLOWname#1%    {\def\FLOWcell{#1}\setFLOWname\FLOWname{name_#1}\ignorespaces} @@ -164,8 +157,8 @@       [\s!dummy]       [{\externalfigure           [#1] -         [\c!width=\overlaywidth, -          \c!height=\overlayheight]}]% +         [\c!breedte=\overlaywidth, +          \c!hoogte=\overlayheight]}]%     \overlay{\s!dummy}}  \def\doFLOWtext @@ -228,14 +221,14 @@  \def\setupFLOWsets  {\dodoubleargument\getparameters[\@@FLOX]}  \setupFLOWcharts -  [\c!option=, -   \c!bodyfont=, -   \c!dot=,  % private option -   \c!width=12\bodyfontsize, -   \c!height=7\bodyfontsize, -   \c!maxwidth=, -   \c!maxheight=, -   \c!offset=\v!standard, % == auto offset +  [\c!optie=, +   \c!korps=, +   \c!punt=,  % private option +   \c!breedte=12\bodyfontsize, +   \c!hoogte=7\bodyfontsize, +   \c!maxbreedte=, +   \c!maxhoogte=, +   \c!offset=\v!standaard, % == auto offset     \c!dx=2\bodyfontsize,     \c!dy=2\bodyfontsize,     \c!nx=0, % 1, @@ -244,36 +237,36 @@     \c!y=1,     \c!autofocus=,     \c!focus=, -   \c!background=,      % \v!color, -   \c!backgroundcolor=\s!white, -   \c!rulethickness=\linewidth, -   \c!frame=\v!off, -   \c!framecolor=] +   \c!achtergrond=,      % \v!kleur, +   \c!achtergrondkleur=\s!white, +   \c!lijndikte=\linewidth, +   \c!kader=\v!uit, +   \c!kaderkleur=]  \setupFLOWlines -  [\c!corner=\v!round, -   \c!arrow=\v!yes, -   \c!dash=\v!no, -   \c!radius=.375\bodyfontsize,      % 2.5\c!rulethickness -   \c!color=FLOWlinecolor, -   \c!rulethickness=.15\bodyfontsize,  % 2pt, -   \c!offset=\v!none] +  [\c!hoek=\v!rond, +   \c!pijl=\v!ja, +   \c!streep=\v!nee, +   \c!straal=.375\bodyfontsize,      % 2.5\c!lijndikte +   \c!kleur=FLOWlinecolor, +   \c!lijndikte=.15\bodyfontsize,  % 2pt, +   \c!offset=\v!geen]  \setupFLOWshapes    [\c!default=action, -   \c!framecolor=FLOWframecolor, -   \c!background=\v!color, -   \c!backgroundcolor=FLOWbackgroundcolor, -   \c!backgroundscreen=\@@rsscreen, -   \c!rulethickness=.15\bodyfontsize,  % 2pt, +   \c!kaderkleur=FLOWframecolor, +   \c!achtergrond=\v!kleur, +   \c!achtergrondkleur=FLOWbackgroundcolor, +   \c!achtergrondraster=\@@rsraster, +   \c!lijndikte=.15\bodyfontsize,  % 2pt,     \c!offset=.5\bodyfontsize]  \setupFLOWfocus -  [\c!framecolor=FLOWfocuscolor, -   \c!background=\@@FLOSbackground, -   \c!backgroundcolor=\@@FLOSbackgroundcolor, -   \c!backgroundscreen=\@@FLOSbackgroundscreen, -   \c!rulethickness=\@@FLOSrulethickness, +  [\c!kaderkleur=FLOWfocuscolor, +   \c!achtergrond=\@@FLOSachtergrond, +   \c!achtergrondkleur=\@@FLOSachtergrondkleur, +   \c!achtergrondraster=\@@FLOSachtergrondraster, +   \c!lijndikte=\@@FLOSlijndikte,     \c!offset=\@@FLOSoffset]  \definecolor [FLOWfocuscolor]      [s=.2] @@ -295,9 +288,9 @@     \increment(\includeFLOWy,0\FLOWiy)\decrement\includeFLOWy     \def\dodoincludeFLOWchart##1%       {\doifdefined{\@FLOW@-##1} -        {\globalpushmacro\dohandleflowchart % was local +        {\pushmacro\dohandleflowchart           \gdef\dohandleflowchart[####1][####2]% -           {\globalpopmacro\dohandleflowchart % was local +           {\popmacro\dohandleflowchart              \resetFLOWlocation              \processFLOWbuffer{####1}}%           \getvalue{\@FLOW@-##1}}}% @@ -380,7 +373,7 @@    {\doifundefinedelse{\@FLOW@-#1}       {\writestatus{FLOW}{unknown chart #1}%        \framed -        [\c!width=12\bodyfontsize,\c!height=8\bodyfontsize] +        [\c!breedte=12\bodyfontsize,\c!hoogte=8\bodyfontsize]          {\tttf [chart #1]}}       {\dodogetFLOWchart[#1][#2]}} @@ -389,7 +382,7 @@     \insidefloattrue     \forgetall     \dontcomplain -   % \offinterlineskip % we now explicitly use \nointerlineskip later on +   \offinterlineskip     \def\dohandleflowchart[##1][##2]%       {\def\currentFLOWnumber{##1}%        \getparameters[\@@FLOW][##2]}% @@ -405,16 +398,16 @@     \processFLOWbuffer\currentFLOWnumber     \ifcase\@@FLOWnx\relax \let\@@FLOWnx\FLOWwidth  \fi     \ifcase\@@FLOWny\relax \let\@@FLOWny\FLOWheight \fi -   \doifnothing{\@@FLOWmaxwidth\@@FLOWmaxheight}{\FLOWscalingfalse}% +   \doifnothing{\@@FLOWmaxbreedte\@@FLOWmaxhoogte}{\FLOWscalingfalse}%     \ifFLOWscaling -     \doifnothing{\@@FLOWmaxwidth }{\let\@@FLOWmaxwidth \maxdimen}% -     \doifnothing{\@@FLOWmaxheight}{\let\@@FLOWmaxheight\maxdimen}% +     \doifnothing{\@@FLOWmaxbreedte}{\let\@@FLOWmaxbreedte\maxdimen}% +     \doifnothing{\@@FLOWmaxhoogte} {\let\@@FLOWmaxhoogte \maxdimen}%       \scratchcounter=\bodyfontpoints       \doloop  % NOG FONTSWITCH OM EX EN EM TE LATEN WERKEN         {\ifnum\scratchcounter>1 % NU DIMENSIONS IN TERMS OF BODYFONTSIZE            \bodyfontsize=\the\scratchcounter pt -          \dimen0=\@@FLOWmaxwidth -          \dimen2=\@@FLOWwidth +          \dimen0=\@@FLOWmaxbreedte +          \dimen2=\@@FLOWbreedte            \dimen4=\@@FLOWdx            \advance\dimen2 2\dimen4            \dimen2=\@@FLOWnx\dimen2 @@ -422,8 +415,8 @@            \ifdim\dimen2>\dimen0              \advance\scratchcounter \minusone            \else -            \dimen0=\@@FLOWmaxheight -            \dimen2=\@@FLOWheight +            \dimen0=\@@FLOWmaxhoogte +            \dimen2=\@@FLOWhoogte              \dimen4=\@@FLOWdy              \advance\dimen2 2\dimen4              \dimen2=\@@FLOWny\dimen2 @@ -439,47 +432,47 @@          \fi}%       \expanded{\switchtobodyfont[\the\scratchcounter pt]}%       \forgetall -     % \offinterlineskip % needed ? -   \else\ifx\@@FLOWbodyfont\empty\else -     \expanded{\switchtobodyfont[\@@FLOWbodyfont]}% \expanded ? +     \offinterlineskip +   \else\ifx\@@FLOWkorps\empty\else +     \expanded{\switchtobodyfont[\@@FLOWkorps]}% \expanded ?     \fi\fi     \global\let\FLOWcells\empty -   \dimen0=\@@FLOWwidth +   \dimen0=\@@FLOWbreedte     \edef\FLOWshapewidth{\the\dimen0}%     \dimen2=\@@FLOWdx     \advance\dimen0 2\dimen2     \edef\FLOWgridwidth{\the\dimen0}% -   \dimen0=\@@FLOWheight +   \dimen0=\@@FLOWhoogte     \edef\FLOWshapeheight{\the\dimen0}%     \dimen2=\@@FLOWdy     \advance\dimen0 2\dimen2     \edef\FLOWgridheight{\the\dimen0}% -   \scratchdimen=\@@FLOSrulethickness -   \edef\@@FLOSrulethickness{\the\scratchdimen}% -   \scratchdimen=\@@FLOFrulethickness -   \edef\@@FLOFrulethickness{\the\scratchdimen}% -   \scratchdimen=\@@FLOLrulethickness -   \edef\@@FLOLrulethickness{\the\scratchdimen}% -   \ifdim\@@FLOLradius<2.5\scratchdimen +   \scratchdimen=\@@FLOSlijndikte +   \edef\@@FLOSlijndikte{\the\scratchdimen}% +   \scratchdimen=\@@FLOFlijndikte +   \edef\@@FLOFlijndikte{\the\scratchdimen}% +   \scratchdimen=\@@FLOLlijndikte +   \edef\@@FLOLlijndikte{\the\scratchdimen}% +   \ifdim\@@FLOLstraal<2.5\scratchdimen       \scratchdimen=2.5\scratchdimen -     \edef\@@FLOLradius{\the\scratchdimen}% -     \ifdim\@@FLOLradius>\@@FLOWdx +     \edef\@@FLOLstraal{\the\scratchdimen}% +     \ifdim\@@FLOLstraal>\@@FLOWdx         \scratchdimen=\@@FLOWdx -       \edef\@@FLOLradius{\the\scratchdimen}% +       \edef\@@FLOLstraal{\the\scratchdimen}%       \fi -     \ifdim\@@FLOLradius>\@@FLOWdy +     \ifdim\@@FLOLstraal>\@@FLOWdy         \scratchdimen=\@@FLOWdy -       \edef\@@FLOLradius{\the\scratchdimen}% +       \edef\@@FLOLstraal{\the\scratchdimen}%       \fi     \else -     \scratchdimen=\@@FLOLradius -     \edef\@@FLOLradius{\the\scratchdimen}% +     \scratchdimen=\@@FLOLstraal +     \edef\@@FLOLstraal{\the\scratchdimen}%     \fi     \processaction % magic 2.5       [\@@FLOWoffset] -     [      \v!none=>\scratchdimen=-2.5\scratchdimen, +     [      \v!geen=>\scratchdimen=-2.5\scratchdimen,           \v!overlay=>\scratchdimen=-2.5\scratchdimen, -        \v!standard=>\scratchdimen=\scratchdimen, +       \v!standaard=>\scratchdimen=\scratchdimen,           \s!unknown=>\scratchdimen=\@@FLOWoffset,           \s!default=>\scratchdimen=-2.5\scratchdimen]%     \edef\@@FLOW@@offset{\the\scratchdimen}% @@ -493,10 +486,10 @@       grid_height            := \FLOWgridheight ;       shape_width            := \FLOWshapewidth ;       shape_height           := \FLOWshapeheight ; -     connection_line_width  := \@@FLOLrulethickness ; -     connection_smooth_size := \@@FLOLradius ; -     connection_arrow_size  := \@@FLOLradius ; -     connection_dash_size   := \@@FLOLradius ; +     connection_line_width  := \@@FLOLlijndikte ; +     connection_smooth_size := \@@FLOLstraal ; +     connection_arrow_size  := \@@FLOLstraal ; +     connection_dash_size   := \@@FLOLstraal ;  %  \stopMPdrawing  %  \def\getFLOWlocationX##1,##2\end%  %    {\ifnum0##1>\FLOWwidth \xdef\FLOWwidth {##1}\fi @@ -518,28 +511,28 @@       reverse_y := true ;       chart_offset := \@@FLOW@@offset ;     \stopMPdrawing -   \doifelsenothing\@@FLOWbackgroundcolor +   \doifelsenothing\@@FLOWachtergrondkleur       {\startMPdrawing        chart_background_color := white ;        \stopMPdrawing}       {\startMPdrawing -      chart_background_color := \MPcolor{\@@FLOWbackgroundcolor} ; +      chart_background_color := \MPcolor{\@@FLOWachtergrondkleur} ;        \stopMPdrawing}% -   \doif\@@FLOWoption\v!test +   \doif\@@FLOWoptie\v!test       {\startMPdrawing          show_con_points := true ;          show_mid_points := true ;          show_all_points := true ;        \stopMPdrawing}%     \processaction % private -     [\@@FLOWdot] -     [     \v!yes=>\startMPdrawing +     [\@@FLOWpunt] +     [     \v!ja=>\startMPdrawing                      show_con_points := true ;                      show_mid_points := true ;                      show_all_points := true ;                    \stopMPdrawing,        \s!unknown=>\startMPdrawing -                    show_\@@FLOWdot_points := true ; +                    show_\@@FLOWpunt_points := true ;                    \stopMPdrawing]%     \let\startFLOWcell\startFLOWcellB     \resetFLOWlocation @@ -584,7 +577,7 @@     \setbox4\hbox       {\hskip\@@FLOW@@offset\lower\@@FLOW@@offset\box4}%     \wd4\wd0\ht4\ht0\dp4\dp0 -   \doifelse\@@FLOWoption\v!test +   \doifelse\@@FLOWoptie\v!test       {\setbox6\vbox          {\forgetall           \vskip\@@FLOW@@offset @@ -592,12 +585,11 @@           \basegrid             [\c!x=\@@FLOWx,\c!nx=\@@FLOWnx,\c!dx=\withoutpt\FLOWgridwidth,              \c!y=\@@FLOWy,\c!ny=\@@FLOWny,\c!dy=\withoutpt\FLOWgridheight, -            \c!xstep=1,\c!ystep=1, -            \c!unit=pt,\c!location=\v!middle]}% +            \c!xstap=1,\c!ystap=1, +            \c!eenheid=pt,\c!plaats=\v!midden]}%        \wd6\wd0\ht6\ht0\dp6\dp0        \setbox8\vbox -        {\forgetall -         \offinterlineskip +        {\forgetall\offinterlineskip           \vskip\@@FLOW@@offset           \dostepwiserecurse\@@FLOWy\@@FLOWny\plusone             {\vbox to \FLOWgridheight @@ -608,23 +600,23 @@                      {\hbox to \FLOWgridwidth                         {\hfill                          \framed -                          [\c!framecolor=red, -                           \c!width=\FLOWshapewidth, -                           \c!height=\FLOWshapeheight] +                          [\c!kaderkleur=red, +                           \c!breedte=\FLOWshapewidth, +                           \c!hoogte=\FLOWshapeheight]                            {}%                          \hfill}}}                 \vfill}}}%        \wd8\wd0\ht8\ht0\dp8\dp0        \framed -        [\c!offset=\v!overlay,\c!framecolor=green] +        [\c!offset=\v!overlay,\c!kaderkleur=green]          {\hbox{\box4\hskip-\wd0\box0\hskip-\wd2\box2\hskip-\wd6\box6\hskip-\wd8\box8}}}       {\framed          [\c!offset=\v!overlay, -         \c!frame=\@@FLOWframe, -         \c!rulethickness=\@@FLOWrulethickness, -         \c!framecolor=\@@FLOWframecolor, -         \c!background=\@@FLOWbackground, -         \c!backgroundcolor=\@@FLOWbackgroundcolor] +         \c!kader=\@@FLOWkader, +         \c!lijndikte=\@@FLOWlijndikte, +         \c!kaderkleur=\@@FLOWkaderkleur, +         \c!achtergrond=\@@FLOWachtergrond, +         \c!achtergrondkleur=\@@FLOWachtergrondkleur]          {\hbox{\box4\hskip-\wd0\box0\hskip-\wd2\box2}}}%    %\message{[\FLOWcells]}\wait     \egroup} @@ -653,7 +645,7 @@     \ifx\FLOWshape\empty       \global\let\FLOWshape\@@FLOSdefault     \fi -   \doifnot\FLOWshape{none} % {\v!none} +   \doifnot\FLOWshape{none} % {\v!geen}       {\ExpandBothAfter\doifinsetelse{\FLOWshape}{\FLOWshapes}          {\edef\FLOWshapetag{shape_\FLOWshape}% beter \expanded           \@EA\setFLOWname\@EA\FLOWshapetag\@EA{\FLOWshapetag}} @@ -669,17 +661,17 @@          \startMPdrawing            begin_sub_chart ;            \ifcase\FLOWstate -            shape_line_color := \MPcolor{\@@FLOLcolor} ; -            shape_fill_color := \MPcolor{\@@FLOLcolor} ; -            shape_line_width := \@@FLOLrulethickness ; +            shape_line_color := \MPcolor{\@@FLOLkleur} ; +            shape_fill_color := \MPcolor{\@@FLOLkleur} ; +            shape_line_width := \@@FLOLlijndikte ;            \or -            shape_line_color := \MPcolor{\@@FLOFframecolor} ; -            shape_fill_color := \MPcolor{\@@FLOFbackgroundcolor} ; -            shape_line_width := \@@FLOFrulethickness ; +            shape_line_color := \MPcolor{\@@FLOFkaderkleur} ; +            shape_fill_color := \MPcolor{\@@FLOFachtergrondkleur} ; +            shape_line_width := \@@FLOFlijndikte ;            \or -            shape_line_color := \MPcolor{\@@FLOSframecolor} ; -            shape_fill_color := \MPcolor{\@@FLOSbackgroundcolor} ; -            shape_line_width := \@@FLOSrulethickness ; +            shape_line_color := \MPcolor{\@@FLOSkaderkleur} ; +            shape_fill_color := \MPcolor{\@@FLOSachtergrondkleur} ; +            shape_line_width := \@@FLOSlijndikte ;            \fi           %\ifx\FLOWoverlay\empty           %  peepshape := false ; @@ -726,16 +718,16 @@       \ifx\FLOWto\FLOWorigin \else         \FLOWsetconnect{#1}%         \ifx\cFLOWfrom\empty \else -         \doifelse\@@FLOLcorner\v!round +         \doifelse\@@FLOLhoek\v!rond             {\startMPdrawing smooth     := true  ; \stopMPdrawing}             {\startMPdrawing smooth     := false ; \stopMPdrawing}% -         \doifelse\@@FLOLdash\v!yes +         \doifelse\@@FLOLstreep\v!ja             {\startMPdrawing dashline   := true  ; \stopMPdrawing}             {\startMPdrawing dashline   := false ; \stopMPdrawing}% -         \doifelse\@@FLOLarrow\v!yes +         \doifelse\@@FLOLpijl\v!ja             {\startMPdrawing arrowtip   := true  ; \stopMPdrawing}             {\startMPdrawing arrowtip   := false ; \stopMPdrawing}% -         \doifelse\@@FLOLoffset\v!none +         \doifelse\@@FLOLoffset\v!geen             {\startMPdrawing touchshape := true  ; \stopMPdrawing}             {\startMPdrawing touchshape := false ; \stopMPdrawing}%  %\doifsomething{#2} @@ -744,8 +736,8 @@  %   \stopMPdrawing}%           \startMPdrawing  \doFLOWdisplace[0#2,0,0]% -           connection_line_color := \MPcolor{\@@FLOLcolor} ; -           connection_line_width := \@@FLOLrulethickness ; +           connection_line_color := \MPcolor{\@@FLOLkleur} ; +           connection_line_width := \@@FLOLlijndikte ;             connect_\cFLOWfrom_\cFLOWto (\FLOWfrom,\zFLOWfrom) (\FLOWto,\zFLOWto) ;  \doFLOWdisplace[0,0,0]%           \stopMPdrawing @@ -820,104 +812,82 @@     \egroup     \ignorespaces} -% pass D - -\def\dophaseoneFLOWcellX#1#2% -  {\!!counta#1\relax -   \!!countb#2\relax -   \!!countc\@@FLOWx -   \!!countd\@@FLOWy +\def\doprocessFLOWcellD#1,#2\end  % kan ook met area +  {\!!counta=#1\relax +   \!!countb=#2\relax +   \!!countc=\@@FLOWx +   \!!countd=\@@FLOWy     \advance\!!countc \@@FLOWnx     \advance\!!countd \@@FLOWny -   \advance\!!countc \minusone -   \advance\!!countd \minusone +   \advance\!!countc -1 +   \advance\!!countd -1          \ifnum\!!counta<\@@FLOWx\relax  \donefalse     \else\ifnum\!!counta>\!!countc       \donefalse     \else\ifnum\!!countb<\@@FLOWy\relax  \donefalse     \else\ifnum\!!countb>\!!countd       \donefalse     \else                                \donetrue -   \fi\fi\fi\fi} - -\def\dophasetwoFLOWcellX -  {\advance\!!counta -\@@FLOWx -   \advance\!!counta \plusone -   \advance\!!countb -\@@FLOWy -   \advance\!!countb \plusone -   \dimen0=\FLOWgridwidth -   \dimen0=\!!counta\dimen0 -   \advance\dimen0 -\FLOWgridwidth -   \dimen4=\FLOWgridwidth -   \advance\dimen4 -\FLOWshapewidth -   \advance\dimen0 .5\dimen4 -   \dimen2=\FLOWgridheight -   \dimen2=\!!countb\dimen2 -   \dimen4=\FLOWgridheight -   \advance\dimen4 -\FLOWshapeheight -   \advance\dimen2 -.5\dimen4 -   \edef\FLOWdx{\the\dimen0}% -   \edef\FLOWdy{\the\dimen2}} - -\def\positionFLOWzero% assumes \FLOWdx and \FLOWdy are set -  {\setbox0\hbox{\hskip\FLOWdx\lower\FLOWdy\box0}% -   \smashbox0\box0 -   \nointerlineskip} % new, needed since we somehow reset that - -\def\doFLOWtlabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdy\fi -   \setbox0\hbox{\hskip\dimen2\raise\scratchdimen -     \hbox{\raise\dimen4\hbox{#1{\strut#3}}}}% -   \positionFLOWzero}% - -\def\doFLOWblabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdy\fi -   \setbox0\hbox{\hskip\dimen2\raise-\scratchdimen -     \hbox{#1{\strut#3}}}% -   \positionFLOWzero}% - -\def\doFLOWllabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdx\fi -   \setbox0\hbox{\hskip-\scratchdimen\raise\dimen6 -     \hbox{#1{\strut#3}}}% -   \positionFLOWzero}% - -\def\doFLOWrlabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdx\fi -   \setbox0\hbox{\hskip\dimen0\hskip\scratchdimen -   \hbox{\raise\dimen6\hbox{#1{\strut#3}}}}% -   \positionFLOWzero} - -\def\doprocessFLOWcellD#1,#2\end -  {\dophaseoneFLOWcellX{#1}{#2}% -   \ifdone -     \dophasetwoFLOWcellX       \doglobal\addtocommalist\FLOWcell\FLOWcells -     \setbox0\hbox +     \advance\!!counta -\@@FLOWx\advance\!!counta \plusone +     \advance\!!countb -\@@FLOWy\advance\!!countb \plusone +     \dimen0=\FLOWgridwidth\dimen0=\!!counta\dimen0 +     \advance\dimen0 -\FLOWgridwidth +     \dimen4=\FLOWgridwidth\advance\dimen4 -\FLOWshapewidth +     \advance\dimen0 .5\dimen4 +     \dimen2=\FLOWgridheight\dimen2=\!!countb\dimen2 +     \dimen4=\FLOWgridheight\advance\dimen4 -\FLOWshapeheight +     \advance\dimen2 -.5\dimen4 +     \setbox0=\hbox         {\ifx\FLOWalign\empty\else            \setupframed -            [\c!align=\v!normal,\c!bottom=\vfill,\c!top=\vfill]% +            [\c!uitlijnen=\v!normaal,\c!onder=\vfill,\c!boven=\vfill]%            \@EA\processallactionsinset\@EA              [\FLOWalign] -            [t=>{\setupframed[\c!bottom=\vfill,\c!top=]}, -             b=>{\setupframed[\c!bottom=,\c!top=\vfill]}, -             l=>{\setupframed[\c!align=\v!right]}, -             r=>{\setupframed[\c!align=\v!left]}, -             m=>{\setupframed[\c!align=\v!middle]}, -             c=>{\setupframed[\c!align=\v!middle]}]% +            [t=>{\setupframed[\c!onder=\vfill,\c!boven=]}, +             b=>{\setupframed[\c!onder=,\c!boven=\vfill]}, +             l=>{\setupframed[\c!uitlijnen=\v!rechts]}, +             r=>{\setupframed[\c!uitlijnen=\v!links]}, +             m=>{\setupframed[\c!uitlijnen=\v!midden]}, +             c=>{\setupframed[\c!uitlijnen=\v!midden]}]%          \fi -        \doifelse\FLOWshape{none} % {\v!none} +        \doifelse\FLOWshape{none} % {\v!geen}            {\setupframed[\c!offset=\v!overlay]}           %{\setupframed[\c!offset=.5\bodyfontsize]}%            {\setupframed[\c!offset=\@@FLOSoffset]}%          \framed -          [\c!frame=\v!off, -           \c!width=\FLOWshapewidth,\c!height=\FLOWshapeheight] +          [\c!kader=\v!uit, +           \c!breedte=\FLOWshapewidth,\c!hoogte=\FLOWshapeheight]            {\FLOWtext}}% -       \showFLOWhelp0 -       \ifx\FLOWdestination\empty\else -         \setbox0\hbox -           {\setupinteraction[\c!color=,\c!contrastcolor=]% -            \gotobox{\box0}[\FLOWdestination]}% -       \fi +     \showFLOWhelp0 +     \ifx\FLOWdestination\empty\else +       \setbox0=\hbox +         {\setupinteraction[\c!kleur=,\c!contrastkleur=]% +          \naarbox{\box0}[\FLOWdestination]}% +     \fi +     \edef\FLOWdx{\the\dimen0}% +     \edef\FLOWdy{\the\dimen2}% +     \def\positionFLOWzero% assumes \FLOWdx and \FLOWdy are set +       {\setbox0=\hbox{\hskip\FLOWdx\lower\FLOWdy\box0}% +        \smashbox0\box0}% +     \def\doFLOWtlabel##1##2##3% +       {\scratchdimen=\ifcase##2 \!!zeropoint\else\@@FLOWdy\fi +        \setbox0=\hbox{\hskip\dimen2\raise\scratchdimen +          \hbox{\raise\dimen4\hbox{##1{\strut##3}}}}% +        \positionFLOWzero}% +     \def\doFLOWblabel##1##2##3% +       {\scratchdimen=\ifcase##2 \zeropoint\else\@@FLOWdy\fi +        \setbox0=\hbox{\hskip\dimen2\raise-\scratchdimen +          \hbox{##1{\strut##3}}}% +        \positionFLOWzero}% +     \def\doFLOWllabel##1##2##3% +       {\scratchdimen=\ifcase##2 \zeropoint\else\@@FLOWdx\fi +        \setbox0=\hbox{\hskip-\scratchdimen\raise\dimen6 +          \hbox{##1{\strut##3}}}% +        \positionFLOWzero}% +     \def\doFLOWrlabel##1##2##3% +       {\scratchdimen=\ifcase##2 \zeropoint\else\@@FLOWdx\fi +        \setbox0=\hbox{\hskip\dimen0\hskip\scratchdimen +        \hbox{\raise\dimen6\hbox{##1{\strut##3}}}}% +        \positionFLOWzero}%       \positionFLOWzero       \dimen0=\FLOWshapewidth \dimen2=.5\dimen0       \dimen4=\FLOWshapeheight\dimen6=.5\dimen4 @@ -934,7 +904,7 @@       \ifnum#1=\!!countc      \doFLOWrlabel  \rightbox1\rFLOWexit \fi       \ifnum#2=\@@FLOWy\relax \doFLOWtlabel    \topbox1\tFLOWexit \fi       \ifnum#2=\!!countd      \doFLOWblabel \bottombox1\bFLOWexit \fi -   \fi} +   \fi\fi\fi\fi}  % Pass E @@ -944,141 +914,55 @@     \let\doprocessFLOWcell\doprocessFLOWcellE     \expandafter\doprocessFLOWcell\FLOWlocation\end} -\def\dophaseoneFLOWcellX#1#2% -  {\!!counta#1\relax -   \!!countb#2\relax -   \!!countc\@@FLOWx -   \!!countd\@@FLOWy +\def\doprocessFLOWcellE#1,#2\end  % redundant +  {\ifx\FLOWoverlay\empty \else +   \!!counta=#1\relax +   \!!countb=#2\relax +   \!!countc=\@@FLOWx +   \!!countd=\@@FLOWy     \advance\!!countc \@@FLOWnx     \advance\!!countd \@@FLOWny     \advance\!!countc \minusone     \advance\!!countd \minusone -        \ifnum\!!counta<\@@FLOWx\relax  \donefalse -   \else\ifnum\!!counta>\!!countc       \donefalse -   \else\ifnum\!!countb<\@@FLOWy\relax  \donefalse -   \else\ifnum\!!countb>\!!countd       \donefalse -   \else                                \donetrue -   \fi\fi\fi\fi} - -\def\dophasetwoFLOWcellX -  {\advance\!!counta -\@@FLOWx -   \advance\!!counta \plusone -   \advance\!!countb -\@@FLOWy -   \advance\!!countb \plusone -   \dimen0=\FLOWgridwidth -   \dimen0=\!!counta\dimen0 -   \advance\dimen0 -\FLOWgridwidth -   \dimen4=\FLOWgridwidth -   \advance\dimen4 -\FLOWshapewidth -   \advance\dimen0 .5\dimen4 -   \dimen2=\FLOWgridheight -   \dimen2=\!!countb\dimen2 -   \dimen4=\FLOWgridheight -   \advance\dimen4 -\FLOWshapeheight -   \advance\dimen2 -.5\dimen4 -   \edef\FLOWdx{\the\dimen0}% -   \edef\FLOWdy{\the\dimen2}} - -\def\positionFLOWzero% assumes \FLOWdx and \FLOWdy are set -  {\setbox0\hbox{\hskip\FLOWdx\lower\FLOWdy\box0}% -   \smashbox0\box0 -   \nointerlineskip}% - -\def\doFLOWtlabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdy\fi -   \setbox0\hbox{\hskip\dimen2\raise\scratchdimen -     \hbox{\raise\dimen4\hbox{#1{\strut#3}}}}% -   \positionFLOWzero}% - -\def\doFLOWblabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdy\fi -   \setbox0\hbox{\hskip\dimen2\raise-\scratchdimen -     \hbox{#1{\strut#3}}}% -   \positionFLOWzero}% - -\def\doFLOWllabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdx\fi -   \setbox0\hbox{\hskip-\scratchdimen\raise\dimen6 -     \hbox{#1{\strut#3}}}% -   \positionFLOWzero}% - -\def\doFLOWrlabel#1#2#3% -  {\scratchdimen\ifcase#2 \zeropoint\else\@@FLOWdx\fi -   \setbox0\hbox{\hskip\dimen0\hskip\scratchdimen -   \hbox{\raise\dimen6\hbox{#1{\strut#3}}}}% -   \positionFLOWzero} - -\def\doprocessFLOWcellD#1,#2\end -  {\dophaseoneFLOWcellX{#1}{#2}% +   \ifnum\!!counta<\@@FLOWx\relax +     \donefalse +   \else\ifnum\!!counta>\!!countc +     \donefalse +   \else\ifnum\!!countb<\@@FLOWy\relax +     \donefalse +   \else\ifnum\!!countb>\!!countd +     \donefalse +   \else +     \donetrue +   \fi\fi\fi\fi     \ifdone -     \dophasetwoFLOWcellX -     \doglobal\addtocommalist\FLOWcell\FLOWcells -     \setbox0\hbox -       {\ifx\FLOWalign\empty\else -          \setupframed -            [\c!align=\v!normal,\c!bottom=\vfill,\c!top=\vfill]% -          \@EA\processallactionsinset\@EA -            [\FLOWalign] -            [t=>{\setupframed[\c!bottom=\vfill,\c!top=]}, -             b=>{\setupframed[\c!bottom=,\c!top=\vfill]}, -             l=>{\setupframed[\c!align=\v!right]}, -             r=>{\setupframed[\c!align=\v!left]}, -             m=>{\setupframed[\c!align=\v!middle]}, -             c=>{\setupframed[\c!align=\v!middle]}]% -        \fi -        \doifelse\FLOWshape{none} % {\v!none} -          {\setupframed[\c!offset=\v!overlay]} -         %{\setupframed[\c!offset=.5\bodyfontsize]}% -          {\setupframed[\c!offset=\@@FLOSoffset]}% -        \framed -          [\c!frame=\v!off, -           \c!width=\FLOWshapewidth,\c!height=\FLOWshapeheight] -          {\FLOWtext}}% -       \showFLOWhelp0 -       \ifx\FLOWdestination\empty\else -         \setbox0\hbox -           {\setupinteraction[\c!color=,\c!contrastcolor=]% -            \gotobox{\box0}[\FLOWdestination]}% -       \fi -     \positionFLOWzero -     \dimen0=\FLOWshapewidth \dimen2=.5\dimen0 -     \dimen4=\FLOWshapeheight\dimen6=.5\dimen4 -     \boxoffset=.5\bodyfontsize -     \doFLOWtlabel   \righttopbox0\tFLOWlabel -     \doFLOWblabel\rightbottombox0\bFLOWlabel -     \doFLOWllabel    \lefttopbox0\lFLOWlabel -     \doFLOWrlabel   \righttopbox0\rFLOWlabel -     \doFLOWtlabel        \topbox0\tcFLOWlabel % for me only -     \doFLOWblabel     \bottombox0\bcFLOWlabel % for me only -     \doFLOWllabel       \leftbox0\lcFLOWlabel % for me only -     \doFLOWrlabel      \rightbox0\rcFLOWlabel % for me only -     \ifnum#1=\@@FLOWx\relax \doFLOWllabel   \leftbox1\lFLOWexit \fi -     \ifnum#1=\!!countc      \doFLOWrlabel  \rightbox1\rFLOWexit \fi -     \ifnum#2=\@@FLOWy\relax \doFLOWtlabel    \topbox1\tFLOWexit \fi -     \ifnum#2=\!!countd      \doFLOWblabel \bottombox1\bFLOWexit \fi -   \fi} - -\def\doprocessFLOWcellE#1,#2\end  % redundant -  {\ifx\FLOWoverlay\empty \else -     \dophaseoneFLOWcellX{#1}{#2}% -     \ifdone -       \dophasetwoFLOWcellX -       \edef\FLOWdx{\the\dimen0}% -       \edef\FLOWdy{\the\dimen2}% -       \setbox0\hbox -         {\framed -            [%\c!frame=\v!off, -             \c!background={\@@FLOWbackground,\FLOWoverlay}, -             \c!backgroundcolor=\@@FLOSbackgroundcolor, -             \c!width=\FLOWshapewidth,\c!height=\FLOWshapeheight] -            {}}% -       \positionFLOWzero -     \fi -   \fi} +     \advance\!!counta -\@@FLOWx\advance\!!counta \plusone +     \advance\!!countb -\@@FLOWy\advance\!!countb \plusone +     \dimen0=\FLOWgridwidth\dimen0=\!!counta\dimen0 +     \advance\dimen0 -\FLOWgridwidth +     \dimen4=\FLOWgridwidth\advance\dimen4 -\FLOWshapewidth +     \advance\dimen0 .5\dimen4 +     \dimen2=\FLOWgridheight\dimen2=\!!countb\dimen2 +     \dimen4=\FLOWgridheight\advance\dimen4 -\FLOWshapeheight +     \advance\dimen2 -.5\dimen4 +     \edef\FLOWdx{\the\dimen0}% +     \edef\FLOWdy{\the\dimen2}% +     \setbox0=\hbox +       {\framed +          [\c!kader=\v!uit, +           \c!achtergrond={\@@FLOWachtergrond,\FLOWoverlay}, +           \c!achtergrondkleur=\@@FLOSachtergrondkleur, +           \c!breedte=\FLOWshapewidth,\c!hoogte=\FLOWshapeheight] +          {}}% +     \setbox0=\hbox{\hskip\FLOWdx\lower\FLOWdy\box0}% +     \smashbox0 +     \box0 +   \fi + \fi}  % Pass F -\def\checkFLOWautofocus +\def\checkFLOWautofocus%    {\def\@@FLOWminx{100}\let\@@FLOWminy\@@FLOWminx     \def\@@FLOWmaxx  {0}\let\@@FLOWmaxy\@@FLOWmaxx     \def\@@FLOWabsx  {0}\let\@@FLOWabsy\@@FLOWabsx @@ -1171,7 +1055,7 @@       {\setbox#1=\hbox          {\setbox\scratchbox=\hbox{\lower\@@FLOWdy\hbox             {\helpbutton -              [\c!width=\wd0,\c!color=,\c!height=\@@FLOWdy,\c!frame=\v!no]% +              [\c!breedte=\wd0,\c!kleur=,\c!hoogte=\@@FLOWdy,\c!kader=\v!nee]%                [\FLOWhelp]}}%           \smashbox\scratchbox           \setbox#1=\vbox @@ -1204,9 +1088,9 @@  \setupFLOWsplit%    [\c!nx=3,\c!ny=3,     \c!dx=1,\c!dy=1, -   \c!command=, -   \c!marking=\v!on, -   \c!before=,\c!after=] +   \c!commando=, +   \c!markering=\v!aan, +   \c!voor=,\c!na=]  \def\FLOWsplitx {1}  \def\FLOWsplity {1} @@ -1218,9 +1102,9 @@  %D While splitting, the following variables are available:  %D -%D \starttyping +%D \starttypen  %D \FLOWsplitnx \FLOWsplitny \FLOWsplitx \FLOWsplity -%D \stoptyping +%D \stoptypen  \def\doFLOWcharts[#1][#2]%    {\bgroup @@ -1266,35 +1150,35 @@  \def\dododoFLOWcharts[#1][#2]%    {\bgroup -   \@@FLOTbefore -   \doifnot\@@FLOTmarking\v!on{\let\cuthbox\hbox}% +   \@@FLOTvoor +   \doifnot\@@FLOTmarkering\v!aan{\let\cuthbox\hbox}%     \cuthbox -     {\@@FLOTcommand +     {\@@FLOTcommando          {\FLOWchart[#1][#2,             \c!x=\@@FLOTx,\c!nx=\@@FLOTnx,             \c!y=\@@FLOTy,\c!ny=\@@FLOTny]}}% -   \@@FLOTafter +   \@@FLOTna     \egroup}  %D An example of splitting is given below:  %D -%D \starttyping +%D \starttypen  %D \setupFLOWsplit  %D   [nx=5,ny=10,  %D    dx=0,dy=0,  %D    before=, -%D    after=\page] +%D    after=\pagina]  %D  %D \FLOWcharts[mybigflow] -%D \stoptyping +%D \stoptypen  %D  %D Or, one can say:  %D -%D \starttyping -%D \splitfloat -%D   {\placefigure{What a big flowchart this is!}} +%D \starttypen +%D \splitsplaatsblok +%D   {\plaatsfiguur{What a big flowchart this is!}}  %D   {\FLOWcharts[mybigflow]} -%D \stoptyping +%D \stoptypen  %D \macros  %D   {typeFLOWchart} @@ -1314,7 +1198,7 @@  %D New:  %D -%D \starttyping +%D \starttypen  %D \setupFLOWcharts[command=\Whow]  %D  %D \startFLOWset[convert-en] % [tag][convert-en] @@ -1329,13 +1213,13 @@  %D \FLOWset[convert-en] % [tag]  %D  %D \def\Whow#1% -%D   {\setuphead[state=high] +%D   {\setuphead[status=hoog]  %D    \startstandardmakeup  %D    \centerbox{#1}  %D    \stopstandardmakeup}  %D  %D \FLOWset[convert-en] % [tag] -%D \stoptyping +%D \stoptypen  \def\startFLOWset    {\dodoubleempty\dostartFLOWset} @@ -1363,7 +1247,7 @@  \def\dodohandleFLOWset#1#2#3#4% tag subtag name settings    {\increment\currentFLOWset     \bgroup -   \@@FLOXcommand +   \@@FLOXcommando       {\ifnum\currentFLOWset=1 \pagereference[#1]\fi        \doifsomething{#2}          {\setupreferencing[\c!prefix=]% @@ -1381,7 +1265,7 @@  \newcounter\currentFLOWset  \setupFLOWsets -  [\c!command=] +  [\c!commando=]  %D This will be an option: | 
