This Ruby script converts EPS files produced by Leland Smith's SCORE music typesetting software to SVG.
git clone https://github.com/craigsapp/seps2svg
cd seps2svg
make
you will probably have to install ruby (I am using ruby v.2.7.0). One way is with RVM (Ruby Version Manager).
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.