MathML displayed natively in Safari, on iphone

  • user warning: Table './jem/sessions' is marked as crashed and should be repaired query: SELECT COUNT(sid) AS count FROM sessions WHERE timestamp >= 1231448593 AND uid = 0 in /var/www/net.jem-thematic/site/includes/database.mysql.inc on line 174.
  • user warning: Table './jem/sessions' is marked as crashed and should be repaired query: SELECT DISTINCT u.uid, u.name, s.timestamp FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.timestamp >= 1231448593 AND s.uid > 0 ORDER BY s.timestamp DESC in /var/www/net.jem-thematic/site/includes/database.mysql.inc on line 174.
MathML 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.

Technorati Tags:Technorati Tags:

Trackback URL for this post:

http://jem-thematic.net/en/trackback/1189

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