Bug 157156 - Symbols in a MathType equation do not convert correctly
Summary: Symbols in a MathType equation do not convert correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2023-09-08 15:59 UTC by NicolasC
Modified: 2023-09-22 20:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample .docx document with greek letters (43.31 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-09-08 15:59 UTC, NicolasC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NicolasC 2023-09-08 15:59:23 UTC
Created attachment 189437 [details]
sample .docx document with greek letters

Hello everyone.

(I suppose this report is a Document Liberation Project bug ; sorry if this is wrong. I dunno to which component it should be attached)

When you import  a MSword .docx document that has equations that use the MathType format, all the symbols, e.g. greek letters, are lost.

Tested on MacOS only (.docs documents created on the mac), but probably windows-related also.
Bug occurs with LibreOffice or LibreOffice-online, no matter the version (tested 4.X and 7.X).

I suspect an origin :

- MathType format encode symbols using a 'standard' character but tagged with a specific font, typically "Symbol".
E.g : in MathType the greek letter Phi is poly encoded with a simple 'p', but with Symbol font

- in OpenOffice equation, a symbol is a marked-up character, e.g. %phi

- when converting MathType to OpenOffice, the converted probably ignores the MathType fonts employed



A (wrong) solution consists in changing the font in the equation in openOffice once the document has been loaded.
This redisplays the symbols (e.g. greek characters). Hourra !
... but it also turns all the original english characters into Greek :)

Thanks for attention,
Cheer up !
Comment 1 Rafael Lima 2023-09-08 18:35:07 UTC
Opening the Math object, I see that the greek letters are enclosed with quotes. For instance:

size 12{"p==" ital "the"_ ital "greek"_ ital "letter"_ ital "pi"}  {} # 

If we change "pi" for %pi it works.

I guess this is an import error, failing to recognize that "pi" and "phi" are greek characters.
Comment 2 Telesto 2023-09-09 03:31:22 UTC
Confirm
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e60ef8651cfb30335471d1622e58c13eebc7d58b
CPU threads: 8; OS: Mac OS X 13.4.1; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded