Bug 146157 - Please make the inverted question marks after trailing equality signs optional
Summary: Please make the inverted question marks after trailing equality signs optional
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 10:20 UTC by Michael Kogan
Modified: 2024-05-06 05:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kogan 2021-12-10 10:20:28 UTC
Description:
When opening a .docx file which most probably has been created with MS Word and contains mathematical expressions with trailing equality signs, there is an inverted question mark after each such equality sign which isn't there when opening the same file with MS Word. Example:

2+3 = ___

Writer shows:

2+3 =¿ ___

I understand that this is supposed to highlight equations which are incomplete and miss the r.h.s. but in some contexts the missing part is intended. 

I already found the solution to write

2+3 =""___

which suppresses the question mark, but this way I always need to edit each expression in a .docx file I open which is quite cumbersome. It would be great if these question marks could be made optional.

Steps to Reproduce:
1. Open a .docx document with formulas containing expressions with trailing equality signs or write such an expression, for example "2+3=" into the formula editor of an empty document.
2. Observe that there is an inverted question mark after each trailing equality sign.
3. Profit!

Actual Results:
An inverted question mark is shown after every trailing equality sign.

Expected Results:
The question mark shown after a trailing equality sign should be optional.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.utf8); UI: de-DE
7.2.2-2
Calc: threaded
Comment 1 Rafael Lima 2022-05-06 00:03:40 UTC
The "=" sign is a binary operator, meaning that it requires values in both sides. 

Instead of changing the behavior in Math, making the "=" unary, we could change the DOCX import so that when nothing is found after the equal sign, then {} is added after the equals sign.

In your example, instead of using "" you could use {}.
Comment 2 Rafael Lima 2022-05-06 00:04:17 UTC
I am setting this to NEW since this behavior is acceptable in MS Office and is imported as an error in LibreOffice.
Comment 3 Michael Kogan 2022-05-06 00:59:37 UTC
This would solve it for me!
Comment 4 QA Administrators 2024-05-06 03:15:05 UTC Comment hidden (obsolete)
Comment 5 Michael Kogan 2024-05-06 05:03:07 UTC
The bug is still present at least in 24.2.0, most probably in later versions as well.