Another beginner issue.
I am trying to move some text to the second line.
As you can see in the top image, the cursor is before "Snacks", I press enter which moves "Snacks" the second line, as expected, but not to the beginning of the textbox as would be expected in Word and Illustrator .
Next, I press backspace to remedy this and bring the text to left, but now it just creates a mess. After this point, I am totally lost.
What's a correct move to bring the text to next line?
[solved] Simple text break problem
Re: Simple text break problem
Was this text created in Inkscape in the first place?
What you're doing is correct, but in SVG files that weren't created in Inkscape there are often differences in the way that text is created that can lead to problems making subsequent edits in Inkscape.
As usual, if you can attach an example SVG file it might be easier to identify the cause of the problem.
What you're doing is correct, but in SVG files that weren't created in Inkscape there are often differences in the way that text is created that can lead to problems making subsequent edits in Inkscape.
As usual, if you can attach an example SVG file it might be easier to identify the cause of the problem.
-
- Posts: 5
- Joined: Mon Jun 22, 2015 8:33 pm
Re: Simple text break problem
It was created in R and exported as PDF, then imported in Inkscape, so that could be a cause of the problem. Attached the svg here.
- Attachments
-
- Treemap Inscape.svg
- (39.54 KiB) Downloaded 258 times
Re: Simple text break problem
If you look at the text in the XML editor you'll find it contains a <tspan> element. That element has an "x" attribute which consists of a list of positions, resulting in the x-position of each character being fixed in place, stopping the characters from moving freely as you edit.
Culling the x attribute down to just the first value fixes the issue. Deleting it entirely also does the trick (it gets re-generated with just a single number in place). You can manually do this via the text editor for each tspan element, or it might be easier to open the SVG file in a text editor and do it there. It could also be done by writing a simple Inkscape extension, which might be worth pursuing if you've got lots of these to deal with.
Culling the x attribute down to just the first value fixes the issue. Deleting it entirely also does the trick (it gets re-generated with just a single number in place). You can manually do this via the text editor for each tspan element, or it might be easier to open the SVG file in a text editor and do it there. It could also be done by writing a simple Inkscape extension, which might be worth pursuing if you've got lots of these to deal with.
Re: Simple text break problem
Xav wrote:Culling the x attribute down to just the first value fixes the issue. Deleting it entirely also does the trick (it gets re-generated with just a single number in place). You can manually do this via the text editor for each tspan element, or it might be easier to open the SVG file in a text editor and do it there. It could also be done by writing a simple Inkscape extension, which might be worth pursuing if you've got lots of these to deal with.
Or you could use Inkscape's existing command (menu 'Text > Remove Manual Kerns') …
See also e.g. Re: help with editing text in pdf?
Re: Simple text break problem
~suv wrote:Or you could use Inkscape's existing command (menu 'Text > Remove Manual Kerns') …
Erm.. what he said. For some reason that option had completely escaped my brain.

You have to select the text objects that it will apply to, so (in 0.91) select one of them then use Edit > Select Same > Object Type to hit them all at once.
Last edited by Xav on Wed Jun 24, 2015 5:01 pm, edited 1 time in total.
-
- Posts: 5
- Joined: Mon Jun 22, 2015 8:33 pm
Re: Simple text break problem
Wonderful!
Edit > Select Same > Object Type
'Text > Remove Manual Kerns'
That did the trick! Now everything is editable as it should be.
Thank you both for the help!
Edit > Select Same > Object Type
'Text > Remove Manual Kerns'
That did the trick! Now everything is editable as it should be.
Thank you both for the help!