From: <mal...@cs...> - 2004-05-31 11:05:03
|
I've written the plugin and got it producing valid MathML, but I don't seem to be able to get my browser (FireFox) to display it. The actual Wiki page, produce with the plugin can be seen at: http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/index.php?pagename=SandBox The MathML does not display properly. I have copied the output into the file: /home/malcolmr/public_html/blart.xhtml if I open this file directly it shows the MathML correctly. if I access it via the URL http://www/~malcolmr/blart.xhtml, all I see is the straight xhtml file listing. I have a copy of the file in /home/malcolmr/public_html/blart.html if I open this file directly it does not display the MathML correctly. Likewise if I access it over the web. I haven't tested this out with IE yet. I'm not very XHTML-savvy. Does anyone have any ideas how I can get this to do the right thing? Malcolm -- Malcolm Ryan - mal...@cs... - http://malcolmr.web.cse.unsw.edu.au "Blessed are the meek, for they will inherit the earth." -- Matt 5:5 |
From: Reini U. <ru...@x-...> - 2004-05-31 11:49:01
|
Malcolm Ross Kinsella Ryan schrieb: > I've written the plugin and got it producing valid MathML, but I > don't seem to be able to get my browser (FireFox) to display it. > > The actual Wiki page, produce with the plugin can be seen at: > http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/index.php?pagename=SandBox > The MathML does not display properly. > > I have copied the output into the file: /home/malcolmr/public_html/blart.xhtml > if I open this file directly it shows the MathML correctly. > > if I access it via the URL http://www/~malcolmr/blart.xhtml, all I see is > the straight xhtml file listing. > > I have a copy of the file in /home/malcolmr/public_html/blart.html > if I open this file directly it does not display the MathML correctly. > Likewise if I access it over the web. > > I haven't tested this out with IE yet. > > I'm not very XHTML-savvy. Does anyone have any ideas how I can get this to > do the right thing? Header and namespace wise everything is correct. But you need this header: "Content-Type: application/xhtml+xml" instead of "Content-Type: text/html" which phpwiki or php sends automatically. Your server even sends it as text/plain: $ GET -esSUd http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml GET http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml User-Agent: lwp-request/2.06 GET http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml --> 200 OK Connection: close Date: Mon, 31 May 2004 11:45:30 GMT Accept-Ranges: bytes ETag: "17fbd-18d0-40bad2ac" Server: Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 Content-Length: 6352 Content-Type: text/plain; charset=iso-8859-1 Last-Modified: Mon, 31 May 2004 06:37:32 GMT Client-Date: Mon, 31 May 2004 11:47:50 GMT Client-Peer: 129.94.242.40:80 Client-Response-Num: 1 and phpwiki: $ GET -esSUd http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox GET http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox User-Agent: lwp-request/2.06 GET http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox --> 200 OK Cache-Control: must-revalidate Connection: close Date: Mon, 31 May 2004 11:46:54 GMT ETag: W/"4aa174d88e7f1998ae8c0163651a3ef8" Server: Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 Vary: Cookie Content-Type: text/html; charset=iso-8859-1 Content-Type: text/xhtml; charset=iso-8859-1 ..... I'll see what I can do. We need to override the Content-Type for pdf and svg also. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Reini U. <ru...@x-...> - 2004-05-31 12:05:29
|
>> I haven't tested this out with IE yet. And for IE you you to install a plugin, like MathPlayer (free, requires IE 6.0) http://www.dessci.com/en/products/mathplayer/ Looks fine. or Techexplorer plugin. See also http://www.w3.org/Math/XSL/ for the browser matrix. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: <mal...@cs...> - 2004-06-01 06:21:14
|
I've got the MathML plugin working locally. You can see it in operation on my wiki at: http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/index.php?pagename=SandBox I'll tidy it up a bit and see if I can produce a patch in the near future. The only outstanding problem I know of it that the "preview" mode doesn't display properly. That is due to a line in editpage.php which sets Content-Type to text/html. Unfortunately, when I change this is seems to break things, for reasons I don't understand. Malcolm -- Malcolm Ryan - mal...@cs... - http://malcolmr.web.cse.unsw.edu.au "Blessed are those who are persecuted because of righteousness, for theirs is the kingdom of heaven." -- Matt 5:10 |
From: <mal...@cs...> - 2004-06-01 07:25:57
|
On Tue, Jun 01, 2004 at 04:21:10PM +1000, Malcolm Ross Kinsella Ryan wrote: > I've got the MathML plugin working locally. You can see it in operation > on my wiki at: > > http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/index.php?pagename=SandBox One issue: I can't use the plugin to produce inline math. It appears that plugins only work if they are the first thing on their line. So something like: Applying Bayes Rule: <?plugin ITex2MML $ P(A|B) = P(B|A)P(A) / P(B) $ ?> we see that... won't work. Is this a deliberate design issue? Looking at the code, it seems that plugins are only handled by the BlockParser and not the InlineParser. I suppose this is sensible for most of the existing plugins, but it seems limiting. Malcolm -- Malcolm Ryan - mal...@cs... - http://malcolmr.web.cse.unsw.edu.au "Blessed are the poor in spirit, for theirs is the kingdom of heaven." -- Matt 5:3 |
From: Reini U. <ru...@x-...> - 2004-06-01 08:15:08
|
Malcolm Ross Kinsella Ryan schrieb: > Looking at the code, it > seems that plugins are only handled by the BlockParser and not the > InlineParser. I suppose this is sensible for most of the existing > plugins, but it seems limiting. This was fixed with 1.3.10. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |