Achim Flammenkamp wrote: > On Tue, Jul 10, 2012 at 03:28:55PM -0400, Derric Atzrott wrote: >> A quick skim through the UploadBase.php file shows that the code for >> checking SVG files is in UploadBase:: detectScriptInSvg( $filename ). This > ..... >> The rest of the modifications that would be needed (creating new namespace, >> modifying how pages are displayed, etc.) I can't begin to guess at the >> difficulty of, but that one at least looks fairly straight forward. > > It seems to be best, if I shut my mouth now and not offer further design > ideas. > ;)
Right... I think you're being a bit obstinate in this thread. You have a specific implementation idea, which is fine, but I think it sucks. An SVG namespace with XML in the textarea is frankly just a terrible idea. XML is a complete pain in the ass to edit by hand. Does anyone edit SVGs this way unless forced to? Did you look at <https://www.mediawiki.org/wiki/Extension:SVGEdit> and the demo at <https://toolserver.org/~brion/svg-edit/svg-editor.html>? It's open source, maintained, it has good browser support, and Brion has already done some of the heavy lifting moving it into a MediaWiki extension. It's a visual editor (which covers over 99% of users), but it also includes the ability to view and modify the raw underlying SVG code. In my estimation, I would say that SVGEdit is about 1000 times more likely to be deployed to Wikimedia wikis than your proposal of creating an SVG namespace and simply dumping XML into pages. Resources are painfully finite and your proposed solution just seems painful. That said, if this idea from Daniel Kinzler ever comes to fruition, it sounds remarkably similar to what you want to do: <http://lists.wikimedia.org/pipermail/wikitech-l/2012-March/059358.html>. Perhaps some mixture of your idea and a visual frontend could be implemented. Your past posts on this subject make it seem like you're completely focused on _only_ raw SVG code editing, though. I don't think pursuing that path forward (alone) is a good idea. MZMcBride _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
