Search code examples
graphicssvgdiagramming

Is SVG a safe choice for basic graphics?


(I apologize if this belongs in stackexchange.com - I'm not sure how to tell)

I am a big fan of the dot language and want to adopt a language for my more complex diagramming needs (e.g. software architecture graphics, business school papers, personal notes etc.) and want something that is a good compromise on these:

1) Relatively easy to read and understand (like dot), and not too verbose. So far my research has shown that there is no clear favorite.

2) Easy to tweak by hand (i.e. in a text editor). The initial drawing can be done in a graphics package but if you just want to change some text or a color, it should be easy to do with plain text *NIX tools. So that rules out Flash.

3) It won't fall out of favor one day and risk being a waste of effort and I'd need to migrate my diagrams to some other format.

I'm put off by Metapost because it looks complicated, but I'm not sure if SVG is being obsoleted and Adobe are putting all their investment into Flash.


Solution

  • 1) Relatively easy to read and understand (like dot), and not too verbose. So far my research has shown that there is no clear favorite.

    dot's more high-level than SVG is; last I checked, SVG was one of dot's output formats.

    2) Easy to tweak by hand (i.e. in a text editor). The initial drawing can be done in a graphics package but if you just want to change some text or a color, it should be easy to do with plain text *NIX tools.

    Handwritten SVG is fairly easy to edit in a text editor, much like handwritten HTML.

    Computer-generated SVG is fairly irritating to edit in a text editor, much like Word-generated HTML.

    3) It won't fall out of favor one day and risk being a waste of effort and I'd need to migrate my diagrams to some other format.

    All current browsers have SVG support, including IE.. As far as I can tell, SVG is a relatively safe graphics format to write in.

    I'm put off by Metapost because it looks complicated, but I'm not sure if SVG is being obsoleted and Adobe are putting all their investment into Flash.

    Adobe's interest is fairly irrelevant at this point. You may be thinking of a time when Adobe's SVG plugin was the only way to view SVG, but those days are long gone (and the plugin is defunct). These days, SVG is fairly well supported in browsers, at least for static images. Additionally, the SVG-related technologies that browsers support has been steadily increasing in all browsers over the past few years (it's a complex spec), and I see no reason why SVG support would stall or reverse.