
On Tue, 2007-09-25 at 11:48 -0500, Aaron Spike wrote:
Ted Gould wrote:
I'm not sure what you mean here. Currently the defaults are coded in, but then you can override them with parameters. If you don't specify an interpreter the scripting implementation will try to execute them directly, so that would be the same as not specifying at all. Of course, you could just set the interpreter to "" in your preferences also.
Oh, well that is fantastic. I haven't explored this area in a long while. And I very well could have misunderstood it when I explored it the first time. I vaguely remember Mental had to make a small change in Inkscape proper to allow ruby scripts to function. I could be wrong. Could you please add a little documentation on using nonstandard interpreters to the wiki? or point me to the place where these docs already exist?
Documentation, you know better than to ask for that :)
The table that Mental edited is this one:
http://inkscape.modevia.com/doxygen/html/namespaceInkscape_1_1Extension_1_1I...
It in the interpreter table which is what is used to handle the interpreter attribute. If the entry in the attribute matches one in the table then something is prefixed to the child data of the command element. Here is the code:
http://inkscape.modevia.com/doxygen/html/script_8cpp-source.php#l00113
The first thing that is checked is the preferences. Under the "extensions" object the specific interpreter is looked for. Otherwise the default in the table is used.
I hope that info helps.
--Ted