Bug 116239 - Equation shows inverted question mark for simple equation
Summary: Equation shows inverted question mark for simple equation
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2018-03-06 15:04 UTC by Nguyen Damien
Modified: 2022-07-04 07:58 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
equation display error example (11.39 KB, application/vnd.oasis.opendocument.text)
2018-03-06 15:06 UTC, Nguyen Damien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nguyen Damien 2018-03-06 15:04:56 UTC
Description:
The equation "M^{+}" does not get displayed properly in LibreOffice 6.0 and 5.4.

Steps to Reproduce:
1.Open new document
2.Create new equation with the following text: "M^{+}"

Actual Results:  
The document displays "M" followed by the superscript "+¿" (ie. + followed by an inverted question mark)

Expected Results:
The display should show "M" followed by the superscript "+"


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The following equation text displays properly: "M^{+1}"


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Comment 1 Nguyen Damien 2018-03-06 15:06:08 UTC
Created attachment 140391 [details]
equation display error example
Comment 2 Jacques Guilleron 2018-03-07 14:35:50 UTC
Hi,
I reproduce with
LO  6.0.2.1 Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
Threads CPU : 2; OS : Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: CL
also with
LO 3.5.3.2 Version ID : 235ab8a-3802056-4a8fed3-2d66ea8-e241b80
so probablly inherited from OOo.

Suggestion : M^+{} 
but this is only a workaround.
Comment 3 Julien Nabet 2020-07-01 15:54:41 UTC
The inverted "?" shows LO expects something after the "+".
I don't know the Math syntax but are we sure it's a bug? Is there some official doc?
Comment 4 Michael Warner 2020-07-02 23:32:44 UTC
This help page:

https://help.libreoffice.org/6.4/en-US/text/smath/01/03091200.html?&DbPAR=WRITER&System=UNIX

Only shows examples of numbers being used in the exponent,  but it doesn't explicitly list a specific set of allowed or disallowed characters.
Comment 5 QA Administrators 2022-07-04 03:27:33 UTC Comment hidden (obsolete)
Comment 6 Nguyen Damien 2022-07-04 07:39:52 UTC
Bug still present in LibreOffice 7.3.4.2

Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 88; OS: Linux 5.18; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
7.3.4-2
Calc: CL
Comment 7 Ming Hua 2022-07-04 07:58:10 UTC
(In reply to Julien Nabet from comment #3)
> The inverted "?" shows LO expects something after the "+".
> I don't know the Math syntax but are we sure it's a bug? Is there some
> official doc?

FWIW all binary operators (+, -, *, /) have this problem of generating inverted "?" when used alone as superscript (+ and - are also unary operators, so the workaround M^{+{}} works, for * and / one has to use M^{{}*{}}).

I would say that's just the way LO Math works due to lack of escape character.