MathML displayed natively in Safari, on iphone
I post here a photograph of a page from the NAG documentation in which one can see MathML being rendered natively by Safari using css on a iphone. Because it is MathML, the fonts scale well and zooming makes the formula very readable. The MathML profile for CSS is doing the trick, with the stylesheet by David using the css by George for Opera. What makes this interesting is the fact that we were not sure if the version of Safari running on the iphone has a xslt processor able to handle the stylesheet. Some recent experiments on IE8 of the same trick seem not to work as well.
If you want to test your iphone on some rendering, go to the NAG library documentation, in the pic for instance is http://www.nag.com/numeric/FL/manual/xhtml/A02/a02aaf.xml, and post your picture to show off your mathml.
Trackback URL for this post:
- Olga.Caprotti's blog
- Login or register to post comments
- 10526 reads



Technorati Tags: 
mathml on phones
Yes, the CSS is based on George's CSS, plus some older CSS of mine, but also as it's fronted by XSLT the element structure is re-arranged as necessary when it isn't possible to CSS style the normal MathML markup. (The documents as served don't follow the constraints of the MathML profile for CSS). Also, the XSLT transforms mathml maction into normal html <a href links, so the red letters seen in the screenshot are active links. If you look at the referenced XSLT you'll see that it separately detects "Opera" and "libxslt" (Safari) although currently it makes the same code in each of these cases.
Another interesting development is Firefox-for-the-phone (Fennec) which just had an alpha release that (only) supports Nokia N810 Internet Tablet, I haven't got that hardware but there is a windows desktop version, which I have tested and it does appear to have FF's usual mathml support...
http://www.mozilla.org/projects/fennec/1.0a1/releasenotes