Attach text to objects in diagram graphics
Migrated from https://bugs.launchpad.net/inkscape/+bug/171105
From 2006-01-25
Summary (edit):
I am using Inkscape to do Visio-like things. Creating these nodes is a bit lengthy and repetitive since I have to create the text, the node (e.g. a rectangle), select and align them and finaly group them if I have to move them around for finding an optimal layout.
The Flow into Frame option is not very useful for this since I can only specify that the text should be centered horizontally; I need vertical centering also, and maybe right-click menu option like "attach text to object".
Additional Information/Comments:
Bug Importer (bug-importer) wrote on 2006-02-12:
I looked at the SVG 1.2 spec and saw no easy way in it.
Aside from the obvious of automatically grouping the object and text together, it occures to me that attached text could be handled the same way as connectors: add an Inkscape attribute whose value is the ID of the object the text is attached to. Would also need attributes to describe the relative placement of the text.
Since one of my own projects is a utility to generate code from Inkscape diagrams, I would prefer the extra attributes. This is a lot easier for discovering the association.
Migrator's Notes:
- LibreOffice Draw, mentioned at #793 (comment 273418607), has this ability of creating a vertically-aligned text box automatically by clicking in an object with its Text tool. Dia also shares this ability. A feature like this in Inkscape could virtually eliminate
Flow into Frame
, at least for diagramming. - Related to vertical centering: #760
- Tangentially related to vertical centering: #199