Editing svg in Inkscape text strange behavior

Post questions on how to use or achieve an effect in Inkscape.
movers22
Posts: 1
Joined: Fri Aug 07, 2015 12:06 am

Editing svg in Inkscape text strange behavior

Postby movers22 » Fri Aug 07, 2015 3:55 am

When I edit the text in the enclosed svg, the behavior seems wrong - any ideas? If I try and place my cursor somewhere in the text, the cursor does not appear where intended and then deleting or adding charachters adds them in another location entirely. Using cursor arrow keys does not seem to move cursor location as expected.

Inkscape .91
Linux Mint 17.1 64 bit

Link to example file http://www.mediafire.com/download/3k6p4 ... h/test.svg

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Editing svg in Inkscape text strange behavior

Postby Maestral » Fri Aug 07, 2015 7:35 am

There `s a lot of unusual things in your file..

- Layer panel shows only Layer 1 but text is somehow referencing to a non existing layer 3845 or something like that.
- When "space" is inserted and text is braked with "enter", lines of text are acting like separate objects.
- Your file also has some references to resources (obviously not embedded) and I`d check if that might corrupted the file structure.
- Usually, these visually separated text portions should be individual portions of text, but the One who made this in one Flowed text box must be a friend of master Yoda, at least.

Behavior of the cursor is undoubtedly strange, but since it`s not much text, I`ll advise another round of typing and formating. Neither the formating should be much of a set back.

p.s.
Though, would like to hear another opinion. Curiosity dies last ,)
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Editing svg in Inkscape text strange behavior

Postby tylerdurden » Fri Aug 07, 2015 7:55 am

Regular text created by Inkscape is always inside a <tspan> object that is wrapped by a <text> object. The first <tspan> in a line is marked by a private Inkscape attribute to indicate it is the start of a new line. This is how Inkscape knows how to insert new lines in the middle of a section of text and move the following lines down (SVG includes no such mechanism). Text in SVG files created not by Inkscape will be missing this attribute and may be structured differently. Inkscape may have problems editing such text.

http://tavmjong.free.fr/INKSCAPE/MANUAL ... ating.html
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Editing svg in Inkscape text strange behavior

Postby Maestral » Fri Aug 07, 2015 8:06 am

^ <tspan>`s are there (in notepad and in xml Editor) and do represent individual portions of text, but when I reopened your file, Inkscape again opened completely outside of screen and is accessible only through the "maximized" window. ?!

* no kerning options were available for this text, since ti looked to me like broken lines spacing.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Editing svg in Inkscape text strange behavior

Postby tylerdurden » Fri Aug 07, 2015 8:44 am

The sodipodi attributes inside the <tspan> tags are not there, so linespaceing is clobbered.

from above quote:
The first <tspan> in a line is marked by a private Inkscape attribute to indicate it is the start of a new line. This is how Inkscape knows how to insert new lines in the middle of a section of text and move the following lines down (SVG includes no such mechanism).


The text can be edited in-situ by using the xml editor, or the sodipodi info can be added in a text/unix editor, or it can all be re-set (re-typed).
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/


Return to “Help with using Inkscape”