Created attachment 169676 [details] DOCX to reproduce the error If the DOCX file has a rtlGutter set, this is not handled.
Created attachment 169677 [details] rtlGutter, Screenshot left Word, right LibreOffice
Oh, thanks for this sample. How did you manage to produce the rtlGutter? I was looking at the Word UI for this, but could not find anything with an English UI.
(In reply to Miklos Vajna from comment #2) > Oh, thanks for this sample. How did you manage to produce the rtlGutter? I > was looking at the Word UI for this, but could not find anything with an > English UI. It was tricky. You need to add a RTL language, e.g. Arabic (Saudi Arabia), to File > Options > Language, section 'Office authoring languages and proofing'. For changing the writing direction you can add the commands to the Quick Access Toolbar in the title bar. Restart. Now you should have item 'Right' in the drop-down list of 'Gutter Position' in Page Setup tab 'Margins'. The writing direction is in 'Page Setup' tab 'Layout' for sections, and for paragraphs via the commands from the Quick Access Toolbar. I have not tested, whether changing the writing direction is really needed. Word has a bug, that it writes 'gutterAtTop' in addition to 'rtlGutter'. So you need to enter the archive and remove 'gutterAtTop' manually. Because I have no RTL environment I cannot test, whether this bug only exists for my English UI/German local environment.
Confirm with Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 7b649f835cc00ed76927c6821a135605609bed4e CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
https://cgit.freedesktop.org/libreoffice/core/commit/?id=67e53dfeadbbc4f4ab207af0d2cd4e8f556b73d4 "sw page rtl gutter margin: add doc model" forgot to reference this bug.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/bcbf1c245fa13cfbae2059a996006179c7f4b747 tdf#140343 sw page rtl gutter margin: add UNO API It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c088d26578d1be352efa49bd164a8217627648de tdf#140343 sw page rtl gutter margin: add layout It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3db477fd0e6cfc4ff77b3c911ca4ab14fd980932 tdf#140343 sw page rtl gutter margin: add DOCX filter It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/fac65bb9d831a854298d6cba09ad6159d15b8323 tdf#140343 sw page rtl gutter margin: add ODF import It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/8b7ff52ac87795881a4d86395885778f1da3d18b tdf#140343 sw page rtl gutter margin: add DOC filter It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f15c6c5d2947a61e6521471b6b7541812953efc3 tdf#140343 sw page rtl gutter margin: add RTF filter It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/d48a4174708ce0850577dba76dccaf85c4f6ffa1 tdf#140343 sw page rtl gutter margin: add UI It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I think this is now in a reasonable shape on master.
Verified as fixed in: Version: 7.2.4.1 / LibreOffice Community Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded