Kai-Martin Knaak
2014-08-01 02:56:37 UTC
I like to put documentation on my projects on a dokuwiki web page.
However, when I got my stuff going, schematics were a bit cumbersome.
Pixelized versions tended to be huge in file size and still hardly
legible. Vector graphics did not render well in www browsers. So I
settled for downloadable PDFs.
Today, I tried again and was pleasantly surprised. The relevant tools
have improved! The new gaf tool of geda facilitates the export (Thank
you so much, Peter Brett!). There is a plugin for dokuwiki, which adds
a caption and allows to link dynamically to the figure. And finally
major www browsers can handle images in SVG format.
Here is the result:
http://bibo.iqo.uni-hannover.de/dokuwiki/doku.php?id=bauteil:spannungskonstanten&#variable_positive_spannung
(German only, but I think you get the impression)
You can click on the image to get a scaled version.
The work-flow was surprisingly straight forward:
1) export the schematic as *.eps
gaf export -l auto -o foobar.eps foobar.sch
2) convert to *.svg
inkscape --export-plain-svg=foobar.svg foobar.eps
3) command in dokuwiki :
<imgcaption xy|lorem ipsum>{{ :foobar.svg?300}}</imgcaption>
---<)kaimartin(>---
However, when I got my stuff going, schematics were a bit cumbersome.
Pixelized versions tended to be huge in file size and still hardly
legible. Vector graphics did not render well in www browsers. So I
settled for downloadable PDFs.
Today, I tried again and was pleasantly surprised. The relevant tools
have improved! The new gaf tool of geda facilitates the export (Thank
you so much, Peter Brett!). There is a plugin for dokuwiki, which adds
a caption and allows to link dynamically to the figure. And finally
major www browsers can handle images in SVG format.
Here is the result:
http://bibo.iqo.uni-hannover.de/dokuwiki/doku.php?id=bauteil:spannungskonstanten&#variable_positive_spannung
(German only, but I think you get the impression)
You can click on the image to get a scaled version.
The work-flow was surprisingly straight forward:
1) export the schematic as *.eps
gaf export -l auto -o foobar.eps foobar.sch
2) convert to *.svg
inkscape --export-plain-svg=foobar.svg foobar.eps
3) command in dokuwiki :
<imgcaption xy|lorem ipsum>{{ :foobar.svg?300}}</imgcaption>
---<)kaimartin(>---
--
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get