tspan with and without coordinates

General discussions about Inkscape.
iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

tspan with and without coordinates

Postby iconberg » Wed Feb 11, 2015 11:05 pm

Hi,

if i make a text and type it in direct on the sheet the tspan get x and y coordinates.
Typing the text via ctrl+shit+t and text-window the tspan created without coordinates.
Good to know they can be created without coordinates, was afraid to calculate new lines via font-size and spacing.

But why not make it more clear and discard the coordinates at all?

greetz

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: tspan with and without coordinates

Postby hulf2012 » Thu Feb 12, 2015 1:37 am

iconberg wrote:Hi,

if i make a text and type it in direct on the sheet the tspan get x and y coordinates.
Typing the text via ctrl+shit+t and text-window the tspan created without coordinates.
Good to know they can be created without coordinates, was afraid to calculate new lines via font-size and spacing.

But why not make it more clear and discard the coordinates at all?

greetz


Before trying was thinking you were confusing flowed text, with "simple" text, or that you were using 0.48 version

But after some trying I see the diferences

Code: Select all

  <g
     inkscape:label="Capa 1"
     inkscape:groupmode="layer"
     id="layer1">
    <text
       xml:space="preserve"
       style="..."
       x="275.81104"
       y="570.18896"
       id="text3364"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3368">hola mundo</tspan><tspan
         sodipodi:role="line"
         id="tspan3370">adiós mundo</tspan></text>
    <text
       xml:space="preserve"
       style="..."
       x="283.74802"
       y="685.27557"
       id="text3372"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan3374"
         x="283.74802"
         y="685.27557">hola mundo</tspan><tspan
         sodipodi:role="line"
         x="283.74802"
         y="735.27557"
         id="tspan3376">adios mundo</tspan></text>
  </g>

There are a "1000 ways to die" with SVG format. Maybe a developer forget that subtle change. It's my biased opinion, we are humans after all.

Also, I note that the lines without coordinates appear like one single line, when opening the file with firefox.

I'm afraid you wil have to take in account the coordiantes of each line of text.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: tspan with and without coordinates

Postby iconberg » Thu Feb 12, 2015 4:23 am

So its a bug, not a feature?
Maybe it is a feature and only the export as normal svg is broken... :) :D

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: tspan with and without coordinates

Postby hulf2012 » Thu Feb 12, 2015 8:09 am

iconberg wrote:So its a bug, not a feature?
Maybe it is a feature and only the export as normal svg is broken... :) :D


Jeje... if your question its's not retorical... I don't know... I think it's something unexpected...
That may change... or not...

To learn a little more of tspan

iconberg
Posts: 36
Joined: Wed Feb 04, 2015 7:46 pm

Re: tspan with and without coordinates

Postby iconberg » Thu Feb 12, 2015 8:07 pm

hulf2012 wrote:Jeje... if your question its's not retorical... I don't know... I think it's something unexpected...
That may change... or not...


Just retorical like: To be or not to be :D
Well, the offset via dx, dy is interesting, so it would be possible to move a text only by changing the parent. But not used yet by inkscape if i see it right.

Well, i cant find it in the bug launchpad so i hope it is a feature :)


Return to “General Discussions”