SVG + Wiki + Xcircuit

Discuss SVG code, accessible via the XML Editor.
taylorjonl

SVG + Wiki + Xcircuit

Postby taylorjonl » Mon Nov 30, 2009 5:14 pm

I am trying to write some SVG files of some electrical circuits for a wiki page but am having some major issues...

I followed the instructions at the following URL:

http://en.wikipedia.org/wiki/Wikipedia: ... g_Xcircuit

I got a valid SVG file that I was able to open in Inkscape and add a few pieces of text, but when I save the file and upload it to my Wiki it is FUBAR, it is missing the circuit and has only the text. Below is the URL:

https://sourceforge.net/apps/mediawiki/ ... ircuit.svg

So from the summary page you see the text I added, along with a couple of the objects from the circuit, but it is missing a ton. But if you download the open file:

https://sourceforge.net/apps/mediawiki/ ... ircuit.svg

It has everything. I am thinking I need to merge some layers or something? Any ideas?

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG + Wiki + Xcircuit

Postby sas » Tue Dec 01, 2009 1:42 am

This is probably the same issue as in another recent thread, except that this time the bug is in whatever MediaWiki uses to render SVG files. You could test this by uploading the example file in that thread to the wiki, to see if the red line fails to display.

If this is the problem, you should be able to work around it by selecting the "Force repeat commands" option in the "SVG output" section of Inkscape Preferences. (After doing this, open your image, ungroup it and then re-group, and then save. This should change the path data to a form that the wiki can handle.)


Return to “SVG / XML Code”