understadning x-position in xml

Post questions on how to use or achieve an effect in Inkscape.
FUNimations
Posts: 1
Joined: Tue Jul 23, 2013 9:41 pm

understadning x-position in xml

Postby FUNimations » Tue Jul 23, 2013 10:14 pm

I have this situation where i can't make sense of.
I have 2 layers, each have a text. When i view the text in inkscape both seems to be right underneath each othter.
However when i use a tool to convert te svg to a png, 1 of the 2 text is of by 21px.

The top layer dispalys the text correctly and the lower doens't.
As i see, there is a 21 px difference between the 2 x values of the texts on the 2 layers.
So the convertion tool is correct in my opinion to put a 21 px difference.
But why does it show underneath each other in inkscape?
I need the text to be underneath each other.

Code: Select all

<g
     inkscape:groupmode="layer"
     id="layer33"
     inkscape:label="Z-35-6LBE-3"
     style="display:none"
     sodipodi:insensitive="true"
     transform="translate(0,-2.5390623e-6)">
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:Sans"
       x="57.123074"
       y="399.51675"
       id="text6842-7-4-8-6-1"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan6844-83-4-1-2-1"
         x="57.123074"
         y="399.51675">Z-35-6</tspan><tspan
         sodipodi:role="line"
         x="57.123074"
         y="417.01675"
         id="tspan4972">LBE-3</tspan></text>
  </g>
<g
     inkscape:groupmode="layer"
     id="layer36"
     inkscape:label="Z-35-6ALBE-3"
     style="display:none"
     sodipodi:insensitive="true"
     transform="translate(0,-2.5390623e-6)">
   
    <text
       xml:space="preserve"
       style="font-size:14px;font-style:normal;font-weight:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:Sans"
       x="78.161217"
       y="321.5582"
       id="text6842-7-4-8-6-9-59"
       sodipodi:linespacing="125%"><tspan
         sodipodi:role="line"
         id="tspan6844-83-4-1-2-5-4"
         x="78.161217"
         y="321.5582">Z-35-6A</tspan><tspan
         sodipodi:role="line"
         x="78.161217"
         y="339.0582"
         id="tspan4966">LBE-3</tspan></text>
  </g>


I've read somewhere that the transform attribute could be a reason, but since they have the same values on both layers...

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

Re: understadning x-position in xml

Postby hulf2012 » Fri Jul 26, 2013 1:49 am

Hello:
Did you solve your problem?
Which tool are you using? Maybe you know that Inkscape has an option to export the svg to png (Shift+Ctrl+E).

I think that a practical advice is to convert the inkscape-svg, to a plain-svg file, and then export with the tool you want (again, which is?)

Underneath? ... You mean... one text "over" the other in the "z" axis, or one text on top of the other in "y" axis?.

I have to say that the SVG coordinate system it's not something that I understand. My advice here is: Just try and error.
Perhaps We must read:
http://www.w3.org/Graphics/SVG/IG/resou ... coordinate

And discuss later...

Greetings
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.


Return to “Help with using Inkscape”