svgpic: new program to convert pic to svg

This is an experiment.
Like tpic it's a copy-and-paste fork of pic.

Change-Id: Ia22772bd5881c7904a6d8f8e0b46fde8cea89cbd
Reviewed-on: https://plan9port-review.googlesource.com/2920
Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
Russ Cox 2017-04-03 23:12:14 -04:00
parent a9530c00e8
commit 3ebbd193dc
19 changed files with 4034 additions and 0 deletions

View file

@ -23,6 +23,11 @@ pic, tpic \- troff and tex preprocessors for drawing pictures
[
.I files
]
.PP
.B svgpic
[
.I files
]
.SH DESCRIPTION
.I Pic
is a
@ -306,6 +311,12 @@ The box may be output this way:
.IP
.L
\ecenterline{\ebox\egraph}
.PP
.I Svgpic
accepts
.IR pic
language and produces a Scalable Vector Graphics (SVG) image
suitable for use in HTML documents.
.SH EXAMPLES
.EX
arrow "input" above; box "process"; arrow "output" above
@ -342,3 +353,7 @@ B. W. Kernighan,
.I
Unix Research System Programmer's Manual,
Tenth Edition, Volume 2
.SH BUGS
.I Svgpic
is only lightly tested.
It should handle troff commands in text output.