2009/4/17 Svenn Are Bjerkem <[email protected]>:
> 2009/4/17 Svenn Are Bjerkem <[email protected]>:
>> Hi,
>> I have been playing with pstoedit and inkscape in order to convert
>> xcircuit files to svg to use in a desktop wiki called zim. zim text
>
> Hi again,
> funny how things can be found just after you give up and decide to ask
> for help: 
> http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Electronics/How_to_draw_SVG_circuits_using_Xcircuit
> give a detailed procedure how to prepare svg for use with wikipedia.
> Unfortunately for me, the skencil that installs with debian exits with
> an error:
>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 364, in deletecommand
>    self.tk.deletecommand(name)
> TclError: can't delete Tcl command

I'll end this monologue for now by adding that, based on the
description from the wikipedia page above, I looked for alternative
tools that pstoedit supports that also can convert to svg. Good old
xfig came to a rescue. Its conversion tool, fig2dev, has a beta
support for svg, and pstoedit -f fig circuit.ps circuit.fig, followed
by a
fig2dev -L svg circuit.fig circuit.svg, give me a nice svg that just
fits the circuit that I drew in xcircuit.
What I now discover is that the svg that I get does not use aliasing
the same way as convert does when converting ps to png. The png is a
bit blurred where svg is edge sharp, but also the fonts get a bit edge
sharp and difficult to read. Actually convert does a very good job on
the xcircuit files as the drawing is good even at high magnification.
In the image viewing tool in Gnome the svg file is looking worse than
the png at high magnification.

Since png is supported by pdflatex I will probably stick to convert
for now as svg will most likely make problems with pdflatex.

-- 
Svenn

_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to