Bug 169843 - Fileopen DOCX: Set of real numbers R not read properly as symbol
Summary: Fileopen DOCX: Set of real numbers R not read properly as symbol
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Pranam Lashkari
URL:
Whiteboard: target:26.8.0 target:26.2.0.2 target:...
Keywords:
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2025-12-05 15:30 UTC by Timur
Modified: 2026-01-07 19:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
R.docx (40.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-12-05 15:30 UTC, Timur
Details
Variant (20.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-12-05 15:53 UTC, Robert Cabane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2025-12-05 15:30:56 UTC
Created attachment 204453 [details]
R.docx

Attached DOCX contains R symbol for Set of real numbers.
On the bottom is image how it looks in MSO.
When opening in LO, simple R is shown, which is not correct.
When saved and reopened, also in MSO simple R is shown.
LO has that symbol in Formula-Elements-Set Operations. 
So this look like filepen bug for DOCX.
OO did not read it. This seems implementation error somewhere in 3.x.
Comment 1 Robert Cabane 2025-12-05 15:44:12 UTC
Within document.xml you can find this :
<w:rPr><w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math" w:cs="Arial"/>
<w:color w:val="000000" w:themeColor="text1"/><w:sz w:val="48"/><w:szCs w:val="48"/></w:rPr>
<m:t xml:space="preserve"> R </m:t></m:r>
So, this is really an L letter within a specific (non-free) font.

Could you try it on a reversed way ? That is, compose first your document within  LO, using the setR symbol in LO Math, save your document in docx format and open it in MS Word. What do you get ?
Comment 2 Robert Cabane 2025-12-05 15:53:03 UTC
Created attachment 204454 [details]
Variant
Comment 3 Robert Cabane 2025-12-05 15:54:07 UTC
I did the aforementioned experiment. It seems that in the resulting docx file Lo uses the Unicode U+211D character.
Comment 4 Timur 2025-12-29 15:19:40 UTC
Should be fixed with https://gerrit.libreoffice.org/c/core/+/196305.
Comment 5 Commit Notification 2026-01-05 09:06:27 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d2dc364ca322f7331652a184a2a69d585b2615da

tdf#169843 math: OOXML set letter not interpreted correctly

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 6 Commit Notification 2026-01-05 18:33:16 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/e172a3343eae39b5d45bfb99fd88c51bfd9d7b01

tdf#169843 math: OOXML set letter not interpreted correctly

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 7 Commit Notification 2026-01-05 22:58:36 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8b9a76140691635ca3625f108e1a145dfdc3fb9a

tdf#169843: 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.
Comment 8 Timur 2026-01-07 12:25:11 UTC
I assume this can be closed. Thank you Pranam.
Comment 9 Commit Notification 2026-01-07 19:11:23 UTC
Pranam Lashkari committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/bc1606b1516b5915c4f11e0f3fce9d9fe71ccb10

tdf#169843 math: OOXML set letter not interpreted correctly

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.