Bug 155534 - Symbol of widevec and wideharpoon are stretched evenly
Summary: Symbol of widevec and wideharpoon are stretched evenly
Status: RESOLVED DUPLICATE of bug 32362
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2023-05-28 11:04 UTC by Neme
Modified: 2023-08-25 07:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
streched arrow (60.18 KB, image/png)
2023-05-28 11:04 UTC, Neme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neme 2023-05-28 11:04:31 UTC
Created attachment 187556 [details]
streched arrow

Symblo of widevec and wideharpoon are stretched evenly when they become wider, but the arrowhead shouldn't be stretched, like what they do in latex :)
Comment 1 V Stuart Foote 2023-05-28 16:41:19 UTC
Technically this is not a bug, rather an enhancement.

As with bug 32362 for scaling or stretching of vertical bracketing, sm formula "nodes" are calculated in width and size for the formula, and then currently a *single* glyph is stretched to fit. 

For Starmath's vec/widevec the glyph is U+20D7 "COMBINING RIGHT ARROW ABOVE"

We added support for a single glyph harpoon for bug 120047,  harpoon/wideharpoon using U+20D1 "COMBINING RIGHT HARPOON ABOVE"

However to do better stretching, the need is to compose sm "nodes" with multi-glyph strings. For the wideharpoon and the widevec that might be using the arrow heads with the U+23AF unicode. And maybe similar with U+23D0 for vertical arrows. While using the the 2 and 3 glyph brackets sets-- TOP, BOTTOM / LEFT, RIGHT and the EXTENSION (HORIZONTAL, VERTICAL) as for bug 32362. 

Of course few of these Unicode points are defined in our OpenSymbol font set so the appropriate gylyphs would need to be added once the Starmath module logic is refactored to support multi-glyph brackets and arrows.
Comment 2 ⁨خالد حسني⁩ 2023-08-25 07:06:43 UTC

*** This bug has been marked as a duplicate of bug 32362 ***