https://bugs.freedesktop.org/show_bug.cgi?id=66525

          Priority: medium
            Bug ID: 66525
          Assignee: [email protected]
           Summary: IMPORT specific formula in a MS Word document is wrong
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 3.6.3.2 release
         Component: Formula Editor
           Product: LibreOffice

Testcase: Attachment 81816 from Bug 66463.
Screenshot shownig incorrect rasulting formula: Attachment 80819. Please note
the third image showing incorrect curly brace and red question marks.

The internal structure of the imported formula is this:

size 12 {
 alignl {
  stack {
   left lbrace
    {{c}} sup {'} rSub {size 8{1}} left (x right )+ {{c}} sup {'} rSub {size
8{2}} left (x right ) cdot e rSup {size 8{- x}} =0 {} # 
   right none
   left lbrace
    - {{c}} sup {'} rSub {size 8{2}} left (x right )e rSup {size 8{- x}} = {{1}
over {e rSup {size 8{x}} +1} } {} # 
   right no
  }
 }
 lbrace
}
{}

Note:
* lbraces positioned incorrectly (inside stack; in each line of the stack;
second "left lbrace" is matched by bad-syntax "right no"; extra lbrace in the
end without match);
* extra "#" in the end of the second stack line.

Here is the corrected formula:

size 12 {
 left lbrace
  alignl {
   stack {
    {{c}} sup {'} rSub {size 8{1}} left (x right )+ {{c}} sup {'} rSub {size
8{2}} left (x right ) cdot e rSup {size 8{- x}} =0 {} # 
    - {{c}} sup {'} rSub {size 8{2}} left (x right )e rSup {size 8{- x}} =
{alignc {1} over {e rSup {size 8{x}} +1} } {}
   }
  }
 right none
}
{}

Note that I intentionally left unnecesary elements (like empty and redundant
braces) to keep resemblance. I had to add alignc to the division in the lower
line to restore its correct representation.

I suppose that the possible cause of the problem is that there is only one
brace in the formula.
A somewhat related is Bug 62178, that discusses the opposite direction problem.

Affected both LO 3.6.3.2 and AOO, so must be an inherited problem. Still
present in 4.0.3 and 4.1.0.1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to