Re: [Doxygen-users] Generating dot graphs in SVG
Brought to you by:
dimitri
From: Gennaro P. <gen...@ya...> - 2007-05-29 11:02:38
|
On Tue, 29 May 2007 10:55:47 +0200, Clemens Feige wrote: >> Hi, >> is there any reason why the allowed values for DOT_IMAGE_FORMAT are >> gif, jpg and png only? In particular I'd like to generate the diagrams >> in SVG format. >> >> Gennaro Prota > >Hi Gennaro. > >As far as I know DOT can also create SVG. I'd be interessted to know >what happens if you say "svg" in the doxygen config file. Hi Clemens, yes, that's what I knew too about DOT. Saying "svg" in the Doxygen config file --which, in an excess of hope, I had tried before posting :-)-- simply yields an Invalid value for DOT_IMAGE_FORMAT: `svg'. Using the default. complain (this was on Cygwin, with Doxygen 1.5.1, in case that matters). >If it does not work and you do not want to touch Doxygen, it may help >to say "DOT_CLEANUP = NO". This will keep the .dot files. Then you >need to convert them manually - with target SVG ofcourse. At last you >need to modify all HTML files to replace those PNG, JPG, or GIF >picture references with SVG references. You change only the file >extension, not the filename. Aha, thanks! :-) This hadn't occurred to me. As soon as I'll have some time I'll try your idea. Since I already do some post-processing on the pages this fits very well in the existing scaffolding. Thanks again for your suggestion! (Touching Doxygen is perhaps even simpler, but of course has the non-negligible drawback of having to maintain "my own" version and force users of my library to use that one) -- Gennaro Prota -- C++ Developer, For Hire https://sourceforge.net/projects/breeze/ |