Bug 107928 - DOCX table with Arabic text imported from left to right instead from right to left
Summary: DOCX table with Arabic text imported from left to right instead from right to...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2017-05-18 09:17 UTC by Khalil
Modified: 2019-10-03 05:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File with Arabic table issue after importing from MS Word (16.66 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-05-18 09:17 UTC, Khalil
Details
How it looks in MSO 2010 (16.39 KB, image/png)
2017-05-18 11:10 UTC, Xisco Faulí
Details
How it looks in MSO 2010 (11.36 KB, image/png)
2017-05-18 11:20 UTC, Xisco Faulí
Details
DOCX file with two tables. one have issue and other is fine (15.47 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-05-22 05:24 UTC, Khalil
Details
Table view in MS 2016 (11.94 KB, image/png)
2017-05-22 05:27 UTC, Khalil
Details
Original MSO file (22.92 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-05-24 04:38 UTC, Khalil
Details
Same DOCX file after opening it with LO (16.35 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-05-24 04:39 UTC, Khalil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khalil 2017-05-18 09:17:31 UTC
Created attachment 133384 [details]
File with Arabic table issue after importing from MS Word

Importing DOCX file with table have Arabic text shows columns from right to left instead from right to left.
Comment 1 Xisco Faulí 2017-05-18 11:10:08 UTC Comment hidden (obsolete)
Comment 2 Xisco Faulí 2017-05-18 11:20:05 UTC
Created attachment 133386 [details]
How it looks in MSO 2010
Comment 3 Khalil 2017-05-22 05:24:38 UTC
Created attachment 133445 [details]
DOCX file with two tables. one have issue and other is fine
Comment 4 Khalil 2017-05-22 05:27:27 UTC
Created attachment 133446 [details]
Table view in MS 2016
Comment 5 Xisco Faulí 2017-05-23 21:40:53 UTC
Since the document is even displayed differently among different versions of MSO, it can't be considered a bug. Closing as RESOLVED NOTABUG
Comment 6 Khalil 2017-05-24 04:37:19 UTC
Hi Xisco Faulí,

Seems I didn't clarify the issue in proper way.
Find on below attachments:

1- Original MSoffice 2016 word file with two tables have Arabic text where you can see columns & text are from RTL on both tables.

2- Same DOCX file after I open it in LO, where you can see first table columns are LTR & text is fine RTL. However second table columns & text is fine RTL.
Comment 7 Khalil 2017-05-24 04:38:24 UTC
Created attachment 133499 [details]
Original MSO file
Comment 8 Khalil 2017-05-24 04:39:22 UTC
Created attachment 133500 [details]
Same DOCX file after opening it with LO
Comment 9 Buovjaga 2017-05-24 17:36:32 UTC
Well, older MSO versions displaying newer files wrong is kind of expected.. let's keep this as NEW
Comment 10 QA Administrators 2018-05-25 02:43:23 UTC Comment hidden (obsolete)
Comment 11 Fahad Al-Saidi 2018-10-02 04:37:20 UTC
the issue still exit in:

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


The problem is in column order and it seems that LO ignores <w:bidi/> tag in docx.
Comment 12 QA Administrators 2019-10-03 02:59:56 UTC Comment hidden (obsolete)
Comment 13 Khalil 2019-10-03 05:10:17 UTC
Works from:

Version: 6.2.6.2
Build ID: 1:6.2.6-0ubuntu0.16.04.1~lo1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded