BUG DESCRIPTION:
----------------
Presently, prettyprint() does not allow to get some HTML representation of supported input Scilab objects.
For many reasons, exporting Scilab objects into strings, and using strings in a web page or in some Scilab GUI like messagebox() is not well rendered. For instance, we have a poor text formating and rendering for:
--> c = [complex(1,%nan), complex(-1.25d-12, 2)
> complex(%inf,6.1e167), complex(1,-%inf)];
--> string(c)
ans =
!1+%i*Nan -1.250D-12+%i*2 !
!Inf+%i*6.10D+167 1-%i*Inf !
--> c = {["abc";"defg"], %t ; (1-%s)^3, %pi};
--> string(c)
ans =
[2x1 string ] [1x1 boolean ]
[1x1 polynomial] [1x1 constant]
..which is not explicit at all, contrarily to the latex output ;
.. and no text rendering at all for linear systems:
--> s = ssrand(2,3,2);
--> string(s)
in builtin string
Function not defined for given argument type(s),
check arguments or define function %lss_string for overloading.
This is why an html output should become available.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
// Non exhaustive set of examples:
// complex numbers
c = [complex(1,%nan), complex(-1.25d-12, 2)
complex(%inf,6.1e167), complex(1,-%inf)];
messagebox(c)
messagebox(strcat(string(c)," ","c"))
prettyprint(c, "html")
// cell array
c = {["abc";"defg"], %t ; (1-%s)^3, %pi};
prettyprint(c, "html")
// Linear system (discontinuous case)
grand("setsd",0);
A = grand(3,3,"uin",-999,999)/100;
B = grand(3,2,"uin",-999,999)/100;
C = grand(2,3,"uin",-999,999)/100;
s = syslin("d", A, B, C, [1+%s, 1-%s; -%s, %s]);
string(s)
prettyprint(s, "html")
OTHER INFORMATION:
------------------
Feature also missing in Scilab 6.0