Bug 160068 - FILEOPEN DOCX: top/bottom/center vertical should be laid out relative to paragraph HOW???
Summary: FILEOPEN DOCX: top/bottom/center vertical should be laid out relative to para...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: lowest minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, notBibisectable
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2024-03-06 16:54 UTC by Justin L
Modified: 2024-04-16 03:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
vertAnchorWeird.pdf (256.12 KB, application/pdf)
2024-03-06 16:54 UTC, Justin L
Details
160068_outsideLine_compat14.docx: Page 1 example, created by MSO2010 (77.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-06 16:59 UTC, Justin L
Details
160068_centerLine_compat15.docx: Page 5 example, round-tripped by MSO2019 (76.52 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-06 17:02 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2024-03-06 16:54:37 UTC
Created attachment 192997 [details]
vertAnchorWeird.pdf

OK - MSO is extremely weird about how vertical alignment happens against the paragraph (aka "line"). I'm not actually sure we want to fix this, but at least I'll document it.

This is different for compat15, but still, umm, strange.

The attached PDF has 6 pages as seen by Word 2019:
-page 1: compat14, anchored to LINE, outside/bottom. (huh?)
-page 2: compat14, anchored to LINE, centered. (really - that is centered MS?)
-page 3: compat14, anchored to LINE, inside/top. (umm, looks centered to me...)
and the next three pages are repeated, but as compat15

Of course, LO doesn't look anything like any of those...
Comment 1 Justin L 2024-03-06 16:59:45 UTC
Created attachment 192998 [details]
160068_outsideLine_compat14.docx: Page 1 example, created by MSO2010
Comment 2 Justin L 2024-03-06 17:02:46 UTC
Created attachment 192999 [details]
160068_centerLine_compat15.docx: Page 5 example, round-tripped by MSO2019

This was the most interesting example. See bug 160049 for so ideas about what is happening here. The "above paragraph space" in the paragraph properties is likely coming into play here.
Comment 3 Armondo Lopez 2024-04-16 02:12:26 UTC
Just chiming in to say that this behavior is present in

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a2265e8faa099d9652efd12392c2877c2df1d1eb
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

as well as

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

It's very strange.