An example:
My SVG starts like this:
Code: Select all
<svg
[snip]
width="417.09067"
viewBox="-3364 -3942 4967.9354 4195.7246"
height="352.04761"
preserveAspectRatio="xMidYMid meet"
One of the objects in the SVG looks like this:
Code: Select all
<text
id="text110124"
y="-1642.8667"
x="-1065.8459">My text</text>
The text object is not contained inside any element with a transform. If I run Inkscape from the command line I can query the "real" coordinates (those displayed inside Inkscape) like this:
$ /Applications/Inkscape.app/Contents/Resources/bin/inkscape -X --query-id=text110124 myfile.svg
And get the result: 185.9494 for the X position of the text element and 190.04316 for the Y position.
How can I manually calculate this value from the coordinate data in the SVG?