William wrote:

> What needs to be done is to write in Python a latex --> open office format
> converter, probably with a bunch of regexp's, etc.  How hard is that?

Wouldn't regular expressions be inadequate for deciphering nested
expressions like the following?:

sage: a = cos(cos(cos(x)))
sage: a
cos(cos(cos(x)))
sage: latex(a)
\cos \left( \cos \left( \cos \left( x \right) \right) \right)

For nested expressions, my understanding is that one would need to
first generate something line an Abstract Syntax Tree using a latex
lexical analyzer and parser and then process the tree in order to
generate equivalent openoffice code.

My background is not in Computer Science, though, so I may be wrong about this.

Ted

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to