From: Leo B. <l_b...@us...> - 2014-03-01 15:17:10
|
> > On 2014-02-28, Dan <djones_cas <at> outlook.com> wrote: > > > > > The output is obtained from > > > > > > maxima --very-quiet<maxt.mac >xxx > > > > > The goal here is to get the output of 'describe' to > > > build a corpus of maxima document. I am not sure why you don't use the info files supplied with Maxima to do this, since describe is just emitting fragments of those info files. Anyhow, if you want to use Maxima to supply input to your Java program, you could consider using customized delimiters. E.g. (%i1) my_describe(f) := block([os:make_string_output_stream()], with_stdout(os,apply('describe,[f])), printf(true,"^L~%~a~%^L~%",get_output_stream_string(os)))$ (%i2) my_describe(sin); ^L -- Function: sin (<x>) - Sine. There are also some inexact matches for `sin'. Try `?? sin' to see them. ^L Of course, the delimiters may just be the needed number of EOLs to get your screen-scraper working again. Btw, I was playing around writing a Lisp info reader in December, and I noticed that the info files produced by makeinfo version 4.x and 5.x differ in subtle ways, including the number and location of EOLs inf different parts of the info document. I wonder if you are not witnessing the effects of this. Leo |