-
Notifications
You must be signed in to change notification settings - Fork 2
/
ids_to_text.inx
42 lines (42 loc) · 2.22 KB
/
ids_to_text.inx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape">
<name>Ids to Text</name>
<id>org.inkscape.render.ids_to_text</id>
<param name="path_attribute" appearance="combo" gui-text="Path attribute to show:" type="optiongroup">
<option value="id">Id</option>
<option value="label">Label</option>
<option value="fill">Fill color</option>
<option value="stroke">Stroke color</option>
<option value="width">Width</option>
<option value="height">Height</option>
</param>
<param name="fontsize" type="int" min="1" max="1000" gui-text="Font size (px):">10</param>
<param name="color" type="color" appearance="colorbutton" gui-text="Text color:">255</param>
<param name="font" type="string" gui-text="Font:">Roboto</param>
<param name="fontweight" appearance="combo" gui-text="Font weight:" type="optiongroup">
<option value="light">Light</option>
<option value="normal">Normal</option>
<option value="italic">Italic</option>
<option value="medium">Medium</option>
<option value="bold">Bold</option>
</param>
<param name="replaced" type="string" gui-text="Text to replace:" />
<param name="replacewith" type="string" gui-text="Replace with:" />
<param name="matchre" type="string" gui-text="Match regular expression:" />
<param name="angle" type="float" min="-360" max="360" gui-text="Angle (°):">0</param>
<param name="capitals" type="bool" gui-text="Capitalize all text">false</param>
<param name="group" type="bool" gui-text="Group paths with the generated text elements">false</param>
<label appearance="header">Help</label>
<label>Lets you extract the ids (or other attributes) from all selected paths and show them as text elements inside the paths.
Examples and more info:</label>
<label appearance="url">https://github.com/whiplashoo/ids_to_text_inkscape</label>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Text" />
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">ids_to_text.py</command>
</script>
</inkscape-extension>