[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #10 from sm8ps sm8ps-bugzil...@yahoo.com --- I have been using 4.1.5 but am eager to give 4.2 a try. Will get back here with a report. The changelog http://www.libreoffice.org/download/4-2-new-features-and-fixes/ indeed contains Improved MathML Export (Frédéric Wang). So chances are that this issue is fixed in 4.2 indeed. Would be awesome if the bug had been automagically fixed! -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 sm8ps sm8ps-bugzil...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from sm8ps sm8ps-bugzil...@yahoo.com --- OK, couldn't resist (of course!). Gave LO-4.2 a whirl and the bug is solved. Yippie! I shall set the status to resolved (fixed). Many thanks to this community her (Julien Nabet, David Tardon) for their time and constructive support and to the programmer who actually fixed it (presumably Frédéric Wang, maybe others as well)! Ain't I glad I did not have to dig any deeper into matters! Stefan Mueller, Switzerland -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #9 from Julien Nabet serval2...@yahoo.fr --- Created attachment 94173 -- https://bugs.freedesktop.org/attachment.cgi?id=94173action=edit test with 4.2 sources On pc Debian x86-64 with 4.2 sources updated some days ago, I don't reproduce this. I created an odt from scratch with the formula then saved in odt + fodt. Then I exported it in mediawiki and got this: math\left\vert x=y\right\vert /math (see attached testcase). However, I could reproduce this with 4.1.4 LO version. sm8ps: which LO version do you use? For the test, could you give a try to 4.2.0? (or 4.2.1 RC1) ? -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #5 from sm8ps sm8ps-bugzil...@yahoo.com --- (In reply to comment #3) sm8ps: I'm not sure to understand, in the first comment you talk about mediawiki, in the second one, you talk about latex. Sorry for the confusion! Mediawiki reads math formulae in (a subset of) LaTeX. So I am (only) speaking of exporting to Mediawiki. sm -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #6 from sm8ps sm8ps-bugzil...@yahoo.com --- (In reply to comment #2) sm8ps: there's this file xslt file: http://opengrok.libreoffice.org/xref/core/swext/mediawiki/src/filter/ odt2mediawiki.xsl Thanks for that input. However, as far as I can tell, that file only defines math-tags (math/math) but not the formula itself. Which seems in accordance with dtardon's comment. Will continue with the remainder of dtardon's information. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #7 from sm8ps sm8ps-bugzil...@yahoo.com --- Created attachment 94119 -- https://bugs.freedesktop.org/attachment.cgi?id=94119action=edit Writer file containing math formula as described plus some system information. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #8 from sm8ps sm8ps-bugzil...@yahoo.com --- (In reply to comment #4) Thanks for your insight! I am trying to follow your suggestions on the previously attached file 'LeftLline-RightRline.odt'. By Flat ODF you mean .fodt (OpenDocument Text (Flat XML) in the Save As dialogue)? That file opens with the correct formula in LibreOffice. Inspecting that file I see: math xmlns=http://www.w3.org/1998/Math/MathML; semantics mrow mfenced open=∣ close=∣ mrow mrow mix/mi mo stretchy=false=/mo miy/mi /mrow /mrow /mfenced /mrow annotation encoding=StarMath 5.0left lline x=y right rline/annotation /semantics /math This seems to tell me that the conversion to MathML successfully translates the vertical bars (mfenced open=∣ close=∣). I checked the source code of xsltml. As far as I can tell, the relevant code ist at lines 87-142 of 'glayout.xsl'. It *seems* to me that indeed there is are catch-all clauses that produce round parentheses: lines 98 reads xsl:otherwisexsl:text\left(/xsl:text/xsl:otherwise Similarly line 140 for \right). Unfortunately I am a bit at loss with XSL (first time I heard of it was today :). From what I can tell the code *should* correctly translate the .fodt file. The associated conditions read xsl:when test=@open xsl:if test=translate(@open,'{}[]()|','{{{')='{' However, at a closer look, I noticed that the vertical bar in the condition looks different from the one used in the .fodt file. Indeed, here they are side by side (.fodt, XSL): ∣| The difference is that the latter is a tiny bit longer that the first one. It is visible in the gedeit text editor as well as here in the input form in the browser window. I do not know if it will be visible in the browser output. This seems to be an encoding issue. I checked the relevant files with a hex editor and it turns out that ... . the the XSL file encodes it with a single byte (hex 7c) which is the ASCII symbol. . the .fodt file encodes the vertical bar with three bytes (hex e2-88-a3) which is from the UTF-8 section mathematical operators. The way to proceed seems to ... . either make LibreOffice translate its formula to MathML in a way that xsltml understands it (i.e. by using ASCII instead of UTF-8 encoding) . or make xsltml also read the UTF-8 encoded vertical bar. I have never worked with either (nor with any similar projects). Therefore I must ask for help in how and where to proceed. Cheers! Stefan Mueller, Switzerland -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 Julien Nabet serval2...@yahoo.fr changed: What|Removed |Added CC||serval2...@yahoo.fr --- Comment #2 from Julien Nabet serval2...@yahoo.fr --- sm8ps: there's this file xslt file: http://opengrok.libreoffice.org/xref/core/swext/mediawiki/src/filter/odt2mediawiki.xsl -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #3 from Julien Nabet serval2...@yahoo.fr --- sm8ps: I'm not sure to understand, in the first comment you talk about mediawiki, in the second one, you talk about latex. To investigate, it could be useful to have an odt file which contains this formula: left lline x=y right rline Could you attach such a file? (i'm not at home for the moment and so don't have LO) -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 David Tardon dtar...@redhat.com changed: What|Removed |Added CC||dtar...@redhat.com --- Comment #4 from David Tardon dtar...@redhat.com --- dtardon-sm8ps: The MediaWiki export filter is implemented in XSLT, using LibreOffice's XFilter framework. The input to the filter is Flat ODF. So, I would start with exporting the document to Flat ODF to check whether the problem is already in MathML export or in the MediaWiki filter. MathML export code is in starmath/source/mathmlexport.cxx . The MediaWiki export code is the XSLT file Julien mentioned in comment 2. MathML-LaTeX conversion is handled by xsltml (http://xsltml.sourceforge.net/); see the include at line 820. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 74941] Mediawiki wrongly converting math formula to latex (lline, rline)
https://bugs.freedesktop.org/show_bug.cgi?id=74941 --- Comment #1 from sm8ps sm8ps-bugzil...@yahoo.com --- Just checked the bevahior of a formula containing simple vertical bar delimiters, i.e. LO: lline x=y rline It is correctly exported to Latex as math|x=y|/math So the issue appears for (left lline, right rline) only. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs