On 9/14/2012 7:04 PM, Stuart Rackham wrote:
Hi Michael

This is a really nice filter for the diagrammatically challenged like
myself.

I've also tried it on Win7, worked fine for me (once I'd installed
easy_install and added the Python Scripts directory to the PATH).

There was one oddity, the unnecessary | separator in the
[filter-image-pngsvg-blockmacro] generated a quoted space under Windows
but not Linux i.e.

Windows:

" "<div class="imageblock seqdiag">

Linux:

<div class="imageblock seqdiag">

After dropping the | line it worked. I think it was generated by the
echo " " in your style definitions (under Linux echo " " generates a
space character, under Windows it generates " ").


Cheers, Stuart


On 14/09/12 19:37, Michael Haberler wrote:
I've created an asciidoc filter for Takeshi Komiya's suite of diagram
layout tools: http://blockdiag.com/en/index.html

It can be found here:

https://code.google.com/p/asciidoc-diag-filter/

it's also referenced now http://www.methods.co.nz/asciidoc/plugins.html
(thanks, Stuart!)

- Michael

ps: I would be interested in feedback especially wrt running under
Windows, which I do not have

it could be that the Unix-specific way of handling "filter returned no
output" messages here:
https://code.google.com/p/asciidoc-diag-filter/source/browse/diag-filter.conf#6
is an issue, but that I'd fix if it comes up.

--
You received this message because you are subscribed to the Google
Groups "asciidoc" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/asciidoc/-/KLYx7fi3a2IJ.
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.


tried , no luck. again looks great stuff but very poor document.

I put this example in mydoc.txt
(example from https://code.google.com/p/asciidoc-diag-filter/)

OTHER....PART.....OF.....mydoc.txt

 475 ["seqdiag",target="seqdiag-1.png"]
 476 ---------------------------------------------------------------------
 477 {
 478     // edge label
 479     A -> B [label = "call"];
 480     A <- B [label = "return"];
 481     // diagonal edge
 482     A -> B [diagonal, label = "diagonal edge"];
 483     A <- B [diagonal, label = "return diagonal edge"];
 484 }
 485 ---------------------------------------------------------------------
 486

OTHER....PART.....OF.....mydoc.txt


but I got (from vim) this failure:

asciidoc -a toc -f ~/Downloads/diag-filter.conf -o Dropbox/temp-transfer/mydoc.html -a data-uri -a iconsdir=~/bin/asciidoc-8.6.8/images/icons/ "/data/backup/living files/mydoc.txt"
sh: /data/backup/living files/seqdiag-1.png: No such file or directory
asciidoc: WARNING: mydoc.txt: line 484: {sys:"/usr/bin/python" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "/data/backup/living files/seqdiag-1.png"}: non-zero exit status


--
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