Help:SVG/basic2

From Wikimedia Commons, the free media repository
Jump to: navigation, search

ChemDraw[edit]

Files from this editor can easily be made W3C-valid by opening up the file in Inkscape and saving the file as "Optimized SVG". Then upload the file and add the template: {{Created with Chemdraw}}.

BKchem[edit]

Files from this editor can be made W3C-valid by opening up the file in a text-editor and:

  1. Removal of cdml-files
  2. Removal of the line: xmlns:cdml="http://www.freesoftware.fsf.org/bkchem/cdml" out of the header of the file.

Then upload the file.

CorelDRAW[edit]

Files from this editor can be made W3C-valid by opening up the file in Inkscape and:
1. Selecting all the elements of the file. Ungroup all the elements of the file. And then press File/Vacuum Defs. This will declutter the file.

2. It might be that the file is still not W3C-valid. One reason can be the text in the SVG-file. A quick and dirty solution is to press Path/Object to Path with all the elements of SVG-file still selected. All the elements of the SVG-file will be paths now. Regroup all the elements of the file by pressing the group-button or by pressing CTRL+G.

3. Save the file as Plain SVG. (There is no consensus on this. For the pros and cons on this, see this page: https://commons.wikimedia.org/wiki/Help:Inkscape#Bugs_and_workarounds).

4. Then upload the file. And add the templates: {{ValidSVG}} and {{created with CorelDraw}}.

If this still hasn't worked, you can open the file in a text-editor. SVG-files consist of XML-code and this code can be worked upon.

Page made by Wereldburger758 (talk) 16:37, 6 April 2014 (UTC). For questions, visit my talkpage.