Bug 116672 - Add flipped trapezoid shape
Summary: Add flipped trapezoid shape
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Shape-Textbox
  Show dependency treegraph
Reported: 2018-03-28 05:39 UTC by pang_yu
Modified: 2023-05-06 19:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

file showing the problem and additional shape (12.63 KB, application/vnd.oasis.opendocument.graphics)
2018-12-04 14:13 UTC, Regina Henschel
group of two trapezoid to act like a single A-like trapezoid (8.78 KB, application/vnd.oasis.opendocument.graphics)
2018-12-12 00:35 UTC, csongor

Note You need to log in before you can comment on or make changes to this bug.
Description pang_yu 2018-03-28 05:39:29 UTC
Turn the trapezium into symmetry,input the character,but the character turn down.it need a Anti trapezoid.

Steps to Reproduce:
1.image Trapezoid
2.input character
3.turn trapezoid
4.yes,you will find it.

Actual Results:  
the character turn down.

Expected Results:
the character turn down.

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55
Comment 1 Xisco Faulí 2018-05-02 08:53:44 UTC
Thank you for reporting the bug. 
Could you please create and attach a screencast showing the steps?
There are various free screencast software available for use, including Camstudio (Windows), Jing (Mac), Simple Screen Recorder (Linux) or screencast-o-matic.com (Web).

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested screencast is provided.
Comment 2 QA Administrators 2018-11-05 16:07:43 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2018-12-03 13:20:08 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2018-12-04 14:13:43 UTC
Created attachment 147278 [details]
file showing the problem and additional shape

The problem is clear. Look at the shapes in the upper row. It is not possible to get a trapezoid where the top edge is smaller than the bottom edge without the text being upside down.

The shape in the lower row is similar to the original one, only that it has the handle on the top edge to make the top edge smaller than the bottom edge.

PowerPoint has this kind of shape as preset geometry "trapezoid". If you open a pptx, which has got this shape, it is imported correctly. But there exists no way to generate it in LibreOffice.

I support to add this kind of shape to the preset.
Comment 5 Regina Henschel 2018-12-04 14:16:57 UTC
Problem is in normal LibreOffice.
Tested with Version: (x64)
Build ID: d71ea82055a6a304493c7eaa90809a348e23784d
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-19_04:56:18
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 6 Xisco Faulí 2018-12-05 11:09:25 UTC
Reproduced back to

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-

either if the trapezoid is drawn from top to bottom or from bottom to top the top edge is always bigger than the bottom one
Comment 7 Heiko Tietze 2018-12-10 10:03:28 UTC
Another shape is one solution but it would be more flexible to rotate the text inside shapes. Is this feature available in ODF, Regina?
Comment 8 Regina Henschel 2018-12-10 14:44:16 UTC
Yes, ODF has the feature to rotate the text. But there are two shortcomings:
1. LibreOffice has no UI for this feature.
2. Import and Export with MS Office does not work. LibreOffice cannot yet read/write the OOXML text rotations needed for 180° rotation and MS Office cannot read/write the ODF text rotations.

MS Office has the trapezoid, with the smaller top edge in its presets, not the one with the smaller edge at bottom, which is currently in LibreOffic's preset. I don't know why LibreOffice has it, perhaps it was used in MS 97.

If you use LibreOffice's trapezoid or my trapezoid from the attached file and save to pptx, it has no handle, if you open it in PowerPoint. If saved to odp, PowerPoint opens it and it has the handle. But if then saved to pptx by PowerPoint and opened by LibreOffice, the handle is not usable.

If LibreOffice opens a pptx file, it generates a shape of type "ooxml-trapezoid" with smaller edge at top. If you use this shape in a new file, which is then exported into the pptx-format, PowerPoint can read it. But if you use it in a new file and save to odp-format, it has at least the viewBox bug 76334. PowerPoint will not open it. 

Simple adding the trapezoid from my attached file to the preset might be a _immediately_ possible solution. All other solutions need a lot of bug fixing and/or feature implementation.

I have not tested Word or Excel. There might be additional problems.
Comment 9 csongor 2018-12-12 00:17:37 UTC
Now the prolem is clear but the description was quite confusing. 

First of all, I changed the Component from Impress to Draw because the attached screenshot shows Draw and the problem is present in both.

The steps to reproduce it in Draw:
- Shape -> Insert -> Basic -> Trapezoid
- Draw a trapezoid (the lower edge will be always shorter than the upper, that is, it looks like V rather than A)
- double click the middle of the shape
- Enter some text like "bbb"
- Turn the trapezoid from V-like to A-like, that is, the bottom edge is longer than the upper one. IN order to do that, you can flip it vertically, rotate by 180 degrees, or drag one of horizontal edges to the opposite side of the other horizontal edge.

Whichever way you do it, the label "bbb" will be flipped to "qqq". That is, you cannot create a trapezoid which 
- has its longer edge on the bottom and
- the text is not flipped.
Comment 10 csongor 2018-12-12 00:34:15 UTC
There is a work-around, you can cretae a group of 
- an A-like trapezoid without text and with the desired line and area settings
- a V-like trapezoid in its middle, with the text and with "none" line and "none" area.  

This is not ideal, just a work-around to get a shape that looks like we wanted. 

See the attachment antitrapezoid.odg
Comment 11 csongor 2018-12-12 00:35:13 UTC
Created attachment 147453 [details]
group of two trapezoid to act like a single A-like trapezoid
Comment 12 Heiko Tietze 2018-12-12 10:40:54 UTC
Okay, so let's focus on adding an upside-down trapezoid here and discuss the text rotation in bug 122039.