4 ms·
There already is support for this (and more) in man pages. https://www.troff.org/prog.html#dformat https://www.troff.org/prog.html#dformat https://en.wikipedi
by mzs 7y ago
There already is support for this (and more) in man pages.
https://www.troff.org/prog.html#dformat https://www.troff.org/prog.html#dformat
https://en.wikipedia.org/wiki/Pic_language https://en.wikipedia.org/wiki/Pic_language
$ <<EOF nroff -p | col -b
> .PS
> lineht = lineht / 2
>
> box "\fIletter.tr\fP"
> arrow
> circle "tbl"
> arrow
> Eqn: circle "eqn"
> arrow
> Troff: circle "troff"
> arc cw
> line down
> arc cw
> left
> arrow
> circle "grops"
> arrow
> box "\fIletter.ps\fP"
>
> up
> line <- from Troff.n
> arc
> line
> box "\fItmac.m\fP"
> .PE
>
──────
tmac.m
│
letter.tr──── tbl ───── eqn ─────troff
│
───── ─────
letter.ps grops