Bug 76296 - FILEOPEN: Upside Down "?" at beginning when open MathML file
Summary: FILEOPEN: Upside Down "?" at beginning when open MathML file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version: 4.2.1.1 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-17 23:22 UTC by Enchanter Thunderbird
Modified: 2015-01-24 13:58 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Test MathML file (1.39 KB, application/mathml+xml)
2014-03-17 23:22 UTC, Enchanter Thunderbird
Details

Description Enchanter Thunderbird 2014-03-17 23:22:15 UTC
Created attachment 95970 [details]
Test MathML file

Problem description: 
I got an upside down "?" in front of the equation when I open MathML file.

Steps to reproduce:
1. Just open the MathML

Current behavior:
an upside down "?" in front of the equation

Expected behavior:
Shouldn't have an upside down "?" in front of the equation
              
Operating System: Debian
Version: 4.2.1.1 release
Comment 1 Jorendc 2014-03-19 17:12:05 UTC
Well, that upside down question mark is due a wrongly formatted MathML code.

Your formula is:
matrix {# {italic "G"_italic "x" = left [ matrix {{-italic "1"} # italic "0" # italic "1" ## {-italic "2"} # italic "0" # italic "2" ## {-italic "1"} # italic "0" # italic "1"} right ]} # {"(1)"}}

If I just delete the first #, the question mark is gone:
matrix {{italic "G"_italic "x" = left [ matrix {{-italic "1"} # italic "0" # italic "1" ## {-italic "2"} # italic "0" # italic "2" ## {-italic "1"} # italic "0" # italic "1"} right ]} # {"(1)"}}

I'm not a MathML syntax expert, but I guess the formula was just incorrectly formatted?

Kind regards,
Joren
Comment 2 Enchanter Thunderbird 2014-03-20 22:44:17 UTC
I can't see anything wrong with the MathML file. It looks like the first empty element before '#' sign is caused by miss parsing the mspace element in the MathML file. The formula editor can ignore the first mspace or add '`' for spacing in the converted equation.
Comment 3 Marcos Souza 2014-04-05 15:15:10 UTC
(In reply to comment #2)
> I can't see anything wrong with the MathML file. It looks like the first
> empty element before '#' sign is caused by miss parsing the mspace element
> in the MathML file. The formula editor can ignore the first mspace or add
> '`' for spacing in the converted equation.

But, why you need the first # in the beginning of the formula? We could try to avoid this problem but, this seems to be a formula problem.

(I tried to open this file in Firefox, and it open it correctly)(In reply to comment #2)
> I can't see anything wrong with the MathML file. It looks like the first
> empty element before '#' sign is caused by miss parsing the mspace element
> in the MathML file. The formula editor can ignore the first mspace or add
> '`' for spacing in the converted equation.

It seems we need to improve our MathML import code... Maybe I can try to look at this in this week (I'm really busy, but, I can take a look....)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.