A simple Inkscape extension that lets you extract attributes (like id) from all selected paths, and show them as <text> elements inside the paths.
Useful for when you want to have all paths' id shown on the SVG document as <text> nodes.
You can also use it for other path attributes, like `label`, `fill`, `stroke`, `width`, `height`.
Available under the Extensions > Text submenu.
Check the extension's repo on GitHub for examples.
Options for styling and formatting the text:
Font size in pixels
Color (the fill color of the <text> elements)
Font (should be installed on the system)
Font Weight (should be supported by the selected font)
Angle (controls the rotation of the generated <text> elements, in degrees)
Options for further editing the extracted text (only used with id and label attributes):
Text to replace (a simple replace function to remove characters you may not want from the text)
Match Regular Expression (matches the extracted text of each path to a
I want to thanks Whidev for this great extension! I downloaded it with great anticipation, as it's just what I needed. I got an error message the first time I ran it but was able to figure it out. My experience might help others so I'm sharing it here.
The extension looks for the data in the "d" attribute of a path. I had drawn some simple rectangles and circles to experiment with it. Those don't have a "d" attribute. I converted them both to paths (object to path). Ran again and it worked perfectly!
Thanks again, Whidev!
a fellow Inkscaper
Ellen
Hello,
Thank you for providing this extension for Inkscape users!
This is just to let you know that most 3rd party Inkscape extensions, like this one, probably will not work with the upcoming new Inkscape version, the long-awaited version 1.0.
Here is the info you need to update this extension, so that it will work with 1.0 and future versions.
https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0
If you have further questions, you can contact Inkscape developers via mailing lists (https://lists.inkscape.org/postorius/lists/?all-lists), forum (https://inkscape.org/forums/extensions/), or the chatroom (https://chat.inkscape.org/channel/team_devel)
If you have already updated it, please disregard this message.
All best,
brynn