Arabic script text is not displayed as expected in LibreOffice Writer 126.96.36.199 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.
The first paragraph shows Arabic letters in reversed order, the second paragraph does not rotate Arabic text at all.
Arabic letters should rotate and be displayed in the correct order in both paragraphs.
User Profile Reset: No
OpenGL enabled: Yes
Version: 188.8.131.52 (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
Created attachment 178600 [details]
Screenshot on LO 184.108.40.206
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.