POV-Ray : Newsgroups : povray.off-topic : The frustration that is MathML Server Time
4 Sep 2024 03:18:19 EDT (-0400)
  The frustration that is MathML (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Invisible
Subject: Re: The fun of MathML
Date: 8 Jul 2010 04:06:10
Message: <4c3586f2@news.povray.org>
>> Now I see why people like to use specialised editors to write this
>> stuff. ;-) Typing HTML by hand is trivial, but this stuff is just
>> mental. (!)
> 
> I wish it were suipported by browsers though. I've got a handful of 
> equations scattered around my website, and it would make the equations 
> look a little flashier than plain text.

Which what were supported? MathML? Seems to work out of the box with 
Firefox.

(Actually no, I think there were a tiny few symbols missing until I 
installed the Math Fonts pack...)


Post a reply to this message

From: Orchid XP v8
Subject: Re: The frustration that is MathML
Date: 8 Jul 2010 13:13:31
Message: <4c36073b$1@news.povray.org>
>>> Oh, only a Mandelbrot plotter and an LZW demo and a Huffman
>>> encoder/decoder and...
>>
>> It's not complex javascript until you start dicking with the DOM. :-)
>>
> 
> I would think that a Mandelbrot plotter, an LZW demo and a Huffman 
> encoder/decoder would be a /lot/ more complicated than anything you 
> could do with the DOM.

Well, the LZW demo doesn't use the DOM at all. There's just a field, and 
it reads the contents of that field, and modifies some other fields, all 
in response to clicking a form button.

The Mandelbrot plotter, on the other hand, does use the DOM. 
Specifically, I borrowed this trick from Slime: You have a grid of 
invisible whitespace elements, and you use the DOM "style" property to 
apply CSS styling that turns these elements different colours, greating 
primitive "pixels".

Obviously, web browsers are not even slightly designed for this, so it's 
horrifyingly inefficient...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Invisible
Subject: Re: The fun of MathML
Date: 13 Jul 2010 06:22:18
Message: <4c3c3e5a$1@news.povray.org>
Invisible wrote:

> With TeX, if you want to write "x" as a mathematical variable rather 
> than a piece of text, you simply say "$x$". But by the power of MathML, 
> if you want to do this in DocBook, you write
> 
>   <inlineequation>
>     <math xmlns="http://www.w3c.org/1998/Math/MathML">
>       <mrow><mi>x</mi></mrow>
>     </math>
>   <inlineequation>
> 
> which is somewhat more typing.

It's also incorrect. That should be a closing tag at the bottom, and the 
correct namespace URL has the domain name www.w3.org (no "c").


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.