Re: Default token for Unicode character

Hi Urs,

2009-07-24 11:41 Urs Holzer <urs@andonyar.com>:
> I have to implement the following in my Presentation MathML editor: When
> the user inserts a unicode character, the editor has to guess which
> token element to use, mi or mo. So, the question is: How to find a sane
> default token element for a given unicode character?

In the very general case, you don't always get a unique answer, as functions
can also occur as constants, i.e. without arguments.  E.g. instead of sin x or
sin(x) you'd have statements like "let f = sin, then f(x) = ...", or "the
[function] vector space spanned by the set {sin, cos}".  I'm sure this is also
true for certain function symbols that have their own Unicode characters.  But
actually it might not make a difference for you, as

* it is possibly admissible to write function constants as <mo> as well (@all:
  is it?)
* functions applied to arguments occur much more frequently than function
  constants

Cheers,

Christoph

-- 
Christoph Lange, Jacobs Univ. Bremen, http://kwarc.info/clange, Skype duke4701

Received on Friday, 24 July 2009 13:25:43 UTC