Alexander Solovets wrote:
>
> Can anyone review my branches and commit if they are ok?
>
AFAICS texmacs.spad.pamphlet is still unifinished. After looking
at other output formatters I think that we should do the following
changes:
- rename formatMml, formatTexmacs, formatTex, formatHtml, formatFormula
to formatExpr (the functions are doing the same job, but for
different output formats and using different names obscures
similarity)
- instead of sayTeX$Lisp, sayTexmacs$Lisp, etc we should have
sayOutput. At the beginning we should have macro expanding
to correct value, like:
sayOutput ==> sayTexmacs$Lisp
or
sayOutput ==> sayTex$Lisp
That way we preserve similarity and avoid spreading $Lisp all
over the source.
Also, there is bug in MathML format which propageted to
HTML and Texmacs formats:
1) -> of1 := ('f)::OutputForm
(1) f
Type: OutputForm
(2) -> of2 := ('z)::OutputForm
(2) z
Type: OutputForm
(3) -> zag(zag(of1, of2),zag(of1, of2))::OutputForm::SEX
(3) (ZAG (ZAG f z) (ZAG f z))
Type: SExpression
(4) -> )set output mathml on
(4) -> zag(zag(of1, of2),zag(of1, of2))::OutputForm::SEX
(4) (ZAG (ZAG f z) (ZAG f z))
>> System error:
The value ZAG is not of type LIST.
(we get error or crash). This bug is not present in TeX
format and it would be good to fix other formats.
The changes can be done _after_ Texmacs format is commited, I just
mention them now to allow better planing.
Concerning commit: I prefer to commit finished pieces, it saves time
spent testing. But the implemented part of texmacs.spad.pamphlet
looks OK and contains enough functionality that it can be commited
now. Other parts of 'texmacs-format' branch can go unchanged. One
only needs to add the '-texmacs' option handling from argument
branch. In this hunk one should replace 'eval' by 'exec' and
eliminate one level of backslashes.
ATM on my main machine I can not install Texmacs because my system
lacks Guille developement files and Guille dependences essentially
means that I need to upgrade my whole system. I intended to do this
anyway, but it will take some time. Any, this means that there
will be delay before I will be able to test if '-texmacs' works.
Alexander, will you have more complete version quickly? If yes
maybe we should wait for this version? Otherwise we should go
with your current version.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.