hi Lex,
I think the thing that blocks from understanding the result path is, how
the filter config file works? what's the syntax?
>
shaape-style=template="shaape-__block",subs=(),posattrs=("__style","target"),filter='__shaape
> -o "{outdir={indir}}/{imagesdir=}__{imagesdir?/}{target}" --hash
> {scaling? --scale {scaling}} {width? --width {width}} {height?
> --height {height}}-'
how to understand the above? I looked at the manual about filter,
http://www.methods.co.nz/asciidoc/userguide.html#X59
but I don't see a concrete description about the syntax...
can you point me more docs about it?
I want to even learn how to write my own filter...
thanks!
On 05/08/2013 08:20 PM, Lex Trotman wrote:
I'm a bit confused about the attribute: "imagesdir" and asciidoc
filters...
what I did:
asciidoc -a numbered -a toc2 -a toclevels=4 -a
iconsdir=/home/ping/bin/__asciidoc-8.6.8/images/icons -a icons -a
imagesdir=/mnt/public_html/__webdata/vim-jtac-work -a data-uri -o
/mnt/smbwf-sam/home/public___html/webdata/vim-jtac-work/__vim-jtac-work.html
-a leveloffset=0@ -b html5 myfile.txt
where in my file.txt I have this shaape filter:
[shaape]
----
-----------
|my graph |
------------
----
and this is the installed filter config:
[shaape-filter-style]
ifndef::data-uri[]
shaape-style=template="shaape-__block",subs=(),posattrs=("__style","target"),filter='__shaape
-o "{outdir={indir}}/{imagesdir=}__{imagesdir?/}{target}" --hash
{scaling? --scale {scaling}} {width? --width {width}} {height?
--height {height}}-'
endif::data-uri[]
ifdef::data-uri[]
shaape-style=template="shaape-__block",subs=(),posattrs=("__style","target"),filter='__shaape
-o "{indir={outdir}}/{imagesdir=}__{imagesdir?/}{target}" --hash
{scaling? --scale {scaling}} {width? --width {width}} {height?
--height {height}}-'
endif::data-uri[]
[blockdef-listing]
template::[shaape-filter-__style]
[paradef-default]
template::[shaape-filter-__style]
[shaape-block]
template::[filter-image-__blockmacro]
so based on the log messages, this is the final output image place:
shaape -o
"/usr/local/etc/asciidoc//mnt/__public_html/webdata/vim-jtac-__work/vim-jtac-work__1.png"
--hash -: returned 1
so it was connected by these two:
/usr/local/etc/asciidoc/
+
/mnt/public_html/webdata/vim-__jtac-work/
I'm guessing, this is because I have this in my filter config:
"{outdir={indir}}/{imagesdir=}__{imagesdir?/}{target}"
As you can see imagesdir is interpolated into the middle of a path, so
it can't be absolute.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.