Bug 150930 - writing-mode 'rl-tb' (RTL) in shape text is only detected if in paragraph style of the text
Summary: writing-mode 'rl-tb' (RTL) in shape text is only detected if in paragraph sty...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2022-09-13 13:01 UTC by Regina Henschel
Modified: 2023-02-14 19:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
writing mode not by paragraph style of <text:p> element (13.58 KB, application/vnd.oasis.opendocument.text)
2022-09-13 13:01 UTC, Regina Henschel
Details
writing mode not by paragraph style of <text:p> element (14.51 KB, application/vnd.oasis.opendocument.presentation)
2022-09-13 13:02 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2022-09-13 13:01:25 UTC
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).
Comment 1 Regina Henschel 2022-09-13 13:02:20 UTC
Created attachment 182410 [details]
writing mode not by paragraph style of <text:p> element

Same shape, but in Impress.
Comment 2 Dieter 2022-09-28 11:24:10 UTC
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.
Comment 3 Buovjaga 2023-02-14 19:02:06 UTC
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