i generate css from sh, depending on the theme. that includes semi-random colours generated by a js library
the rendering pipeline is:
graphviz's SVG output
| an xslt script to clean up the svg
| rsvg-convert to pdf using that css
| convert(1) to png
| convert(1) to fix up the aspect ratio
oh no, i absolutely wouldn't recommend xslt if you have a choice to use almost anything else. i just learnt it very thoroughly once in 2004 and now i am cursed forever
I own this book and have found it incredibly helpful at deconstructing the basics of how it all works. It also includes plenty of examples of common things one might want to do with it: https://www.manning.com/books/xslt-quickly
Comments
|(π?π)*π
(π+π³*
|π((π+π)*π)*
(π+π³*
|(π+π)+(π+π³*)?)?)?
and in BNF:
π’ = π{π}{π³}
π΄ = π{π}π{π}
βͺ = [π’]
| {[π]π}π
[π’
|π{{π΄}π}
[π’|π΄{π΄}[π’]]]
So close to just being (π|π)*π³*, lol
(π*(π|$))*π³*
the rendering pipeline is:
graphviz's SVG output
| an xslt script to clean up the svg
| rsvg-convert to pdf using that css
| convert(1) to png
| convert(1) to fix up the aspect ratio
I don't really have any good resources either for learning it.
A mix of skimming the spec, MDN and random examples for different pieces like https://xmlgraphics.apache.org/fop/examples.html