axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] bug 7016 mathml display of %%var is wrong


From: Waldek Hebisch
Subject: Re: [Axiom-developer] bug 7016 mathml display of %%var is wrong
Date: Wed, 5 Dec 2007 14:17:02 +0100 (CET)

Tim Daly wrote:
> Arthur,
> 
> zerosOf(y**4+1,y)
> definingPolynomial %y1
>         2
>    %%var +1
> 
> but mathml gives:
>       2
>    var +1
> 
> somebody ate the %%.
> 

The following should fix the problem (removes percent eater):

--- /home/s/test/tt/fricas/trunk/src/algebra/mathml.spad.pamphlet       
2007-10-03 21:15:17.000000000 +0200
+++ trunk/src/algebra/mathml.spad.pamphlet      2007-12-05 14:05:38.000000000 
+0100
@@ -1267,10 +1270,6 @@
        -- ExponentialE
         str = "%i"  => "<mi>&#x02148;</mi>"
        -- ImaginaryI
-       -- what sort of atom starts with %%? need an example
-        len > 1 and str.1 = char "%" and str.2 = char "%" =>
-          u : US := segment(3,len)$US
-          concat(concat("<mi>",str.u),"</mi>")
         len > 0 and str.1 = char "%" => concat(concat("<mi>",str),"</mi>")
         len > 1 and digit? str.1 => concat ["<mn>",str,"</mn>"] -- should 
handle floats
        -- presumably this is a literal string


-- 
                              Waldek Hebisch
address@hidden 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]