Martin,
Do you think it might be sufficient if unicode support was limited to
the Symbol domain? See for example now how subscripts are handled via
script:(Symbol, List List OutputForm) -> Symbol
When a Symbol is coerced to OutputForm and rendered as algebra, tex,
mathml etc. subscripts and superscripts are displayed as appropriate
to the presentation format. It seems to me that supporting unicode
symbols as part of the Symbol domain would not be so hard. So then for
example
_&alpha()^2
would be a polynomial and might render as
2
alpha
\alpha^2
α<sup>2</sup>
etc.
On the other hand this would not allow the use of unicode in
interpreted and SPAD variable names.
BTW, the unicode symbols displayed just fine for me in gmail.
Regards,
Bill Page.
2011/3/6 Martin Baker <[email protected]>:
> As an example I think it would be useful to support the greek
> alphabet, in this case I guess mainly for variable names. Also it
> would be useful to output something like μ in a string so that the
> program can append units or something like that. Also something like Σ
> might be a function name.
>
> In the case of html and mathml they are represented by ampersand
> followed by the name followed by a semicolon.
>
> α = α
> β = β
> Γ = Γ γ = γ
> Δ = Δ δ = δ
> δ = ε
> ζ = ζ
> η = η
> Θ = Θ θ = θ
> ι = ι
> κ = κ
> Λ = Λ λ = λ
> μ = μ
> ν = ν
> Ξ = Ξ ξ = ξ
> ο = ο
> Π = Π π = π
> ρ = ρ
> Σ = Σ σ = σ
> Τ = Τ τ = τ
> Υ = Υ υ = υ
> Φ = Φ φ = φ
> χ = χ
> Ψ = Ψ ψ = ψ
> Ω = Ω ω = ω
>
> What I'm suggesting is something like this, but using escape
> characters that are transparent to command line and list, then html
> and mathml would translate to this form, other output forms would
> translate to their own format. Output forms which only support ascii
> could just use the name like: 'alpha' which seems a reasonable
> fallback.
>
> I hope the unicode characters display in this message otherwise it
> won't make much sense. It displayed all right when I typed it into
> Google Groups.
>
> Martin Baker
>
--
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.