Created attachment 182409 [details] writing mode not by paragraph style of <text:p> element A writing-mode for text in a shape can be defined by (1) a paragraph style referenced by the text:style-name attribute in the <text:p> element in the shape. (2) a paragraph style referenced by the draw:text-style-name attribute in the <draw:custom-shape> element. (3) a <draw:paragraph-properties> element in the <style:style> element referenced by the draw:style-name attribute in the <draw:custom-shape> element. (4) a <draw:graphic-properties> element in the <style:style> element referenced by the draw:style-name attribute in the <draw:custom-shape> element. If a style:writing-mode attribute does not exist in (1) then that from (2) is used, if that does not exist the one from (3) is used, and if that neither exists the one from (4) is used. That works if the shape is inside Impress, but it fails if the shape is inside Writer. In Writer the RTL writing mode is only detected, if it is given in (1).
Created attachment 182410 [details] writing mode not by paragraph style of <text:p> element Same shape, but in Impress.
Regina, don't know how what I should do t o reproduce the bug I can see in PYS dialog, that alignment of every paragraph is LTR. But I don't think, that this is sufficient to change status to NEW.
Confirmed by comparing the paragraph formatting in the shapes in the two files. Also seen in older versions (4.3). Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 9ee1b714c13db308c199172ffa0199405ca3d9c3 CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 14 February 2023
(In reply to Regina Henschel from comment #0) > Created attachment 182409 [details] > writing mode not by paragraph style of <text:p> element (In reply to Regina Henschel from comment #1) > Created attachment 182410 [details] > writing mode not by paragraph style of <text:p> element > > Same shape, but in Impress. In the ODT, we see two triangles with text within them, and none of them are RTL. In the ODP, we see one triangle. How are the two triangles in the ODT supposed to differ?
(In reply to Eyal Rozenberg from comment #4) > In the ODT, we see two triangles with text within them, and none of them are > RTL. In the ODP, we see one triangle. How are the two triangles in the ODT > supposed to differ? The left triangle has a draw text. The right triangle has the text in the associated text box. If you enable to show control characters, you will see the text box. An associated text box is only available in Writer. In both cases the text should be RTL, but it isn't. That is the error.