Bug 133067 - Wrapped RTL text characters within shapes are exported to tagged PDF with incorrect character order
Summary: Wrapped RTL text characters within shapes are exported to tagged PDF with inc...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.3.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-15 13:22 UTC by zainab.ali
Modified: 2021-04-02 03:47 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Impress file with wrapped RTL text in a shape (11.23 KB, application/vnd.oasis.opendocument.presentation)
2020-05-15 13:23 UTC, zainab.ali
Details
Tagged PDF produced from wrapped RTL text in a shape (11.06 KB, application/pdf)
2020-05-15 13:24 UTC, zainab.ali
Details
Tagged PDF produced from RTL text in a shape with no wrap (11.05 KB, application/pdf)
2020-05-15 13:25 UTC, zainab.ali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zainab.ali 2020-05-15 13:22:05 UTC
Description:
Wrapped RTL text characters within shapes are exported to tagged PDF with incorrect character order.
      
The attached pptx file contains RTL text within a shape.  The shape has "Word wrap in text shape" set to true.
Exporting the pptx as a tagged PDF should result in the same order of characters regardless of whether word wrap is enabled or not.


Steps to Reproduce:
1. Export the pptx as a tagged PDF using  File > Export as > Export as PDF > Tagged PDF
2. Select the text within the shape and disable word wrap using Format > Object and Shape > Text > untick Word wrap in text shape 
3. Export the pptx again as a tagged PDF using  File > Export as > Export as PDF > Tagged PDF


Actual Results:
The codepoints of the unicode characters within the marked content sequence of the PDF with wrapped text are in the following order:
1579 1578 1576 1575 32 1582 1581 1580 

The codepoints of the unicode characters within the marked content sequence of the PDF with no wrap are in the expected order.


Expected Results:
The codepoints of the unicode characters within the marked content sequence of both PDFs should be in the following order:
1582 1581 1580 32 1579 1578 1576 1575


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.5.2
Build ID: 6.3.5-3
CPU threads: 8; OS: Linux 5.5; UI render: default; VCL: gtk3; 
Locale: ar-SA (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 zainab.ali 2020-05-15 13:23:59 UTC
Created attachment 160859 [details]
Impress file with wrapped RTL text in a shape
Comment 2 zainab.ali 2020-05-15 13:24:29 UTC
Created attachment 160860 [details]
Tagged PDF produced from wrapped RTL text in a shape
Comment 3 zainab.ali 2020-05-15 13:25:03 UTC
Created attachment 160861 [details]
Tagged PDF produced from RTL text in a shape with no wrap
Comment 4 Buovjaga 2020-09-02 19:01:04 UTC
As I am naive about Arabic, what would be a simple way for me to confirm the problem on my own machine? How can I see the codepoint order in the PDF result? I tried an online service to show unicode codepoints in copied & pasted strings, but I'm not getting consistent and understandable results.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 5 QA Administrators 2021-03-02 03:49:09 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-04-02 03:47:51 UTC
Dear zainab.ali,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp