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
Created attachment 178600 [details] Screenshot on LO 7.3.0.3
Created attachment 178601 [details] ODT document used to generate the screenshot
Created attachment 181627 [details] Same phenomena, with Hebrew+English text Confirmed, and this also happens with Hebrew.
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