This Ruby script converts EPS files produced by Leland Smith's SCORE music typesetting software to SVG.
ruby seps2svg.rb EPSFILE
seps4id recognizes PostScript comments starting with %svg%
as SVG code.
%svg%<rect width="100" height="100"/>
seps2svg does not check whether the XML syntax is correct. It copies whatever it finds to the output SVG verbatim.
To see some more detailed use cases for this feature, check out Craig Sapp's example pages:
One motivation was to learn and use some Ruby in the context of a real world task.