> Moved to SPAD != written from scratch.  Spad and Boot share most
> of syntax and semantics is reasonable close.

OK, I see, you basically want to rename i-output.boot to newoutput.spad
and change the syntax from boot to spad.

> HyperDoc has to print Spad objects (in particular types).  For
> larger things it uses 2D output routines.  But some object are
> inline, so it needs stining (1D) form.

Um, in fact, I thought that OutputForm and the formatters are for
"elements" and not for "types". What I was asking for, was actually a
hyperdoc page, that shows me the output of such usage, so that I get an
idea of where I have to be careful in order not to break anything.

>> What I actually don't understand is why SExpression must depend on
>> OutputForm. Is this used in some place?
> 
> It does not, I just commited appropriate change.

OK, that is what I suspected. Thanks for this immediate commit.

Another question for me is the overall picture of i-output.boot.
If I understand that correctly, then we have the following.

OutputForm is (more or less) a general expression tree that already
encodes some visual information like whether something is on top of each
other (vconcat) or put into parentheses, braces, brackets.
Also OutputForm already seems to know about the horizontal and vertical
size of the output. All that does suggest to me that OutputForm was
originally thought to be tailored for a 2d output.

So i-output.boot is (in fact) the 2d ascii output formatter. And
(probably only afterwards) became a dispatcher for the translation of
the internal representation (SExpression) to other output formats like
html, mathml, fortran, script, etc.

So in the end, the corresponding i-output.boot spad code should probably
be split into a algebra2d.spad and outputdispatch.spad.

I haven't yet looked too deeply into i-output.spad, but did I get the
global picture correct?

Furthermore, do you know of any other client that calls functions from
i-output.boot (except the mathprint, of course)? I'm not asking that
you should look for this now, just whether you happen to know already.
Otherwise, I'll search myself.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to