<div dir="ltr"><div style>Hi,</div><div style><br></div><div style>As Miklos says, I'm not actively working on the starmath module anymore...</div><div style>But feel free to CC me on any questions/problems you run into.</div>
<div style>I'm still on the mailing-list but I don't manage to read everything/anything, so CC me if you want to reach me.</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">Has there in fact been any discussion on how these things should feel<br></span><span style="font-family:arial,sans-serif;font-size:13px">like? Or is there any documentation about this?<br>
</span></blockquote><div style>I had some ideas about things I wanted to do:</div><div style><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 style>But I'd imagine any improvements are welcome.</div><div style><br></div><div style>The experimental formula editor is quite complicated because the "abstract" syntax tree it operates on is more concrete than abstract.</div>
<div style>In order to observe how the formula object tree looks and is changed, you might want to take a look at:</div><div style><a href="http://cgit.freedesktop.org/libreoffice/core/tree/starmath/workben/smath-dump-watch.sh">http://cgit.freedesktop.org/libreoffice/core/tree/starmath/workben/smath-dump-watch.sh</a></div>
<div style> </div></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">Also, could someone give some pointers on where all this stuff is<br>
</span><span style="font-family:arial,sans-serif;font-size:13px">located in the code?</span></blockquote><div style><span style="font-family:arial,sans-serif;font-size:13px">Key input is handled in </span><a href="http://cgit.freedesktop.org/libreoffice/core/tree/starmath/source/view.cxx#n422">http://cgit.freedesktop.org/libreoffice/core/tree/starmath/source/view.cxx#n422</a></div>
<div style>When handling key input an instance of SmCursor is used to modify the tree, SmCursor is defined in:</div><div style><a href="http://cgit.freedesktop.org/libreoffice/core/tree/starmath/source/cursor.cxx">http://cgit.freedesktop.org/libreoffice/core/tree/starmath/source/cursor.cxx</a><br>
</div><div style><br></div><div style>You can get an overview of how the visual formula editor works from my presentation at OpenSuSE conference 2010:</div><div style><a href="http://jonasfj.dk/downloads/GSoC2010/slide-osc10.pdf">http://jonasfj.dk/downloads/GSoC2010/slide-osc10.pdf</a></div>
<div style><br></div><div style>WARNING:</div><div style>The visual formula editor is quite complicated, in fact over complicated.</div><div style>As I said before this is a result of the abstract syntax tree not being very abstract.</div>
<div style>Ideally, I think the nodes that make up the formula object tree should be refactored.</div><div style>If you look at my slides you'll see that a line in the formula editor is not a list of elements,</div><div style>
but a tree consisting of binary operator nodes. So when editing a line, it is parsed into a LineList</div><div style>which is a list of elements. Then the LineList is modified and a tree consisting of binary operator nodes</div>
<div style>is constructed from it.</div><div style>This is quite horrible, ideally, a line should be a single node consisting of a list of elements.</div><div style>But refactoring this seemed quite scary to me at the time...</div>
<div style><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>Regards Jonas Finnemann Jensen.</div>
<br><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:00 AM, Miklos Vajna <span dir="ltr"><<a href="mailto:vmiklos@suse.cz" target="_blank">vmiklos@suse.cz</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 Fri, May 17, 2013 at 09:47:06PM +0400, Ruslan Kabatsayev <<a href="mailto:b7.10110111@gmail.com">b7.10110111@gmail.com</a>> wrote:<br>
> Is visual formula editor still being worked on?<br>
<br>
</div>Jonas created the visual formula editor feature -- and AFAIK he's not<br>
actively working on it these days. OTOH, hopefully he can get you<br>
started if you have specific questions. :-)<br>
</blockquote></div><br></div>