[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-11 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

--- Comment #7 from dante19031...@gmail.com ---
(In reply to Rafael Lima from comment #6)
> @Dante you worked with the MathML parser some time ago. Do you have any good
> code pointer for this one?

I can't help you much with this. I lack knowledge about how the information is
encoded on MS Word.

About mathml, if you wanted to insert some stuff such as operator which are
decorative you would add them as = which on LO should be "=".

The bug 1:
Formula:   {v} ^ {+} =C {left ({y} over {R} right )} ^ {α}
Should be: {v} ^ {{}+{}} =C {left ({y} over {R} right )} ^ {α}
   |  |
As you can the operators have not been escaped. This is a feature of LO I
dislike because forces me to write much useless code.

The bug 2:
Formula:   ln {{p} ^ {vap} left[ bar   right] =A- {B} over {t left [°C right ]
+C}}
Should be: ln {{p} ^ {vap} left[ "bar" right] =A- {B} over {t left [°C right ]
+C}}
 |  |
As you can see a keyword has been treated as a variable name. This one is more
tricky because it would be necessary add a command of the style mi "variable
name" if you want to ensure the safety of variable name text.

The bug 3:
Formula:circle area  = π {r} ^ {2}
Should be: "circle area" = π {r} ^ {2}
|  |
As you can see here we have double bug. First text information has been treated
as variable names. Secondly we have fallen victims to bug 2.

I hope this information has been useful to you.

https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtext
https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

Rafael Lima  changed:

   What|Removed |Added

 CC||dante19031...@gmail.com

--- Comment #6 from Rafael Lima  ---
@Dante you worked with the MathML parser some time ago. Do you have any good
code pointer for this one?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

Rafael Lima  changed:

   What|Removed |Added

 CC||rafael.palma.l...@gmail.com

--- Comment #5 from Rafael Lima  ---
(In reply to Francisco from comment #4)
> It should be imported as 
> 
> "cicle area"
> 
> without italics; look at the original DOCX file. But this is actually a
> different bug, bug 146726.

Thanks for the pointer... indeed this should not be italic.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

--- Comment #4 from Francisco  ---
Thank you, Rafael.

Just one comment

(In reply to Rafael Lima from comment #3)

> 
> But it should have been imported as:
> 
> italic "circle area" = π {r} ^ {2}
> 

It should be imported as 

"cicle area"

without italics; look at the original DOCX file. But this is actually a
different bug, bug 146726.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

QA Administrators  changed:

   What|Removed |Added

 Whiteboard| QA:needsComment|

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-05-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

Rafael Lima  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #3 from Rafael Lima  ---
Hi Francisco, this is a real problem while importing formulas from MS Office
files. For example, the circle area formula was imported as:

circle area = π {r} ^ {2}

But it should have been imported as:

italic "circle area" = π {r} ^ {2}

So whenever a formula from MS Office contains a reserved word for Math, it
should be imported as italic quoted strings.

I am setting this to NEW.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-01-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

QA Administrators  changed:

   What|Removed |Added

 Whiteboard|| QA:needsComment

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-01-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

--- Comment #2 from Francisco  ---
Created attachment 177513
  --> https://bugs.documentfoundation.org/attachment.cgi?id=177513=edit
Side by side comparison

Comparison with LO 7.2.5.2. The import from older versions may be a little
different for  Eq. 4, but wrong anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-01-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

Francisco  changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=14
   ||6726

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 146727] Import strings that matches specific LO Math operators in MSO equations as text

2022-01-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=146727

--- Comment #1 from Francisco  ---
Created attachment 177512
  --> https://bugs.documentfoundation.org/attachment.cgi?id=177512=edit
example file with broken text

Look at equations 2 to 4: all of them are wrong or simple broken

-- 
You are receiving this mail because:
You are the assignee for the bug.