Bug 153910 - textbox in Writer does not resolve style:writing-mode="page" to the writing mode of the page
Summary: textbox in Writer does not resolve style:writing-mode="page" to the writing m...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) alpha0+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL: https://docs.oasis-open.org/office/Op...
Depends on:
Blocks: ODF-import
  Show dependency treegraph
Reported: 2023-03-01 23:08 UTC by Regina Henschel
Modified: 2023-03-18 03:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Page style with vertical writing mode (14.32 KB, application/vnd.oasis.opendocument.text)
2023-03-01 23:08 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2023-03-01 23:08:44 UTC
Created attachment 185683 [details]
Page style with vertical writing mode

The page style in the attached document is set to "Right-to-Left (vertical)". That is the writing mode suitable for texts in East Asian scripts.
All places relevant for the text box are set to style:writing-mode="page" in the file markup.
Open the file. Error: The text in the text box is horizontal. The text should be vertical, see the linked part of the ODF spec.

The API shows TextWritingMode="LR_TB" and WritingMode="0", corresponding to the wrong rendering.

A text box is able to render vertical text. There even exists a predefined text box for vertical text. So the problem is not the rendering itself, but the fact that vertical rendering is not used.
Comment 1 raal 2023-03-17 18:37:26 UTC
repro with Version: (X86_64) / LibreOffice Community
Build ID: 7a7eb4aa21ca0c83db825fe8d5a5278611b391d8
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded