Bug 67771 - quoting in formula/equation editor changes alignment as well
Summary: quoting in formula/equation editor changes alignment as well
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2013-08-05 08:11 UTC by Yury
Modified: 2021-02-02 06:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
formula file showing the problem (5.14 KB, application/vnd.oasis.opendocument.formula)
2013-08-05 08:11 UTC, Yury
Details
formula with quotes (left and right ) added to symbol set (57.63 KB, image/png)
2021-01-31 17:18 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yury 2013-08-05 08:11:45 UTC
Created attachment 83644 [details]
formula file showing the problem

In formula/equation editor, quoting the text changes text alignment as well, which is unexpected and wrong behaviour.

Example file (formula) attached. You may try with the source of the formula:

E = "N"
over 
{ exp left[ 1 over {k_B T} right]  − 1 }

Here N is aligned to the left. Removing the double quotes from around N changes alignment to (correct) center.
Comment 1 Mike Kaganski 2013-08-05 08:25:31 UTC
Reproducible with 4.1.0.4, 3.6.0.4, 3.3.0.4 and AOO 4.0 under Win7x64.
Comment 2 QA Administrators 2015-04-19 03:22:17 UTC Comment hidden (obsolete)
Comment 3 Yury 2015-04-19 06:13:40 UTC
The issue's still there on 4.3.7.1 and 4.4.2.2 (linux/amd64).
Comment 4 QA Administrators 2016-09-20 09:24:50 UTC Comment hidden (obsolete)
Comment 5 Yury 2016-09-20 16:17:12 UTC
Issue still there in:
Version: 5.2.1.2
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
CPU Threads: 2; OS Version: Linux 4.4; UI Render: default; 
Locale: ru-RU (en_GB.UTF-8); Calc: group
Comment 6 Xisco Faulí 2017-09-29 08:52:11 UTC Comment hidden (obsolete)
Comment 7 dante19031999 2021-01-31 15:58:38 UTC
This would kill the sacred blackguards compatibility.
Even if I would like to change it, no solution is possible.
Old document formats must be protected.
Comment 8 Mike Kaganski 2021-01-31 16:06:21 UTC
(In reply to dante19031999 from comment #7)
> Even if I would like to change it, no solution is possible.

Sorry, what do you mean? We always can introduce compatibility flags to have old documents rendered the old way. At lease describe your findings that prevent fixing this. Thanks!
Comment 9 V Stuart Foote 2021-01-31 17:18:29 UTC
Created attachment 169334 [details]
formula with quotes (left and right ) added to symbol set

Please note that the ascii quote (U+0022) has always been the control to bracket StarMath text runs.  

The alignment of a formula node containing only text is Left, not centered.

Likewisee the ascii apostrophe (U+0027), and ascii tilde (U+007E) are not litterals in SM, but are spacing controls.

If one actually needs to use quotes inside a formula you would need to define a symbol for it from the Symbols... dialog--though a left quote (U+201C) and a right quote (U+201D) would be more useful.

The same with apostrophe and tilde if needed.

Attached is a clip of a formula with correct use of quotations a lquote and rquote symbol defined.
Comment 10 Yury 2021-02-02 06:24:38 UTC
I could yet understand THAT reason:

> The alignment of a formula node containing only text is Left, not centered.

although I'd like to see a reference.

All that talk about quote redesigning, though, -- that just ain't serious. 
Just like the project attitude since ca. 2015.

But whatever.
I've managed to finish that big project, working on which I've reported this and other issues with LO Math.
Of course, I had yet more un-fun with lauded LO's export to MS formats. In summa, after LO switching to the 4th series I've spent more effort working around LO's bad manufacturing than on the project itself.

And now it's "no more LO text processor for important projects involving graphics and/or formulas" for me. And, in fact, no more LO at all, seeing as it sort of went to pot. (Of course I keep a copy in case something with proprietary LO's ODT innovations shows up here.)

Cheers.