Bug 160068

Summary: FILEOPEN DOCX: top/bottom/center vertical should be laid out relative to paragraph HOW???
Product: LibreOffice Reporter: Justin L <jluth>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: minor CC: armlopez, aron.budea, jluth
Priority: lowest Keywords: filter:docx, notBibisectable
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=160049
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 120466, 131304    
Attachments: vertAnchorWeird.pdf
160068_outsideLine_compat14.docx: Page 1 example, created by MSO2010
160068_centerLine_compat15.docx: Page 5 example, round-tripped by MSO2019

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.