Issue 21484 - Problems with missing operator arguments in formulas imported from MS Equations
Summary: Problems with missing operator arguments in formulas imported from MS Equations
Status: CONFIRMED
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: PC Windows 2000
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 23459 27195 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-21 07:51 UTC by gora
Modified: 2013-08-07 14:54 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
These are the formulas I use that are converted showing errors (35.00 KB, application/octet-stream)
2003-10-24 13:46 UTC, gora
no flags Details
Bug with superscript (14.50 KB, application/octet-stream)
2003-10-24 16:55 UTC, gora
no flags Details
Example of error with aboutsign (14.50 KB, application/octet-stream)
2003-10-24 16:57 UTC, gora
no flags Details
Example of error with systems (14.50 KB, application/octet-stream)
2003-10-24 17:01 UTC, gora
no flags Details
Example with everage value sign or state sign in quantum mechanics (14.50 KB, application/octet-stream)
2003-10-24 17:02 UTC, gora
no flags Details
Example of error with divide sign (15.00 KB, application/octet-stream)
2003-10-24 17:03 UTC, gora
no flags Details
Example with text in the formula (14.50 KB, application/octet-stream)
2003-10-24 17:04 UTC, gora
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description gora 2003-10-21 07:51:23 UTC
When converting from Ms Equation some formulas have * sign in the superscript.
This sign is used often to distinguish values or for imaginary number. After
converting Formulae editor understands as multiply sign thus formulae showed not
correctly. The second thin that is closely connected with this bug that some
times formulae begins from equal sign (=). After converting formulas are not
shown correctly bisplaying what there are some problems with it. I think that
they can be easely solved by changing <?> sign to {?} for the errors in formulas
converting from Ms Equation.
Comment 1 guido.pinkernell 2003-10-24 11:49:40 UTC
Please attach a Word doc file which contains an appropriate formula
for us to be able to reproduce your problem. Thanks
Comment 2 gora 2003-10-24 13:46:58 UTC
Created attachment 10608 [details]
These are the formulas I use that are converted showing errors
Comment 3 guido.pinkernell 2003-10-24 14:17:52 UTC
Thanks. Which is the formula that shows the described problem? Please
attach a file which contains this formula only.

Background: We need OOo to import the formulas so that they can be
edited by OOo Math Editor, which would then allow us to have a look at
the translated source code. But sometimes - and in my case it is - ,
importing MathType formulas can be very very slow (which is known) so
it would speed up the process considerably if you provide a doc with
only one of the formulas in question. Thanks again.
Comment 4 gora 2003-10-24 16:55:05 UTC
Created attachment 10614 [details]
Bug with superscript
Comment 5 gora 2003-10-24 16:57:55 UTC
Created attachment 10615 [details]
Example of error with aboutsign
Comment 6 gora 2003-10-24 17:01:34 UTC
Created attachment 10616 [details]
Example of error with systems
Comment 7 gora 2003-10-24 17:02:37 UTC
Created attachment 10617 [details]
Example with everage value sign or state sign in quantum mechanics
Comment 8 gora 2003-10-24 17:03:36 UTC
Created attachment 10618 [details]
Example of error with divide sign
Comment 9 gora 2003-10-24 17:04:15 UTC
Created attachment 10619 [details]
Example with text in the formula
Comment 10 gora 2003-10-24 17:08:08 UTC
I've posted sample docs with formulas. All they are from my master
degree work. So these thigns are usefull... Without these error fixed
I won't persuade my bosses to shift to openoffice from MSOffice. 
Comment 11 guido.pinkernell 2003-10-24 17:22:44 UTC
Thanks a lot, this is a nice collection of MathType fonts. I will have
a look through them and will either open a new Issue for each or find
a duplicate within the existing Issues.

As for your persuading your bosses:

> Tools > Options > Load/Save > MSOffice > disable both options in
"...MathType...". The formulas will open without faults, but you won´t
be able to edit them as long as you haven´t MathType installed on your
PC. (I had a look at your first formula in OOo without importing it,
it looks fine.)
And, you are always able to create fine looking formulas like these
within OOo Math Formula Editor. 

The problem lies simply in loading the MathType formulas into OOo
*and* being able to edit them.

I hope this helps as a start.
Comment 12 guido.pinkernell 2003-10-24 17:54:16 UTC
Gora, from other Issues I gather that certain version of MathType
formulas are presently not supported by OOo. Could you tell what
version you used to create these formulas? Thanks!
Comment 13 gora 2003-10-25 22:13:34 UTC
I used Ms word 2000 with standart MS Equation Editor version 3.01 to
create these formulas. 
Comment 14 thomas.lange 2003-10-29 10:35:12 UTC
The problem is that many of Math operators/function know about the
number of arguments they need (or at least want) ans insists on having
them or otherwise the parser will produce an error (that head over
tails question mark).

This is a very old behaviour probably introduced with the very first
version of Math. I wouldn't have implemented it that way myself but it
happened to be that way and I'm never sure if this should be
considered to be a feature (reminding the user ha has missed
something) or a bug (making things to complicated).

However there are two ways the import problem can be solved.
a) The import has to be improved and provide the missing arguments
   by supplying empty arguments.
   E.g. the single * operator from the sample document has to be
   converted to {} * {}  or even  {{}*}{}}.
   This a tedious task to check for and won't make the formula
   text more human readable.
b) We have to change the parser to allow for missing arguments.
   This would take some time since it is not just omitting some
   code but rather rewriting the parser.
   But it would be more the way other tools (e.g.like TeX) 
   handle this.
   I'm not sure if an import for the old style needs to be done
   but currently I think not since the parser would be less
   restrictive. But that remains to be checked more closely once
   the parser is changed.

I think we should go for the latter solution.
That is the target will probably be OOo later since there are
currently more urgent tasks in other areas at hand.

TL->BH: To you for decision.
Comment 15 guido.pinkernell 2003-10-30 19:08:25 UTC
Some characters which in OOo are used as operators obviously need be
treated as text, while being imported. Issue 15545, which is fixed
already, dealt with a similar problem.

I will rewrite the summary to have this Issue focused on the operator
character -> text character problem, and will set to new.

As to the other formula import problems, they need to be checked for
duplicates, and probably being dealt with in new Issues.
Comment 16 guido.pinkernell 2003-10-30 22:29:53 UTC
Sorry for rewriting the summary again, but I had a more thorough look
through the attached examples again. They are a good collection of
examples to show the different aspects of how to deal with importing
formulas with characters which can have different meanings in
different contexts.

Ambigous characters:

superscript.doc: Here * is meant to be text, not a multiplication
                 operator which would need arguments.
average.doc:     Here < is meant to be some sort of left bracket
                 ("average value sign"), but not a "lower than"
                 sign which would need arguments.

Arguments left out deliberately:

about.doc:       Here approx is meant to be the approx relation
                 where the left argument is missing.

Wrong importing of operators:

divide.doc:      Here the divisor operator / is meant to be a
                 divisor operator. It does have both arguments
                 but OOo only recognises the right.

Matrices messed up (probably not related to the former issues):

system.doc and textin.doc: Both contain a matrix which have a 
left lbrace but not a closing right lbrace.
Comment 17 lohmaier 2003-12-11 18:07:17 UTC
*** Issue 23459 has been marked as a duplicate of this issue. ***
Comment 18 lohmaier 2004-04-10 00:35:58 UTC
*** Issue 27195 has been marked as a duplicate of this issue. ***
Comment 19 stephtara 2004-05-16 10:20:10 UTC
I have a very similar problem with 1.0.3 on OSX: all the symbolic signs (+, -,
=, and more fancy stuff like square roots and integrals) don't display, although
they seem to print ok.
Comment 20 bettina.haberer 2004-06-04 15:11:06 UTC
Issue type and target set. 
Comment 21 gora 2004-06-19 18:59:02 UTC
What was the reason of changing issue type from defect to enhancement? Comments
whould be appreciated.
And I wanted to know approximate time of this bug to be fixed. Because I don't
want it to stay for several years as new. (Because my favourite "three year old
new" bug in mozilla haven't been fixed yet) 
Comment 22 gora 2004-06-19 19:45:18 UTC
What was the reason of changing issue type from defect to enhancement? Comments
whould be appreciated.
And I wanted to know approximate time of this bug to be fixed. Because I don't
want it to stay for several years as new. (Because my favourite "three year old
new" bug in mozilla haven't been fixed yet) 
Comment 23 thomas.lange 2006-09-25 11:33:09 UTC
.