Hi Everyone,

I'm using the LibreOffice vanilla (x64 deb) on Debian 9 stretch:
/Versione: 6.0.0.3//
//Build ID: 64a0f66915f38c6217de274f0aa8e15618924765//
//Thread CPU: 4; SO: Linux 4.9; Resa interfaccia: predefinito; VCL: gtk2; //
//Versione locale: it-IT (it_IT.UTF-8); Calc: group/

Exporting a Draw images (odg file) in SVG format, I see a perfect export, but a little text position error on the second line in a two line vertical oriented TextShape! I see it both opening the svg with specific software/viewer (Eye of GNOME (eog) 3.20.5 or Inkscape 0.92.1 r15371) and reimporting it in the same LibreOffice version on a Writer native document.

In manually fixing the correct text position, I see that the second line good coordinate can be computed from the bad ones with the simple following rules.

From the wrong XML we can define:

deltaX = x2bad - x1
deltaY = y2bad - y1

the good one seems to be corrected by computing these calculus:

x2good = x1 - deltaY   // minus and the delta of the other variable
y2good = y1 + deltaX   // plus and the delta of the other variable

It seems that the C/C++ code of the new svg filter is very good with respect to the 5.4.x one, but that in some case (multi-line vertical text shape) the second (and the following?) line position coordinates are computed with the delta swapped (and in one case added instead of subtracted).

In the p.s. you can find the good and bad portions of the SVG code.

Can I file the bug? Is it already known? Could you replicate the behaviour? May my solution be useful for the fix?

Have a nice eventing,

Carlo

p.s.

_*Good:*_

      <g class="com.sun.star.drawing.TextShape">
       <g id="id61">
        <rect class="BoundingBox" stroke="none" fill="none" x="4290" y="12787" width="1362" height="2764"/>         <text class="TextShape" transform="translate(4864,15287) rotate(-90) translate(-4864,-15287)"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="494px" font-weight="400"><tspan class="TextPosition" *x="4864" y="15287"*><tspan fill="rgb(237,28,36)" stroke="none">Integrated</tspan></tspan></tspan><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="494px" font-weight="400"><tspan class="TextPosition" *x="4851" y="15842"*><tspan fill="rgb(237,28,36)" stroke="none">USB ports</tspan></tspan></tspan></text>
       </g>
      </g>


_*Wrong:*_

      <g class="com.sun.star.drawing.TextShape">
       <g id="id61">
        <rect class="BoundingBox" stroke="none" fill="none" x="4290" y="12787" width="1362" height="2764"/>         <text class="TextShape" transform="translate(4864,15287) rotate(-90) translate(-4864,-15287)"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="494px" font-weight="400"><tspan class="TextPosition" *x="4864" y="15287"*><tspan fill="rgb(237,28,36)" stroke="none">Integrated</tspan></tspan></tspan><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="494px" font-weight="400"><tspan class="TextPosition" *x="5419" y="15300"*><tspan fill="rgb(237,28,36)" stroke="none">USB ports</tspan></tspan></tspan></text>
       </g>
      </g>


--
ing. Carlo Strata
-
via Botticelli 1/4
30031 Dolo - VE
Italia - Italy
-
tel. +39.041.822.0665
mobile +39.347.85.69.824
Skype carlo.strata
Google carlo.strata.69
-
carlo.str...@tiscali.it
PEC: carlo.str...@ingpec.eu


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to