Bug 156257 - VML Textbox not honoring BT_LR writing mode
Summary: VML Textbox not honoring BT_LR writing mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: VML-Textbox
  Show dependency treegraph
 
Reported: 2023-07-12 14:57 UTC by hemant363kumar
Modified: 2023-07-12 20:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Right arrow callout VML shape having textbox with vertical text (183.49 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-07-12 14:57 UTC, hemant363kumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hemant363kumar 2023-07-12 14:57:10 UTC
Created attachment 188333 [details]
Right arrow callout VML shape having textbox with vertical text

Given file contains a VML textbox with <v:textbox style="layout-flow:vertical;mso-layout-flow-alt:top-to-bottom"> , still, it shows text in TB_RL mode. Is it a known bug? Is there any quick fix that can achieve this?
Comment 1 Regina Henschel 2023-07-12 18:39:54 UTC
I confirm the problem with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fcbae818b793a9ee97a1b5ddc53902be7a2376f5
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

hemant363kumar@gmail.com: You cannot conform (set Status to NEW) your own bug report. And only the person who is going to fix a bug will set the Assignee.

Actually the markup is
<v:textbox style="layout-flow:vertical;mso-layout-flow-alt:bottom-to-top">

A solution could be to use an associated text box on import. Such is able to render text "bottom-to-top". Another solution could be to keep it as simple text, but use the text-rotate attribute of the custom-shape.

I have not found a report for text direction in shape in VML import, but only for text direction in text-boxes.
Comment 2 hemant363kumar 2023-07-12 19:25:18 UTC
There is no in built support for this writing mode for text direction in VML textbox?
Comment 3 Regina Henschel 2023-07-12 20:08:40 UTC
(In reply to hemant363kumar from comment #2)
> There is no in built support for this writing mode for text direction in VML
> textbox?

VML shapes are converted to a shape type available in LibreOffice. For the attached file the shape is imported as "custom-shape". It corresponds to a preset shape of OOXML. For such shapes LibreOffice can render this text direction in principle. It is possible to set the text direction via macro. But it is not yet implemented in LibreOffice to use any of the both mentioned methods on import from VML and LibreOffice has no user interface for it.
Comment 4 hemant363kumar 2023-07-12 20:16:48 UTC
(In reply to Regina Henschel from comment #3)
> (In reply to hemant363kumar from comment #2)
> > There is no in built support for this writing mode for text direction in VML
> > textbox?
> 
> VML shapes are converted to a shape type available in LibreOffice. For the
> attached file the shape is imported as "custom-shape". It corresponds to a
> preset shape of OOXML. For such shapes LibreOffice can render this text
> direction in principle. It is possible to set the text direction via macro.
> But it is not yet implemented in LibreOffice to use any of the both
> mentioned methods on import from VML and LibreOffice has no user interface
> for it.

Thanks Regina for explanation. By both methods you mean "A solution could be to use an associated text box on import. Such is able to render text "bottom-to-top". Another solution could be to keep it as simple text, but use the text-rotate attribute of the custom-shape." ?
Does setting the macro not render text in desired direction?