Hi,
probably a question for Stuart, but others may be able to help as
well.
I am working on an aafigure filter for AsciiDoc which is almost
completed. The thing I am struggling with is how to pass optional
arguments to the filter.
For example:
[aafigure,"block.png",scale=0.5,fill="00b",aspect=0.8,options="textual"]
----------------------------
+--------------------+
+ ASCII art is ugly +
+--------------------+
---------------------------
No problems with the first two positional arguments. But how to
implement the non-positional arguments like scale, fill, aspect and
textual?
This is what I thought it should be in the filter configuration, but
none of the optional arguments seem to be defined when the filter
style is parsed:
[aafigure-filter-style]
aafigure-style=template="aafigure{format?-{format}}-
block",subs=(),posattrs=("style","target"),filter='aafig2img.py
{verbose?-v} -o "{outdir={indir}}/{imagesdir=}{imagesdir?/}{target}" -
F {format=png}{fill? --fill {fill}}{foreground? --foreground
{foreground}}{background? --background {background}}{scale? --scale
{scale}}{aspect? --aspect {aspect}}{linewidth? --linewidth {linewidth}}
{textual-option? --textual} -'
What am I missing here?
Cheers
Henrik
--
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.