Bug 120256 - FILEOPEN: Arabic docx has RTL issues with wrong column order, wrong Text direction can be changed but not saved
Summary: FILEOPEN: Arabic docx has RTL issues with wrong column order, wrong Text dire...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, filter:docx
Depends on:
Blocks: DOCX-Tables DOCX-RTL
  Show dependency treegraph
 
Reported: 2018-10-02 04:58 UTC by Fahad Al-Saidi
Modified: 2023-05-25 14:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test docx file (34.14 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-10-02 04:58 UTC, Fahad Al-Saidi
Details
docx file open in word 2016 (80.27 KB, image/png)
2018-10-02 04:58 UTC, Fahad Al-Saidi
Details
docx file opened in writer (107.11 KB, image/png)
2018-10-02 04:59 UTC, Fahad Al-Saidi
Details
docx file opened in LO7.2 (122.65 KB, image/png)
2021-09-28 09:56 UTC, Fahad Al-Saidi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fahad Al-Saidi 2018-10-02 04:58:03 UTC
Created attachment 145308 [details]
test docx file

I have docx file (attached) that has a table but when I open it in Writer, writer doen't recognize it as a table at all.

I am using:

Version: 6.1.1.2
Build ID: 1:6.1.1~rc2-0ubuntu0.18.04.1~lo3
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ar-OM (en_US.UTF-8); Calc: group threaded
Comment 1 Fahad Al-Saidi 2018-10-02 04:58:58 UTC
Created attachment 145309 [details]
docx file open in word 2016
Comment 2 Fahad Al-Saidi 2018-10-02 04:59:20 UTC
Created attachment 145310 [details]
docx file opened in writer
Comment 3 Dieter 2018-10-02 08:38:37 UTC
I confirm this with

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 62cd86977ca41677c56fb2d1f97bb1c5cbdbd416
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-09-20_02:34:32
Locale: en-US (de_DE); Calc: CL

Could be related to bug 116889 but I haven't tested it.
Comment 5 Gabor Kelemen (allotropia) 2018-10-28 22:45:05 UTC
(In reply to Xisco Faulí from comment #4)
> Regression introduced in range
> https://cgit.freedesktop.org/libreoffice/core/log/
> ?id=f0deb6511b3766bfc89c72dd46d7770eb38169af&qt=range&q=5d2826dacd073e3e99f66
> 8358060927751622d52..c91e07e45bc5b742d7bfe8a572fb44682c78e2ac
> bibisected with bibisect-43max

Then this is a duplicate of bug #120512 - the exact commit bisected there is present in this range.

*** This bug has been marked as a duplicate of bug 120512 ***
Comment 6 Timur 2019-06-06 13:08:30 UTC Comment hidden (obsolete)
Comment 7 Timur 2019-12-09 12:40:49 UTC
This .docx really suffered from bug 116194 and now that's it's fixed, there's a table.
But it likely has more issues related to RTL (right-to-left). So I change the title. 
Unless this turns out to be a duplicate of some existing bug.
Please test with LO master 6.5+ built after 2019-12-08 14:55:00 UTC from https://dev-builds.libreoffice.org/daily/master/ and search.
Comment 8 Timur 2019-12-09 13:03:40 UTC
This was marked regression and it was for table. But, LO 4.2 also was showing table columns in wrong order and table wasn't RTL. So, looks like current issue is not a regression, it's wrong all way to OO 3.3.
Comment 9 Timur 2020-01-09 14:05:26 UTC
Table has Text direction set as RTL. For some reason, it turns out not to be good read.
Interesting that we can fix column order by changing to "use superodinate object setting". But if saved and reloaded, again wrong. Similar to bug 125455.
Comment 10 Fahad Al-Saidi 2021-09-28 09:56:01 UTC
Created attachment 175310 [details]
docx file opened in LO7.2
Comment 11 Fahad Al-Saidi 2021-09-28 09:56:18 UTC
I test it with libreoffice 7.2. It opens almost fine, see the screenshot. There is a small formating issue in the first column .