Bug 170171 - Fileopen DOCX: Formula with brackets shows inverted question marks
Summary: Fileopen DOCX: Formula with brackets shows inverted question marks
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.8.0 target:26.2.0.2 target:...
Keywords: bibisected, bisected, filter:docx
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2025-12-30 12:54 UTC by Timur
Modified: 2026-01-10 07:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
DOCX (22.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-12-30 12:54 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2025-12-30 12:54:30 UTC
Created attachment 204862 [details]
DOCX

Fileopen attached DOCX. 
Equation interval with brackets shows inverted question marks. Should be: [0;+∞[

Never worked, there was change in 5.4.
commit eeadfca73794593b07829b4ffa36c97dff59660c	[log]
author	Takeshi Abe <tabe@fixedpoint.jp>	Sat Mar 25 16:27:19 2017 
committer	Takeshi Abe <tabe@fixedpoint.jp>	Thu Mar 30 11:08:39 201
starmath: Hold error nodes as subnodes of SmBracebodyNode

https://gerrit.libreoffice.org/c/core/+/196303 to fix that thanks to Pranam.
Comment 1 Robert Cabane 2025-12-30 18:32:18 UTC
Still there in december 2025.
In fact, I wouldn't consider this as a bug, since the specific formula description language (in LO) doesn't consider 
left [0 ; "+" ∞[
as a coherent formula. The original formula inside the docx file lacks of coherence also ("left" without "right").

However, the proposed bug could be reconsidered as ENHANCEMENT : while importing math formulas from a docx file, delimiters like [ ( ) ] could be inserted as "[" "(" ")" "]".
Comment 2 Commit Notification 2026-01-08 17:57:46 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/966cbcaeea8d848b64eb59e980eac7cd543fcc5d

tdf#170171 math: allow equestions to end without opening brackets

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2026-01-09 13:24:40 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/180554b85818a677db1ebdd5bfac49042907c85d

tdf#170171 math: allow equestions to end without opening brackets

It will be available in 26.2.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2026-01-09 21:16:27 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/1529cee759293bd49042e771ad1778e0c833ce86

tdf#170171 math: allow equestions to end without opening brackets

It will be available in 25.8.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2026-01-10 07:55:17 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4a4253ac07382382a8e0e620a93b4e140b62619b

tdf#170171: sw_ooxmlimport2: Add test

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.