Bug 142408 - [DOCX] vert="vert270" is handled as vert="vert"
Summary: [DOCX] vert="vert270" is handled as vert="vert"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks:
 
Reported: 2021-05-21 13:13 UTC by Valek Filippov
Modified: 2023-07-31 13:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX sample (16.40 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-21 13:14 UTC, Valek Filippov
Details
How it looks in MSO (16.55 KB, image/png)
2021-05-21 13:14 UTC, Valek Filippov
Details
How it looks in LO 7.2 master from May 11, 2021 (83.90 KB, image/png)
2021-05-21 13:15 UTC, Valek Filippov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2021-05-21 13:13:04 UTC
Description:
On DOCX import LO doesn't make a difference between bodyPr's vert="vert" and vert="vert270" for TextBox shape added to the drawing surface.

Steps to Reproduce:
Open attached sample.

Actual Results:
Both text are rotated 90 degrees clockwise.

Expected Results:
"TEST vert" should be rotated 90 degrees clockwise and "TEST vert270" should be rotated 90 degrees counter clockwise (270 clockwise).


Reproducible: Always


User Profile Reset: No



Additional Info:
This is extracted/isolated from tdf#109129
Comment 1 Valek Filippov 2021-05-21 13:14:00 UTC
Created attachment 172230 [details]
DOCX sample
Comment 2 Valek Filippov 2021-05-21 13:14:38 UTC
Created attachment 172231 [details]
How it looks in MSO
Comment 3 Valek Filippov 2021-05-21 13:15:03 UTC
Created attachment 172232 [details]
How it looks in LO 7.2 master from May 11, 2021
Comment 4 Xisco Faulí 2021-05-31 14:05:18 UTC
Reproduced in

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: f49e5902a3737c02fabf5bec23243ccb126426c4
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Version: 5.2.0.0.alpha0+
Build ID: dd46727b99d4bb5135451aa7e5e1bdb197373843
CPU Threads: 4; OS Version: Linux 5.7; UI Render: default; 
Locale: en-US (en_US.UTF-8)

and

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 5 Xisco Faulí 2021-05-31 14:06:05 UTC
@Regina, I thought you might be interested in this issue
Comment 6 Regina Henschel 2021-05-31 14:59:57 UTC
The two textboxes are contained in a "drawing canvas". LibreOffice can currently not use the associated wpc element and therefore uses the fallback. The fallback contains VML shapes. The vert270 direction does not belong to strict VML but is a MSO extension. In file it is "mso-layout-flow-alt:bottom-to-top".

I plead for not fixing this VML problem, but using the working time of the developers to be able to read the "wpc" Element. Inside the "wpc" element are the shapes in common OOXML and LO can handle that already. We have already some bugreports that import is wrong, because "wpc" cannot be read.
Comment 7 QA Administrators 2023-07-30 03:16:12 UTC Comment hidden (obsolete)
Comment 8 Regina Henschel 2023-07-30 11:22:31 UTC
The problem still exists in Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cf8f7b91f41821b79495c0388359c4cb1156ea67
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded

The two shapes are imported as text box shapes and a text box shape is not yet able to render bt-lr or tb-rl90.
Comment 9 Regina Henschel 2023-07-30 11:30:15 UTC
The actual rendering is in MS Office terms "eaVert". Text box shape and paragraphs as well only support css.text.WritingMode but not the here needed css.text.WritingMode2.
Comment 10 QA Administrators 2023-07-31 03:05:28 UTC Comment hidden (obsolete)
Comment 11 Regina Henschel 2023-07-31 13:07:03 UTC
Why comes the bot message again?

So I repeat: The problem still exists in Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cf8f7b91f41821b79495c0388359c4cb1156ea67
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded

The two shapes are imported as text box shapes and a text box shape is not yet able to render bt-lr or tb-rl90.

The actual rendering in LibreOffice is in MS Office terms "eaVert". Text box shape and paragraphs as well only support css.text.WritingMode but not the here needed css.text.WritingMode2.

Bug 109129 is unrelated. I have removed the relationship.