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

--- Comment #12 from Víctor Hugo Suárez Candal <[email protected]> 
2012-08-19 21:06:39 UTC ---
First of all, sorry for the delay.

(In reply to comment #10)
> (In reply to comment #9)
> > You should insert a formula in a document IA writer
> 
> OK, so I have tried it again with LibreOffice 3.5.6.2 (Build ID:
> e0fbe70-dcba98b-297ab39-994e618-0f858f0) and with LibreOffice 3.6.1.1 (Build
> ID: 4db6344), both on MacOS X 10.6.8 (Intel).
> 
> My steps:
>  1) Start LibreOffice
>  2) Create a new Writer document
>  3) Type "Text A"
>  4) Choose "Insert > Object > Formula"
>  5) Type "f(x)"
>  6) Click after the formula; the formula is italic (correct)
>  7) Double-click the formula and change it, e.g. to "y = f(x)"
>  8) Click after the formula; the formula is italic (correct)
>  9) Type "Text B"
> 10) Click on the formula and press Command + C
> 11) Click after "Text B" and press Command + V, to get a copy of the formula
> 12) Double-click the formula and edit it, e.g. to "y = x^2 + 2 x + 1"
> 13) Click after the formula; the formula is still italic (correct)
> 
> So I can’t confirm this issue, sorry; for me, everything works as expected. 
> (Of
> course, only the variables are italic, like 'x' and 'y', but this is correct;
> constants like the numbers (figures: '1', '2', etc.) and operators ('+', '='
> etc.) and functions ('sin' 'cos' 'tan') should never be italic.)
> 
> 
> @ Víctor Hugo Suárez Candal:
> 
> I really like to help you via confirming this issue, but as said above I 
> can’t.
> Can you please try to explain if you do something different; i.e., where is 
> the
> difference between my steps listed above and what you do until the formula is
> no more italic?
> 
> Thank you very much again!

I've repeated **exactly** your steps, and everything is ok until step 12, after
which the formula loses italics.

My configuration differs from yours in this aspects:
  - I'm running LibreOffice 3.6.0.4 (Build ID 932b512), which I've downloaded
from the LibreOffice homepage, and I've installed the spanish language pack.
These are the md5sums of the dmg images I've downloaded:
    371ef734a6dc6e13569d3f703b8ec749  LibO_3.6.0_MacOS_PPC_install_en-US.dmg
    cb068c3f5b21be3751e62944335a98f3  LibO_3.6.0_MacOS_PPC_langpack_es.dmg
  - I'm running the PowerPC version of LibreOffice. Since it works ok in you
Intel machine, that makes me think about an endianness-related issue.
  - I'm running LibreOffice on Mac OS 10.4.11, what is perhaps another possible
source for this problem.

Since the formulas remain no italic after saving and opening the file again,
there must be some difference between the original formula and its copy, so I
went further and took a look inside the odt file, and this is what I got:

Contents of "Object 1/content.xml" (original formula)
<?xml version="1.0" encoding="UTF-8"?>
<math
xmlns="http://www.w3.org/1998/Math/MathML";><semantics><mrow><mrow><mi>y</mi><mo
stretchy="false">=</mo><mi>f</mi></mrow><mrow><mo
stretchy="false">(</mo><mrow><mi>x</mi></mrow><mo
stretchy="false">)</mo></mrow></mrow><annotation encoding="StarMath 5.0">y =
f(x)</annotation></semantics></math>

Contents of "Object 2/content.xml" (copied formula)
<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML";><semantics><mrow><mrow><mi
mathvariant="normal">y</mi><mo stretchy="false">=</mo><mi
mathvariant="normal">f</mi></mrow><mrow><mo stretchy="false">(</mo><mrow><mi
mathvariant="normal">x</mi></mrow><mo
stretchy="false">)</mo></mrow></mrow><annotation encoding="StarMath 5.0">y =
f(x)</annotation></semantics></math>

You can see the mathvariant="normal" attribute in the second case, which isn't
present in the first case.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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