Re: annotation-xml and annotation encoding

On Dec 17, 2007, at 14:15, Paul Libbrecht wrote:

> Le 17 déc. 07 à 09:23, Henri Sivonen a écrit :
>> As far as I can tell, MathML 2.0 doesn't define a mechanism that's  
>> allow implementations to implementations to use interoperable  
>> values for the encoding attribute on <annotation> and <annotation- 
>> xml>. The spec gives four tokens leaving their meaning implicit:  
>> MathML-Presentation, MathML-Content, TeX and OpenMath.
>
> In the examnples, right ?

No, those are from the spec prose.

> There is, indeed, no central table of suggested encoding values for  
> well-known data-types.

Are implementors expected to find the values from the output of other  
MathML products?

>> In the MathML 3.0 draft, the encoding attribute on <annotation>  
>> seems to take a MIME type, such as text/latex or text/maple, or a  
>> product name token like Maple, Mathematica or TeX.
>
> I believe that the order should be:
> - try to use a value that's documented the spec
> - if there's none such use a mime-type

E.g. for Maple, the spec uses both "text/maple" and "Maple".

>> In the MathML 3.0 draft the encoding attribute on <annotation-xml>  
>> is said to take a namespace URI but examples use tokens such as  
>> OpenMath.
>
> I don't remember seeing this... In the spec to come out soon, this  
> has gone away, I think.

I'm looking at
http://www.w3.org/TR/2007/WD-MathML3-20071214/chapter5.html

Is there a new draft coming soon or was that the spec you are  
referring to?

>> <annotation> and <annotation-xml> appear to be so vaguely defined  
>> that I have to doubt their interoperable implementability. Have  
>> they been implemented in applications that consumes MathML? If they  
>> have been implemented, have they been implemented interoperably? If  
>> they are now interoperably implemented, it would be good for the  
>> spec to define how to consume them in the way that is interoperable.
>
> We really need to share more about defining the interoperability.

Are there so far apps that consume each other's annotations?

>> Le 17 déc. 07 à 11:23, Max Berger a écrit :
>> OpenOffice uses:
>> <math:annotation math:encoding="StarMath 5.0">...</math:annotation>  
>> to
>> describe the "source" for the MathML encoded in its ODF (OpenDocument
>> Formula) files. This works very well within Openoffice and related
>> products, which use this information when re-reading files.

Interesting, but does any other product read that annotation?

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Monday, 17 December 2007 13:37:18 UTC