SVG graphics support was suggested on wikipedia-l. I like the idea; that's why I tried it for Nupedia once, but... :-( Proposal: * [[svg:foobar]] is just plain-text editable, but displays as an image * A link to [[svg:foobar]] is displayed as an image as well
Optional, after saving an edit to [[svg:foobar]], an image (foobar.png) could be created via svg2png (never tried that, though). The image would then be displayed instead of the SVG, and "real" SVG display could be turned on in the user options (until most browsers support native SVG).
I didn't make this a feature request yet.
Magnus
Magnus Manske wrote:
SVG graphics support was suggested on wikipedia-l. I like the idea; that's why I tried it for Nupedia once, but... :-( Proposal:
- [[svg:foobar]] is just plain-text editable, but displays as an image
- A link to [[svg:foobar]] is displayed as an image as well
Optional, after saving an edit to [[svg:foobar]], an image (foobar.png) could be created via svg2png (never tried that, though). The image would then be displayed instead of the SVG, and "real" SVG display could be turned on in the user options (until most browsers support native SVG).
I didn't make this a feature request yet.
I'm not sure that SVGs are sufficiently user-friendly for it to make sense to edit the source wiki-style, except perhaps for the simplest of images (maybe for [[Square]] and [[Triangle]]...). To me, it makes more sense to keep them in the [[image:]] space, with automagic conversion[1] when we notice we're dealing with a *.svg. People can save the file, edit it by hand or in an editor, and reupload; old revisions of uploaded files are now kept and can be reverted easily if need be.
[1] Options for display could be: * Inclusion of SVG code in single X(HT)ML document (for the future) * Link to SVG as an <img> (Mozilla should handle this? I think) * Link to SVG as <object> using plugin (ex, Adobe SVG viewer) * Conversion to PNG * ?
-- brion vibber (brion @ pobox.com)
On Sun, Aug 11, 2002 at 12:52:32PM -0800, Brion VIBBER wrote:
I'm not sure that SVGs are sufficiently user-friendly for it to make sense to edit the source wiki-style, except perhaps for the simplest of images (maybe for [[Square]] and [[Triangle]]...).
I agree, editing that XML by hand is not going to be much used. There are already applets out there that let you do some editing on an image. See, and be amazed:
http://twiki.org:80/cgi-bin/view/Plugins/TWikiDrawPlugin
Unfortunately it's not using SVG although they seem to consider it. See:
http://twiki.org/cgi-bin/view/Plugins/TWikiDrawSvgPluginDev
It's a nice reminder of what is possible.
To me, it makes more sense to keep them in the [[image:]] space, with automagic conversion[1] when we notice we're dealing with a *.svg.
For conversion to PNG I just tried the Batik tools. They are in the form of Java jar files. At the moment I cannot get it to render text in images, but it also complains about some missing fonts, so that could be my fault. For the rest it seems to be working fine. In case you are interested and want to try it yourself:
-- Jan Hidders
wikitech-l@lists.wikimedia.org