Hi,
You could just convert these separately to pdf/svg/jpg/png and then load them
as \externalfigure.
You could also use the filter module to be able to take them inline into the
ConTeXt code:
\usemodule[filter]
\define[1]\ReadFigure{\externalfigure[#1]}
\defineexternalfilter[graphviz]
[cache=yes,
readcommand=\ReadFigure,
output={\externalfilterbasefile.pdf},
filtercommand={dot -Tpdf -o "\externalfilterbasefile.pdf"
"\externalfilterinputfile"}]
\starttext
\startTEXpage
\startgraphviz
digraph G {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
\stopgraphviz
\stopTEXpage
\stoptext
See the filter module documentation for more details about that.
Best wishes,
Taco
> On 23 Jun 2022, at 14:08, juh via ntg-context wrote:
>
> Dear all,
>
> I have a legacy project that I shall convert to a new ConTeXt project.
>
> There are a lot of Graphviz dot-files. What shall I do with these?
>
> Any hints?
> juh
> --
> Autoren-Homepage: . http://literatur.hasecke.com
> Satiren & Essays: . http://www.sudelbuch.de
> Privater Blog: http://www.hasecke.eu
> Netzliteratur-Projekt: http://www.generationenprojekt.de
>
>
> ___
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
—
Taco Hoekwater E: t...@bittext.nl
genderfluid (all pronouns)
___
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___