You might want to consider SVG only as an output format. As a graphics format it is very baroque with many special cases and sundry obscure corners. If you like grand challenges, round-tripping SVG might be interesting. Unfortunately this would likely consume all the effort that you would otherwise want to spend on actual graphics.