inkscape.Ypatern/y_pattern.inx
2026-09-24 10:39:18 +02:00

92 lines
4.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Textes source en anglais, traduits par le catalogue « yarrowpattern »
(locale/<langue>/LC_MESSAGES/yarrowpattern.mo). Après toute modification
d'un texte : python i18n.py, puis compléter po/fr.po et relancer.
-->
<inkscape-extension translationdomain="yarrowpattern"
xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Y Arrow Pattern Fill</name>
<id>fr.alexp.yarrowpattern</id>
<param name="tab" type="notebook">
<page name="motif" gui-text="Pattern">
<param name="period" type="float" precision="3" min="0.01" max="10000"
gui-text="Period (distance between two Ys):">10.0</param>
<param name="arm" type="float" precision="1" min="5" max="95"
gui-text="Arm length (% of period):">83.0</param>
<param name="barb" type="float" precision="1" min="0" max="80"
gui-text="Barb length (% of period):">33.0</param>
<param name="angle" type="float" precision="1" min="-360" max="360"
gui-text="Pattern rotation (°):">0.0</param>
<param name="stroke_width" type="float" precision="3" min="0.001" max="10000"
gui-text="Stroke width:">0.5</param>
<param name="unit" type="optiongroup" appearance="combo" gui-text="Unit:">
<option translatable="no" value="mm">mm</option>
<option translatable="no" value="cm">cm</option>
<option translatable="no" value="px">px</option>
<option translatable="no" value="pt">pt</option>
<option translatable="no" value="in">in</option>
</param>
<param name="stroke_color" type="color" appearance="colorbutton"
gui-text="Stroke color:">3014898687</param>
</page>
<page name="remplissage" gui-text="Fill">
<param name="mode" type="optiongroup" appearance="combo"
gui-text="Shape edge:">
<option value="clip">Clip patterns at the outline</option>
<option value="whole">Whole patterns only</option>
</param>
<param name="margin" type="float" precision="3" min="0" max="10000"
gui-text="Margin to the outline (whole patterns):">0.0</param>
<param name="anchor" type="optiongroup" appearance="combo"
gui-text="Grid anchor:">
<option value="document">Document origin (pattern continuous across shapes)</option>
<option value="shape">Center of each shape</option>
</param>
<param name="flatness" type="float" precision="3" min="0.001" max="10"
gui-text="Curve sampling precision:">0.2</param>
<param name="keep_original" type="bool"
gui-text="Keep the original shape">true</param>
</page>
<!-- Image générée par docs/schema_parametres.py (en anglais : Inkscape
ne traduit pas le chemin d'une image). -->
<page name="diagram" gui-text="Diagram">
<image width="900" height="694">images/parameters_en.png</image>
</page>
<page name="help" gui-text="Help">
<label xml:space="preserve">Select one or more closed shapes
(path, rectangle, circle, ellipse, polygon),
then run the extension.
The pattern is a grid of "Y" shapes whose arms
each end with a chevron. The period is the distance
between two neighbouring Ys; arms and barbs are given
as a percentage of this period (83 % and 33 %
reproduce the original pattern).
"Clip patterns at the outline" cuts the strokes on the
shape edge; "Whole patterns only" keeps only the
complete Ys that fit inside, within the margin.
One path is created per pattern, in a group placed
just above the shape. Inner subpaths are treated
as holes (even-odd rule).</label>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="AlexDesign"/>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">y_pattern.py</command>
</script>
</inkscape-extension>