<div dir="ltr"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">I think enabling the visual editor by default is indeed important. What is blocking it from going out of experimental features? I think the GSOC student who worked on that mentioned some crashes and I can try to debug and fix them. Are there other serious bugs / missing features apart undo/redo?</span></blockquote>

<div>So there is a light weight todo for some of the things that would be nice to have here:</div><div><a href="http://cgit.freedesktop.org/libreoffice/core/tree/starmath/visual-editor-todo">http://cgit.freedesktop.org/libreoffice/core/tree/starmath/visual-editor-todo</a><br>

</div><div><br></div><div>Some of them, might already be fixed. Or reported as bugs, as some of the other guys mentioned.</div><div><br></div><div>In my opinion the biggest problem with the current approach is that it is unnecessarily complex, because the StarMath syntax tree is very concrete (rather than being abstract).</div>

<div>So maintainability is at risk with the current approach, but a rewrite also carries it's risks...</div><div>So it's a matter of resources and priority... Just my two cents...</div><div><br></div></div><div class="gmail_extra">

<br clear="all"><div>--<br>Regards Jonas Finnemann Jensen.</div>
<br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 6:10 PM, Frédéric WANG <span dir="ltr"><<a href="mailto:fred.wang@free.fr" target="_blank">fred.wang@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 04/07/2013 13:17, Michael Meeks wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
First - thanks so much for your contribution ! :-) it's great to have someone working on and caring about math - it seems to me like you should have commit access if you havn't already for that ( can you poke me with your gerrit account name ;-) <br>


</blockquote></div>
Thanks, my gerrit account is "Frédéric Wang" attached to the mail address I'm writing this mail. BTW, I'm not sure why, but I can not comment on gerrit commit. Do I need commit access for that?<div class="im">

<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Which of course makes life hard :-) IMHO it's fine to switch to something more standard; but of course for back-compatibility we need to be able to import (and probably export) (perfectly) StarMath to and from our new representation. <br>


</blockquote></div>
I think the visual rendering can be preserved when converting from StarMath to MathML, but the other direction is not possible since StarMath does not have all the MathML features. In general, perfectly preserving the StarMath markup is not really possible for example "a_b^c" and "a^c_b" will be converted to the same MathML markup and it's not possible to convert it back. A more serious example is "matrix{A ## B}", "stack{A # B}" and "A newline B" that are all exported as a MathML table with two rows A and B...<div class="im">

<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Having said that - I'd love to see the final small pieces (IIRC. mostly<br>
undo/redo which is quite asy) for interactive editing sorted out before<br>
doing a deprecate/replace. The skills gained pulling the interactive<br>
formula editing out of experimental work will be useful learning for the<br>
re-write :-)<br>
</blockquote></div>
I think enabling the visual editor by default is indeed important. What is blocking it from going out of experimental features? I think the GSOC student who worked on that mentioned some crashes and I can try to debug and fix them. Are there other serious bugs / missing features apart undo/redo?<div class="im">

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        There were a number of technology suggestions in the thread too: "just<br>
re-use GtkMathView" - that seem to bring significant licensing and<br>
dependency issues. In general, that seems deeply problematic to me.<br>
<br>
        Of course, if we can re-use some code from Firefox for a new formula<br>
editor (I assume they only render not edit) then that would be really<br>
ideal - though, naturally there would need to be some degree of<br>
abstracting of rendering etc. That's something I'd love to see. Editing<br>
is often quite unpleasant to achieve ;-)<br>
<br>
        Thoughts on that much appreciated :-) how re-usable is the firefox code<br>
- is it a tightly coupled, vast chunk of beast tied to dozens of<br>
megabytes / mega-lines of existing firefox infrastructure ? or is it<br>
something smallish and re-usable ? :-)<br>
</blockquote>
<br></div>
Gecko has an editor but it currently does not know anything about MathML and so editing it will produce invalid markup (try for example <div contenteditable="true"><math><<u></u>msqrt><mfrac><mi>a</mi><mi>b</<u></u>mi></mfrac></msqrt></math></<u></u>div> in a HTML page).<br>


<br>
Gecko/WebKit MathML code base itself is small (say about the same size as StarMath) but it is strongly dependent on the rest of the Web rendering engine (all the CSS properties, table and text layout, DOM etc) so I'm not sure it's a really good idea to use it in LibreOffice. The need for Web content is a bit different, Web people want all the CSS features like text-shadow on mathematical expressions or want to mix MathML with other languages like SVG or want to use Javascript/DOM to edit them. I think LibreOffice people just want basic math support without too much interaction with the other features of the rendering engine (although at least integration in the surrounding text is important). I admit that I didn't check GtkMathView in details, but it seemed to be a small piece of code that is designed to be integrated in other applications and interactive edition is possible. The rendering did not seem so good to me (a font issue on my system?) but that would be better if Khaled adds Open Type MATH support.<span class="HOEnZb"><font color="#888888"><br>


<br>
-- <br>
Frédéric Wang<br>
<a href="http://maths-informatique-jeux.com/blog/frederic" target="_blank">maths-informatique-jeux.com/<u></u>blog/frederic</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/libreoffice</a><br>
</div></div></blockquote></div><br></div>