Export to OpenOffice.org[Scanned]



Hello Robert,

On 26.01.2006 17:09, Robert Dodier wrote:
> On 26.01.2006 15:56, Gloeckner, Robert wrote:

>> http://130.83.61.160/~robert/mactex2ooo.lisp

> I have looked at the lisp code -- it appears that it was constructed
> by cloning mactex.lisp and doing a global search & replace tex -> ooo,
> and changing the output strings accordingly.
Yes, the name is mactex2ooo.lisp for a reason ;)
Some functions are changed a little bit, too, but you are right, this is
more or less a work around.


> That has the desired effect, but I consider it generally inadvisable
> to maintain parallel versions of functions; if there are changes
> to mactex.lisp it would be necessary to review the ooo code and
> propagate the changes through it. The mactex code is complex
> enough that maintaining two versions of it would be painful
> and error-prone.
Sorry. As I said, I am a very beginner of Lisp. I just had to restart
reading PAIP (p. 137 -> 50 ;/), because of a lack of time for learning
it continuously. On the other hand, I just needed this export-function.
There had been too many functions/macros/... which I did not know about
and asking via this mailing list took too much time (and could not be
effective due to my lack of Lisp-knowledge).
But I am keen on learning Lisp and maybe some day I can contribute to
maxima.


> I believe the best way to implement OpenOffice output is for
> mactex2ooo.lisp to only reassign the tex properties and
> maybe reimplement a function or two. Instead of creating
> new ooo properties, I would suggest modifying the tex properties
> (i.e. write (defprop %erf " erf " texword) instead of (defprop %erf "
> erf " oooword)).
Yes, Norvig is talking about data-reusing and data-driven programming ;)
By the way, chapter 8 "Symbolic Mathematics: A Simplification Program",
paragraph 9.6 "A Case Study in Efficiency: The Simplify Program" and
chapter 15 "Symbolic Mathematics with Canonical Forms" will connect to
Maxima again.


> (If there were a way to select a TeX flavor, we could make
> OpenOffice one of the choices. I think clobbering the tex
> properties is the most workable solution at present.
> If/when we devise a flavor system, OO can have its
> own set of properties.)
I do not know how fast this will be done, but even if I will not be able
to help - I can watch and learn.


> I'll take a look at mactex2ooo.lisp and see if I can extract
> the parts that are necessary to enable OpenOffice output
> and put them in a separate file. I believe that file would be a
> lot shorter and simpler than mactex2ooo.lisp.
Yes, sure. Maybe I can do export-improvements in your file, instead of
mactex2ooo then - and send them to you, because ooo() is only tested
with the formulas /I/ use so far.



Regards,
Robert



-- 
         T_a_k_e__c_a_r_e__o_f__y_o_u_r__R_I_G_H_T_S.
           P_r_e_v_e_n_t__L_O_G_I_C--P_A_T_E_N_T_S
    http://www.ffii.org, http://www.nosoftwarepatents.org