Difference between revisions of "WikiExporter"
Jump to navigation
Jump to search
LionKimbro (talk | contribs) m (* docpath -> docbase) |
LionKimbro (talk | contribs) (*success! summary, how it works) |
||
Line 1: | Line 1: | ||
I've written 4 files that, together, make it so you can save to an [http://www.oddmuse.org/cgi-bin/wiki OddMuse] wiki. | |||
Basically, it goes like this: | |||
* A script is called from Inkscape when the user saves, | |||
* the script reads the SVG document to figure out what directory it was saved to, | |||
* the script reads it to figure out what filename was used as well, | |||
* information about the target wiki is read from the directory the SVG was saved to, | |||
* the Inkscape SVG is uploaded to the wiki, | |||
* and a PNG version is uploaded to the wiki as well. | |||
This all requires 4 files: | |||
* odd_output.inx -- Inkscape extension definition | |||
* svg2oddmuse.sh -- coordinates most everything | |||
* svgattrs.py -- scans the SVG file for <svg ...> attributes | |||
* wikiupload.py -- oddmuse upload script | |||
The wiki | Furthermore, the user creates a custom file, "notes.txt". | ||
The file details the username and wiki URL for svg2oddmuse.sh. | |||
The [http://www.emacswiki.org/cw/InkscapeToOddmuse full description of how it works] is on [http://communitywiki.org/ CommunityWiki.] | |||
Next, I intend to write code to ''read'' Inkscape SVG from the wiki as well. | |||
'' | |||
Revision as of 10:09, 13 February 2005
I've written 4 files that, together, make it so you can save to an OddMuse wiki.
Basically, it goes like this:
- A script is called from Inkscape when the user saves,
- the script reads the SVG document to figure out what directory it was saved to,
- the script reads it to figure out what filename was used as well,
- information about the target wiki is read from the directory the SVG was saved to,
- the Inkscape SVG is uploaded to the wiki,
- and a PNG version is uploaded to the wiki as well.
This all requires 4 files:
- odd_output.inx -- Inkscape extension definition
- svg2oddmuse.sh -- coordinates most everything
- svgattrs.py -- scans the SVG file for <svg ...> attributes
- wikiupload.py -- oddmuse upload script
Furthermore, the user creates a custom file, "notes.txt". The file details the username and wiki URL for svg2oddmuse.sh.
The full description of how it works is on CommunityWiki.
Next, I intend to write code to read Inkscape SVG from the wiki as well.