Martin Baker <[email protected]> writes: > I am looking for a way to produce better output to html. > > I wasn't thinking of MathML, because of its poor support in browsers, > although why not make this package available natively: > http://axiom-wiki.newsynthesis.org/MathML > > What I would like is output to native html, so for instance: > subscripts use the <sub> tag > superscripts use the <sup> tag > matrix, vector or list output would use the <table> tag > > This might not be perfect but if I had a way to overwrite the > functions in OutputForm I'm sure I could find a way to produce output > to meet my needs. > > I don't want to modify lisp or have to recompile FriCAS. Is there a > way to tweak OutputForm using SPAD?
You shouldn't tweak OutputForm (except for fixing bugs or shortcomings). What you should do is write a domain HTML that exports a coercion coerce: OutputForm -> % and an operation html: % -> List String similar to what has been done in tex.spad.pamphlet and possibly mathml.spad.pamphlet. If you need more information than OutputForm provides, we should think about adding it to OutputForm. In other words: OutputForm *should* contain precisely as much information as needed for displaying, in what format ever. The situation becomes more complicated when you want to preserve some semantic information, too, but as far as I understand this is not the case with html. Martin
-- 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.
