Code

copyedit
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 5 May 2008 01:25:06 +0000 (01:25 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 5 May 2008 01:25:06 +0000 (01:25 +0000)
share/extensions/funcplot.inx
share/extensions/lindenmayer.inx

index 92858362424aa252a3bcc7ddf36d0dece8612ff7..1d5fb5e6e9a75f246089ffb40cb5e7a353f1549d 100644 (file)
@@ -5,28 +5,28 @@
   <dependency type="executable" location="extensions">funcplot.py</dependency>
   <dependency type="executable" location="extensions">inkex.py</dependency>
   <param name="tab" type="notebook">
-    <page name="sampling" _gui-text="Range and Sampling">
-      <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start x-value">0.0</param>
-      <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End x-value">1.0</param>
-      <param name="times2pi" type="boolean" _gui-text="Multiply x-range by 2*pi">false</param>
-      <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's bottom">0.0</param>
-      <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's top">1.0</param>
+    <page name="sampling" _gui-text="Range and sampling">
+      <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start value">0.0</param>
+      <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End value">1.0</param>
+      <param name="times2pi" type="boolean" _gui-text="Multiply range by 2*pi">false</param>
+      <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="value of rectangle's bottom">0.0</param>
+      <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="value of rectangle's top">1.0</param>
       <param name="samples" type="int" min="2" max="1000" _gui-text="Samples">8</param>
-      <param name="isoscale" type="boolean" _gui-text="Isotropic scaling (uses smallest: width/xrange or height/yrange)">false</param>
+      <param name="isoscale" type="boolean" _gui-text="Isotropic scaling (uses smallest of width/xrange or height/yrange)">false</param>
       <param name="polar" type="boolean" _gui-text="Use polar coordinates">true</param>
     </page>
     <page name="use" _gui-text="Use">
-      <_param name="funcplotuse" type="description">Select a rectangle before calling effect.
-Rectangle determines x and y scales.
+      <_param name="funcplotuse" type="description">Select a rectangle before calling the extension,
+it will determine X and Y scales.
 
 With polar coordinates:
-   Start and End x-values define the angle range in radians.
-   x scale is set so left and right edges of rectangle are at +/-1.
+   Start and end X values define the angle range in radians.
+   X scale is set so that left and right edges of rectangle are at +/-1.
    Isotropic scaling is disabled.
    First derivative is always determined numerically.</_param>
     </page>
     <page name="desc" _gui-text="Functions">
-      <_param name="pythonfunctions" type="description">Standard python math functions are available:
+      <_param name="pythonfunctions" type="description">Standard Python math functions are available:
 
 ceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i); 
 modf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x); 
index ebe59b4aa99650d2f3bf0308d0e622ae7e3639de..0b2b91389a428e967a3db15e6f30f82250af21ef 100644 (file)
@@ -4,6 +4,8 @@
     <id>org.ekips.filter.turtle.lindenmayer</id>
        <dependency type="executable" location="extensions">lindenmayer.py</dependency>
        <dependency type="executable" location="extensions">inkex.py</dependency>
+  <param name="tab" type="notebook">
+    <page name="rules" _gui-text="Axiom and rules">
        <param name="axiom" type="string" _gui-text="Axiom">++F</param>
        <param name="rules" type="string" _gui-text="Rules">F=FF-[-F+F+F]+[+F-F-F]</param>
        <param name="order" type="int" min="0" max="100" _gui-text="Order">3</param>
        <param name="langle" type="float" min="0.0" max="360.0" _gui-text="Left angle">16.0</param>
        <param name="rangle" type="float" min="0.0" max="360.0" _gui-text="Right angle">16.0</param>
        <param name="randomizeangle" type="float" min="0.0" max="100.0" _gui-text="Randomize angle (%)">0.0</param>
-    <effect>
+    </page>
+    <page name="help" _gui-text="Help">
+      <_param name="lhelp" type="description">
+The path is generated by applying the 
+substitutions of Rules to the Axiom, 
+Order times. The following commands are 
+recognized in Axiom and Rules:
+
+Any of A,B,C,D,E,F: draw forward 
+
+Any of G,H,I,J,K,L: move forward 
+
++: turn left
+
+-: turn right
+
+|: turn 180 degrees
+
+[: remember poing
+
+]: return to remembered point
+</_param>
+    </page>
+  </param>
+  <effect>
                <object-type>all</object-type>
                 <effects-menu>
                     <submenu _name="Render"/>
                 </effects-menu>                                                                
-    </effect>
-    <script>
-        <command reldir="extensions" interpreter="python">lindenmayer.py</command>
-    </script>
+  </effect>
+  <script>
+    <command reldir="extensions" interpreter="python">lindenmayer.py</command>
+  </script>
 </inkscape-extension>