Bug 147717 - RTL text character & word order reversed with "character position" rotation, or rotation fails
Summary: RTL text character & word order reversed with "character position" rotation, ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Character RTL-Rotation
  Show dependency treegraph
 
Reported: 2022-03-01 20:19 UTC by vaaydayaasra
Modified: 2024-08-17 08:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot on LO 7.3.0.3 (62.73 KB, image/png)
2022-03-01 20:25 UTC, vaaydayaasra
Details
ODT document used to generate the screenshot (11.06 KB, application/vnd.oasis.opendocument.text)
2022-03-01 20:25 UTC, vaaydayaasra
Details
Same phenomena, with Hebrew+English text (16.00 KB, application/vnd.oasis.opendocument.text)
2022-08-05 08:58 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vaaydayaasra 2022-03-01 20:19:00 UTC
Description:
Arabic script text is not displayed as expected in LibreOffice Writer 7.3.0.3 when the paragraph is marked as LTR and the text is rotated 90 or 270 degrees. Two separate cases appear:

1) If the paragraph starts with a Latin letter, the whole paragraph is rotated but Arabic letters are in reversed order, turning السلام into مالسلا.

2) If the paragraph starts with an Arabic letter, the Arabic part is not rotated at all whereas any following Latin letters will be.

Marking the paragraphs as RTL reverses the situation: Arabic is displayed correctly but Latin letters are displayed in reverse order or are not rotated at all, depending on whether the first character is an Arabic or a Latin letter. See the attached screenshot, where the first paragraph says "hello السلام عليكم" (Latin first, 90° rotation), the second paragraph "السلام عليكم hello" (Arabic first, 90° rotation) and the third paragraph "hello السلام عليكم" without rotation (looks as expected).

Steps to Reproduce:
1. Open a new Writer document.
2. Write Latin text followed by Arabic (e.g. "hello السلام عليكم") in the same paragraph, then Arabic followed by Latin (e.g. "السلام عليكم hello") in the following paragraph.
3. Select the paragraphs and rotate them by 90 degrees through Character > Position.

Actual Results:
The first paragraph shows Arabic letters in reversed order, the second paragraph does not rotate Arabic text at all.

Expected Results:
Arabic letters should rotate and be displayed in the correct order in both paragraphs.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL
Comment 1 vaaydayaasra 2022-03-01 20:25:09 UTC
Created attachment 178600 [details]
Screenshot on LO 7.3.0.3
Comment 2 vaaydayaasra 2022-03-01 20:25:57 UTC
Created attachment 178601 [details]
ODT document used to generate the screenshot
Comment 3 Eyal Rozenberg 2022-08-05 08:58:40 UTC
Created attachment 181627 [details]
Same phenomena, with Hebrew+English text

Confirmed, and this also happens with Hebrew.
Comment 4 vaaydayaasra 2024-05-05 13:54:52 UTC
Still repro on:

Version: 7.6.6.3 (X86_64) / LibreOffice Community
Build ID: 60(Build:3)
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: fi-FI
Ubuntu package version: 4:7.6.6-0ubuntu0.23.10.1
Calc: threaded