Re: Making exported Maths display in HTML

From: Dominic Lachowicz <domlachowicz_at_gmail.com>
Date: Fri Jun 12 2009 - 17:15:38 CEST

My best guess is that we probably need to add the SVG and MathML
namespaces to the document, and maybe prefix the SVG and MathML
content with the appropriate namespace.

On Fri, Jun 12, 2009 at 10:57 AM, Jean
Bréfort<jean.brefort@normalesup.org> wrote:
>
> Le samedi 13 juin 2009 à 00:42 +1000, Martin Sevior a écrit :
>> Hi Folks,
>>             Currently when we export MathML to the html none of the
>> MathML directives are actually obeyed by Firefox even though the codes
>> are perfectly valid mathml.
>
> Except if you use .xhtml as extension. In that case, you don't need any
> script to have firefox display the formula.
>
>
>> After a bit of digging on the web I discovered a piece of java-script
>> that when embedded in the HEAD of our exported HTML makes the mathML
>> display correctly.
>>
>> Have a look at:
>>
>> http://abisource.com/~msevior/math-auto.html
>>
>> The secret source is this piece of javascript.
>>
>> http://abisource.com/~msevior/mathmlAndSvgForHTML4.js
>>
>> I have written a patch to embed this in our html. I must admit that
>> this seems a bit extreme so I would like to here of alternative ways
>> we could make MathMl appear correctly in our html documents.
>>
>> One things that would be rather easy would be to only emits this
>> script if the document contains maths.
>>
>> Opinions, other ideas?
>>
>> Cheers
>>
>> Martin
>>
>
>

-- 
When life gives me broccoli, I make broccoliade.
Received on Fri Jun 12 17:15:55 2009

This archive was generated by hypermail 2.1.8 : Fri Jun 12 2009 - 17:15:55 CEST