Bug 66284 - Non math text in a math region, i.e. "*" in a Word docx not recognised by Libreoffice
Summary: Non math text in a math region, i.e. "*" in a Word docx not recognised by Lib...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
4.0.2.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2013-06-27 21:56 UTC by stphnryn444
Modified: 2020-11-23 13:49 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Text in a math field that is removed in Libreoffice (15.09 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-06-27 21:56 UTC, stphnryn444
Details
The example file opened in 4.0 and 4.1 side by side (141.21 KB, image/png)
2020-11-23 13:49 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stphnryn444 2013-06-27 21:56:45 UTC
Created attachment 81588 [details]
Text in a math field that is removed in Libreoffice

For instance, importing the attached equation a^"*" from microsoft word docx, (written in Libreoffice Formula editor as {a}^{"*"}) removes the quotation marks on import leaving {a}^{*} which returns a broken equation error immediately, because * is an operator.

The quotation marks, or "non math feature" is needed for importing docx equations which happen to also be any of the Libreoffice operations, as is stated in the Libreoffice math guide.

On re-exporting, the quotation marks / non math region is still missing which leads to further errors down the line (e.g. re-importing an asterix breaks the equation immediately as it is treated as an operator)

This is repeatable with quotation marks around anything in a Word docx. But, creating a docx in libreoffice with quotations in an equation works fine.

In summary, it appears as though the non-math text feature of microsoft (which you can access using quotation marks in either software) is ignored by libreoffice, despite libreoffice having the equivalent feature of using quotation marks
Comment 1 Phil Krylov 2018-04-16 21:31:16 UTC
The same happens with RTF import, an asterisk within a \mr text run in math is not quoted on import and displays as ¿.

LibreOffice version 6.0.3.2.
Comment 2 NISZ LibreOffice Team 2020-11-23 13:49:30 UTC
Created attachment 167501 [details]
The example file opened in 4.0 and 4.1 side by side

This seems to be working since version 4.1.0 and ever since in current nightly 7.1.