Bug 150929 - second text-area of shape is not considered for writing-mode tb-rl
Summary: second text-area of shape is not considered for writing-mode tb-rl
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL: https://docs.oasis-open.org/office/Op...
Whiteboard:
Keywords:
Depends on:
Blocks: CJK
  Show dependency treegraph
 
Reported: 2022-09-13 11:51 UTC by Regina Henschel
Modified: 2024-08-02 20:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Shape 'lr-tb' vs. shape 'tb-rl' (14.70 KB, application/vnd.oasis.opendocument.graphics)
2022-09-13 11:51 UTC, Regina Henschel
Details
PDF export of document (11.38 KB, application/pdf)
2023-01-18 08:28 UTC, Buovjaga
Details
Added rectangles to indicate the text frame position (19.79 KB, application/vnd.oasis.opendocument.graphics)
2023-03-01 17:51 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 11:51:23 UTC
Created attachment 182406 [details]
Shape 'lr-tb' vs. shape 'tb-rl'

Open attached document. It contains two shapes with same geometry. The enhanced-geometry has an attribute
draw:text-areas="0 16200 16200 21600 0 5400 5400 21600"

That defines two rectangular areas given as left-top-right-bottom. The second one has to be used, if the text style has an attribute style:writing-mode="tb-rl". That is the case for the right shape.
For definition in ODF see above link.

The left shape has to use the first text area 0 16200 16200 21600, which is a rectangle with width 16200 and height 5400 and left-top corner 0|16200.
The right shape has to use the second text area 0 5400 5400 21600, which is a rectangle with width 5400 and height 16200 and left-top corner 0|5400.
Error: The text with east Asian writing mode 'tb-rl' uses the same text area as the text with 'lr-tb' writing mode.
Comment 1 Buovjaga 2023-01-18 08:28:26 UTC
Created attachment 184735 [details]
PDF export of document

Is this the bad result?

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7195e2740eb1c71f5bbc4322b3535d56b39e2817
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 Jumbo
Built on 18 January 2023
Comment 2 Regina Henschel 2023-03-01 17:51:22 UTC
Created attachment 185674 [details]
Added rectangles to indicate the text frame position

(In reply to Buovjaga from comment #1)
> Created attachment 184735 [details]
> PDF export of document
> 
> Is this the bad result?

Yes, the vertical text uses the wrong rectangle. I have now attached a file, where I have added rectangles to show where the text should appear. The blue rectangle indicates the text frame to be used for lr-tb writing-mode (Latin text) and the red rectangle indicates the text frame to be used for tb-rl writing-mode (East Asian text).
Comment 3 Eyal Rozenberg 2024-08-02 20:52:03 UTC
Issues with top-to-bottom writing modes are not tracked on RTL-CTL. I think (?) they're tracked on the CJK meta bug...