I was not aware of Pitchr, so thanks for posting this. I have used dot (graphviz) a lot, but Pitchr looks to fill a different niche.
Yes it does, while also very much being of the do-one-job-well philosophy. Not surprising from something Brian Kernighan wrote.
Is Pitchr available as a executable somewhere? All I could find was the C source code file. Thanks,
No, Pikchr is not currently available as an executable. However pretty much any C build environment will create an executable as follows.
1. Get the (very small, zero dependency) Pikchr source from one of:
a) https://pikchr.org/home/download . This is an automatic tarball/zip/sqlar from the latest Fossil checkin.
b) the command "fossil clone https://pikchr.org/"
2. cd pikchr
make
this will give you a binary called "pikchr" (probably PIKCHR.EXE for Windows, but I have never tried with Windows)
3. You can then try pikchr:
./pikchr --svg-only examples/headings01.pikchr
will produce only the SVG code corresponding to the Pikchr code.
./pikchr examples/headings01.pikchr > /tmp/headings.html
This wraps the SVG in HTML, you can point your web browser at /tmp/headings.html
I have an SVG convertor called rsvg-convert from the librsvg2-bin package. Using this I can generate PNG:
./pikchr --svg-only examples/headings01.pikchr | rsvg-convert > /tmp/headings.png
--
Dan Shearer
dan-QNUrB6Xd9YFAfugRpC6u6w@public.gmane.org