My program generates data that are transferable through the flavors html+MathML, or html+png (The second is actually the first one where every MathML element has been replaced by it's image).
The issue is that I am completely unable to make a distinction between these two flavours. In the end, it creates a problem because MSWord accepts MathML, whereas LibreOffice Writer doesn't. But in the getTransferData()
, I have to retrieve or html+MathML, or html+png. So or LibreOffice users will not get at all the MathML part, or the Office users will get a basic png whereas they could have an equation...
So, how would you make the difference between a call from MSOffice and from LibreOffice ? I'm out of ideas...