Bug 145870 - FILEOPEN - DOCX: Table column order flipped from RTL to LTR
Summary: FILEOPEN - DOCX: Table column order flipped from RTL to LTR
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Tables DOCX-RTL
  Show dependency treegraph
 
Reported: 2021-11-24 13:29 UTC by Leela Vinod
Modified: 2023-05-25 14:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A letter which has arabic table (88.29 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-11-24 13:30 UTC, Leela Vinod
Details
Expected Result (67.08 KB, image/png)
2021-11-24 14:05 UTC, Leela Vinod
Details
ActualResult (74.51 KB, image/png)
2021-11-24 14:05 UTC, Leela Vinod
Details
Document with Arabic Table (18.76 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-12-14 12:19 UTC, Leela Vinod
Details
Expected Result (67.08 KB, image/png)
2021-12-14 12:22 UTC, Leela Vinod
Details
ActualResult (74.51 KB, image/png)
2021-12-14 12:23 UTC, Leela Vinod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leela Vinod 2021-11-24 13:29:06 UTC
Description:
1. Created an arabic document (LTR) with a table along with some content in microsoft word (docx).

2. Trying to open the same document using libreoffice writer.

3. The alignment fo text is perfect with LTR but the table aligment is reverse. (columns are displaying reverse order RTL).

Steps to Reproduce:
1. Created an arabic document (LTR) with a table along with some content in microsoft word (docx).

2. Trying to open the same document using libreoffice writer.

3. The alignment fo text is perfect with LTR but the table aligment is reverse. (columns are displaying reverse order RTL).

Actual Results:
Table alignment is getting RTL

Expected Results:
Table alignment should be LTR


Reproducible: Always


User Profile Reset: No



Additional Info:
In MS office arabic word document format is proper but when i open same document in Libera office all text is in proper format but only table aliment is changing
Comment 1 Leela Vinod 2021-11-24 13:30:29 UTC
Created attachment 176467 [details]
A letter which has arabic table
Comment 2 Leela Vinod 2021-11-24 14:05:12 UTC
Created attachment 176471 [details]
Expected Result

Expected result should be as attached
Comment 3 Leela Vinod 2021-11-24 14:05:52 UTC
Created attachment 176472 [details]
ActualResult

Actual Result as attached
Comment 4 Dieter 2021-12-09 06:17:59 UTC
Leela, thank you for reporting the bug. It seems you're using an old version of LibreOffice. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 5 Leela Vinod 2021-12-11 22:00:23 UTC
Hello Team,

As suggested installed new version in a fresh instance but same issue table direction changes from LTR instead of RTL.

As explained  issue present only for Arabic tables
Comment 6 Dieter 2021-12-12 13:50:01 UTC
I confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2934472ab888ebfe64a153984af2902fac63a7a0
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

in comparison to Word 206
Comment 7 Eyal Rozenberg 2021-12-12 20:06:25 UTC
Leela, your attachments have contact information for several real people. I suggest you replace the information with made-up text, or just dummy text like "123", "ABC", aliph-ba-ta-tha etc.

Also, in your reproduction instructions, you say you've created an "Arabic Document (LTR)". Are you sure your original document was in Left-to-Right direction, despite using the Arabic language? 

You also write that when opening the document, "the alignment is perfect with LTR" - but when I open your document with LO (7.3), the page style is RTL and the paragraphs are all RTL.
Comment 8 Leela Vinod 2021-12-14 12:19:05 UTC
Created attachment 176925 [details]
Document with Arabic Table

Arabic document which has table
Comment 9 Leela Vinod 2021-12-14 12:22:59 UTC
Created attachment 176926 [details]
Expected Result
Comment 10 Leela Vinod 2021-12-14 12:23:17 UTC
Created attachment 176927 [details]
ActualResult
Comment 11 Leela Vinod 2021-12-14 12:31:19 UTC
Eyal, I have updated documents with test data. 

When I open document in MS-Office the table direction is as shown in Expected Result.

But when i open same document in LO the table direction changes as shown in ActualResult. 


Can you help how to resolve this bug because our application in production
Comment 12 Eyal Rozenberg 2022-08-05 19:01:42 UTC
Bug still manifests with:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 5c68399e6bea3aa18477487400f8bb143d6ed84e
CPU threads: 4; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Comment 13 Dieter 2022-12-26 17:59:37 UTC
Leela, you've changed status to RESOLVED FIXED. Please explain why. If the bug is no longer reproducible for you, please add information about the version you've used. If you don't know, what fixes the bug please change status to RESOLVED WORKSFORME. If you know the commit who fixed it, please add information about it. Thank you.
Comment 14 Eyal Rozenberg 2022-12-26 20:19:30 UTC
Bug still manifests with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 4; OS: Linux 6.0; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Comment 15 Leela Vinod 2022-12-28 15:21:58 UTC
Hello Team,

By mistake closed to bug.

Thanks for changing the status.