
On 2015-07-03 10:44 (+0200), su_v wrote:
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
Gmane seems to be unreliable these days - here's the link to the same thread (from Nov 2013) in the list's archive at sf.net:
http://sourceforge.net/p/inkscape/mailman/message/31626535/
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