Re: [w3c/clipboard-apis] supported type should include MathML types (#141)

> @rniwa : I don't get the point of being impossible.
> UTIs for MathML supported types are [already defined](https://www.w3.org/TR/MathML/appendixb.html#media-types-mathml).

MIME type is defined. UTI in AppKit / UIKit is a slightly different concept, and that's what applications on Apple platforms would use to identify the type of a content. MIME types don't matter much on Apple platforms since that's not the primary mechanism by which the content type is identified by applications.

> Are you claiming that it is not possible because Apple does not define it as system-wide type?

That's right although I would not rule out the possibility that Apple may define the UTI type for MathML in the future.

> Why would this prevent the clipboard-APIs implementations to copy the appropriate type as expressed in a way that is specific to the platform?

Well, because if different applications don't agree which UTI to use to identify MathML, then it's not possible for different applications to recognize the content as such. Say, WebKit / Safari uses `public.mathml` to expose MathML. If other applications were expecting `public.xml` to contain MathML then such an application won't find it.

> Microsoft also does not, they try to define the least possible. Linux does none.

While Windows SDK also has a [small set of the standard clipboard format types defined](https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa359736(v=vs.85)?redirectedfrom=MSDN), format types are often defined using MIME type strings themselves so it would not be entirely incompatible to use `application/mathml+xml` as the format type string.

GTK+ also [uses MIME type](https://developer.gnome.org/gdk4/stable/GdkContentProvider.html#gdk-content-provider-new-for-bytes) to define GdkContentProvider for example so having MIME type defined works there too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/141#issuecomment-864385717

Received on Saturday, 19 June 2021 14:34:39 UTC