Bug 150419

Summary: FILESAVE ODT->DOCX page style writing direction "left-to-right (vertical)" is wrongly exported
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dgp-mail
Priority: medium Keywords: filter:docx
Version: 7.5.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 88173    
Attachments: Document with tb-lr page text direction
Document with tb-lr created by Word

Description Regina Henschel 2022-08-15 12:17:29 UTC
Created attachment 181781 [details]
Document with tb-lr page text direction

Open attached file. It has page text direction "left-to-right (vertical)". That is for Mongolian texts.
Save it to DOCX format and open the saved file in Word.
Result: The page direction is "vertical" instead. That is text is top-down, then right-left.
Expected: The page direction is top-down, left-right. Word is able to use this page direction although a UI in a western Word has no option to set it.
Comment 1 Regina Henschel 2022-08-15 12:30:38 UTC
Created attachment 181783 [details]
Document with tb-lr created by Word

To test, that Word is really able to use tb-lr I have attached such document created by Word. To get a UI in Word you need to install the Mongolian Traditional language pack in Windows.
Comment 2 Regina Henschel 2022-08-15 15:04:49 UTC
Unfortunately there are problems in how Word uses ISO/IEC 29500-1:2016. Thus a standard conform solution might be not appropriate. I have posted the problem on https://docs.microsoft.com/en-us/answers/questions/967428/value-mess-for-textdirection-in-sectpr-for-traditi.html
Comment 3 Dieter 2022-08-31 19:53:38 UTC
I confirm it with

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 4 Justin L 2022-09-05 21:26:47 UTC
MS Formats don't have page styles. A Section is the closest thing.
Comment 5 Justin L 2023-06-07 21:48:05 UTC
This looks like it was fixed in LO 7.5 with
commit c70ee4a6b9071468255e5d4fdb893e9c9bdf4fad
Author: Regina Henschel on Wed Aug 17 02:31:44 2022 +0200
    tdf#149551 use 'WritingMode' instead of TextPreRotateAngle