Hi all,

Inspired by discussions in this thread I trialled both ditaa and
aafigure.

Graphics with ditaa look nice and modern, it supports colour and drop-
shadows as well as different shapes. Biggest drawback is the missing
vector graphic output like SVGs. There is an EPS add-on but FOP
unfortunately does not support EPS for PDF output. So we are stuck
with PNG only which is less ideal for PDF output.

Aafigure however supports SVG output so I wrote a filter for AsciiDoc
but got stuck with aafigure's inability to load fonts in a robust an
OS independent way and also the type of SVG it creates. There is a
work around for the font issue but the SVGs it generates are kind of
unusable by FOP as they do not contain width and height information.

Without such information the viewport cannot be calculated
automatically and the user has to provide viewport height and width as
well as content height and width, and this is kind of guesswork and
images will appear clipped or distorted.

If one is happy with PNG output both solutions can be used and I
should publish these filters shortly.

Henrik

On Dec 28 2010, 3:51 pm, Wilhelm <[email protected]> wrote:
> Am 27.12.2010 18:52, schrieb Gary F.:
>
> > Re: ditaa and ascii art -> graphics.  I installed and tried ditaa.
> > Ditaa is
> > written in java, and has almost no documentation.  Its help line is
> > pretty
> > much all you get.  A quick search for something in Python that might
> > be more
> > asciidoc friendly turned this up:
> >http://packages.python.org/aafigure/manual.html
>
> > The author has provided several plug-ins.  Perhaps he can be coaxed
> > into
> > providing asciidoc support?
>
> aafigurelooks also very promising to create usefull diagrams.
>
> Since I'm very new to asciidoc, I don't know exactly how to integrate
> that into asciidoc. But I think aafilter or ditaa can be integrated
> using the same approch as the graphiz-filter.
>
> --
> Wilhelm

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to