<div dir="ltr">Hi all,<div>I'm Matteo, a PhD student in Computer Science at City University of New York.</div><div>I am planning to apply to GSoC '14 and a few weeks ago I started hacking LibreOffice (I've been working on <a href="https://bugs.freedesktop.org/show_bug.cgi?id=53472">this Easy Hack</a>).</div>

<div><br>I'm writing to start a discussion and ask some questions on the idea project in the subject of this email (<a href="https://wiki.documentfoundation.org/Development/GSoC/Ideas#ODF_Formulas_in_Writer">[1</a>]).</div>

<div><br></div><div>Could you please give me some feedback on my understanding of the definition of the problem and current related work in LO (see bullets below)?</div><div>Also - most important question (!!) - would there be anyone interested in mentoring this project?</div>

<div><br></div><div>My understanding of the issue:</div><div>- Currently Writer uses its own, non-standard syntax for formulas. At the moment this syntax is both what is used/typed by the user and the one used for internal computations. (At a first glance, the class <a href="http://opengrok.libreoffice.org/search?q=&project=core&defs=SwCalc&refs=&path=&hist=">SwCalc</a> seems to be responsible for both parsing and interpreting these formulas, is that right?)</div>

<div>- The goal of the project would be to enable users to write formulas in the ODF Format <a href="http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html">[2]</a>  and use this same format for the internal computations.</div>

<div>- As far as I have understood, we may use the ixion library <a href="https://gitorious.org/ixion">[3]</a> to interpret ODF-style formulas. This library is already used by Writer for interpreting formulas in doc/docx files (which, I suppose, are first converted to the actual ODF format). [is this point of my interpretation correct? Could anyone provide code pointers for the computation of formula for .doc files?]</div>

<div>- Part of the project will have to deal with import/export filters and backward compatibility: first, files with formulas in the old-syntax should still be parsed correctly; second, users should have the option of saving in the old syntax or in the default new ODF syntax.</div>

<div><br></div><div>Also, I have two additional questions:</div><div>- the project idea page mentions changes in the code for the formula input bar. What should these changes to the UI consist of specifically? Are they mostly related to the strings produced by using the "Formula" dropdown menu in the bar?</div>

<div>- Can anyone who is into the code roughly assess the relative hardness of the three subparts of this project (i.e. refactoring to use ODF and delegation to ixion, changes in the UI, adapting import/export filters)? In other words, which of these parts (if any) is likely to take longer compared to the others?</div>

<div><br></div><div>References:</div><div>[1] ODF Formulas in writer - Original GSoC Project Idea Page (<a href="https://wiki.documentfoundation.org/Development/GSoC/Ideas#ODF_Formulas_in_Writer">link</a>)</div><div>[2] Open Formula - Official specification (<a href="http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html">link</a>)</div>

<div>[3] Ixion Library (<a href="https://gitorious.org/ixion">link</a>)</div><div><br></div><div>Comments of any kind are appreciated.</div><div>Thanks in advance for your feedback!</div><div><br></div><div>Cheers,</div>
<div>
Matteo</div></div>