On 2015-07-02 13:51 (+0200), W. Martin Borgert wrote:
Now I'm looking into Inkscape, but I encountered some problems:
I draw a create a rectangle and place a text object inside and
align the text object horizontally and vertically with the square:
+‾‾‾‾‾‾‾‾‾‾‾‾‾+
| Ask someone |
| for help |
+_____________+
Later on, I change the text:
+-------------+
| Ask someone |
| for help |
| or give up. |
+-------------+
Unfortunately, now I have to re-align again. Is there any way to do
this automatically like in Dia?
No, current Inkscape has no such built-in feature.
Also, I would like to adjust the height of the box accordingly.
If this is not possible out of the box, but would it be possible to
write a Python script/plugin to do it?
Someone already did - see this earlier thread:
http://thread.gmane.org/gmane.comp.graphics.inkscape.user/15133
Source:
https://gist.github.com/tbnorth/7420972
Can Inkscape run a plugin automatically e.g. on every text change?
No, not supported in the current extension system for script-based
extensions.
Regards, V