Bug 116967 - Textshape with "Rotated" transform from a Draw export to .svg -- valid SVG 1.2 transform syntax or not?
Summary: Textshape with "Rotated" transform from a Draw export to .svg -- valid SVG 1...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
6.0.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL: https://www.w3.org/TR/SVG11/attindex....
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2018-04-12 13:54 UTC by Robert Helmkamp
Modified: 2023-06-26 03:12 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Graphic with text rotated to vertical direction (.odg;.svg;.odt) (74.97 KB, application/zip)
2018-04-19 15:20 UTC, Robert Helmkamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Helmkamp 2018-04-12 13:54:11 UTC
Hello,

I've made a graphic document with DRAW and exported it as .svg file. I need this to import "pictures" into an other text system.

For trial use I imported the .svg file into WRITER and found, that a text line appears in horizontal direction, but in DRAW this text line was rotated counter clockwise to vertical direction.

A file, which was exported from the one Libre Office component, can not be imported correctly into an other Libre Office component! In my eyes this is a bug and it should be solved soon.

Best regards

Robert Helmkamp
Comment 1 Jacques Guilleron 2018-04-13 13:03:50 UTC
Hi Robert,

Can you provide a such file demonstrating this issue?
Thank you.
Comment 2 Robert Helmkamp 2018-04-19 15:20:55 UTC
Created attachment 141491 [details]
Graphic with text rotated to vertical direction (.odg;.svg;.odt)

original: LOD_Bild1.odg  (text rotated)
Exported to: LOD_Bild1.svg
Imported to: LOD_Bild1.odt  (text NOT rotated)
Comment 3 V Stuart Foote 2018-04-19 17:50:38 UTC
Interesting, ImageMagick's IMDisplay handles the SVG correctly. But Inkscape, Edge, Chrome, even our LO Draw insert filter, all drop the text rotation.

On first glance the transform SVG XML looks correct:

     <g class="com.sun.star.drawing.TextShape">
      <g id="id225">
       <text class="TextShape"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="282px" font-weight="400"><tspan class="TextPosition" x="5329" y="18552" transform="translate(5329,18552) rotate(-89.8) translate(-5329,-18552)"><tspan fill="rgb(0,0,0)" stroke="none">2 x 8 Pins</tspan></tspan></tspan></text>
      </g>
     </g>
     <g class="com.sun.star.drawing.TextShape">
      <g id="id226">
       <text class="TextShape"><tspan class="TextParagraph" font-family="Liberation Sans, sans-serif" font-size="282px" font-weight="400"><tspan class="TextPosition" x="5855" y="18223" transform="translate(5855,18223) rotate(-90.1) translate(-5855,-18223)"><tspan fill="rgb(0,0,0)" stroke="none">GALEP</tspan></tspan></tspan></text>
      </g>
     </g>

@Xisco, what do you think? Are we generating bad SVG?

The round trip use of SVG within LibreOffice is another issue--I don't think is the question of OP.  For internal use the OLE embedding of the ODG, or an SVM handles the rotated text annotation correctly.
Comment 4 Regina Henschel 2018-06-24 13:50:19 UTC
The attribute "transform" is not applicable to element <tspan>. See https://www.w3.org/TR/SVG11/attindex.html
Comment 5 QA Administrators 2019-06-25 02:42:59 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-06-25 03:17:56 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-06-26 03:12:15 UTC
Dear Robert Helmkamp,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug