From: <mal...@cs...> - 2004-05-20 01:11:42
|
Is there any plan to upgrade the TexToPng plugin for recent versions of PhpWiki, or better yet, to produce a plugin that outputs valid MathML? It would be very useful for a wiki I am running. Malcolm -- Malcolm Ryan - mal...@cs... - http://www.cse.unsw.edu.au/~malcolmr/ "Blessed are those who mourn, for they will be comforted." -- Matt 5:4 |
From: <mal...@cs...> - 2004-05-20 04:30:24
|
On Thu, May 20, 2004 at 11:11:39AM +1000, Malcolm Ross Kinsella Ryan wrote: > Is there any plan to upgrade the TexToPng plugin for recent versions > of PhpWiki, or better yet, to produce a plugin that outputs valid MathML? > It would be very useful for a wiki I am running. I've been twiddling around and I've made a very simple plugin which just passes its argstr through itex2MML and then displays it. It all seems to work, producing correct MathML, but Mozilla seems to have some issues with displaying it. If I take the output of itex2MML and put it into a file called "foo.xhtml" it will display properly. Put it into "foo.html" and it will not. The MathML in wiki pages are being displayed in the same kind of wrong way. This is far too deep magic for me to grok. Any of you gurus have any ideas? Malcolm -- Malcolm Ryan - mal...@cs... - http://www.cse.unsw.edu.au/~malcolmr/ "Blessed are those who are persecuted because of righteousness, for theirs is the kingdom of heaven." -- Matt 5:10 |
From: <mal...@cs...> - 2004-05-31 11:01:19
|
On Thu, May 20, 2004 at 02:30:20PM +1000, Malcolm Ross Kinsella Ryan wrote: > On Thu, May 20, 2004 at 11:11:39AM +1000, Malcolm Ross Kinsella Ryan wrote: > > Is there any plan to upgrade the TexToPng plugin for recent versions > > of PhpWiki, or better yet, to produce a plugin that outputs valid MathML? > > It would be very useful for a wiki I am running. > > I've been twiddling around and I've made a very simple plugin which > just passes its argstr through itex2MML and then displays it. It all seems > to work, producing correct MathML, but Mozilla seems to have some issues > with displaying it. > > If I take the output of itex2MML and put it into a file called "foo.xhtml" > it will display properly. Put it into "foo.html" and it will not. The > MathML in wiki pages are being displayed in the same kind of wrong way. > This is far too deep magic for me to grok. Any of you gurus have any ideas? It has been suggested to me that I should check whether the Mime-type of the pages output is html or xhtml. I can't find where in the code this is determined. Can anyone help me? Malcolm -- Malcolm Ryan - mal...@cs... - http://malcolmr.web.cse.unsw.edu.au "Blessed are the pure in heart, for they will see God." -- Matt 5:8 |
From: <mal...@cs...> - 2004-05-31 11:01:24
|
On Thu, May 20, 2004 at 02:30:20PM +1000, Malcolm Ross Kinsella Ryan wrote: > On Thu, May 20, 2004 at 11:11:39AM +1000, Malcolm Ross Kinsella Ryan wrote: > > Is there any plan to upgrade the TexToPng plugin for recent versions > > of PhpWiki, or better yet, to produce a plugin that outputs valid MathML? > > It would be very useful for a wiki I am running. > > I've been twiddling around and I've made a very simple plugin which > just passes its argstr through itex2MML and then displays it. It all seems > to work, producing correct MathML, but Mozilla seems to have some issues > with displaying it. > > If I take the output of itex2MML and put it into a file called "foo.xhtml" > it will display properly. Put it into "foo.html" and it will not. The > MathML in wiki pages are being displayed in the same kind of wrong way. > This is far too deep magic for me to grok. Any of you gurus have any ideas? With a bit more poking around, I've discovered that I can get it to work if I change: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> to: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"> But I can't find where in the code the original line is output. Malcolm -- Malcolm Ryan - mal...@cs... - http://malcolmr.web.cse.unsw.edu.au "Blessed are those who hunger and thirst for righteousness, for they will be filled." -- Matt 5:6 |
From: Reini U. <ru...@x-...> - 2004-05-31 12:17:06
|
Malcolm Ross Kinsella Ryan schrieb: > On Thu, May 20, 2004 at 02:30:20PM +1000, Malcolm Ross Kinsella Ryan wrote: >>On Thu, May 20, 2004 at 11:11:39AM +1000, Malcolm Ross Kinsella Ryan wrote: >> >>>Is there any plan to upgrade the TexToPng plugin for recent versions >>>of PhpWiki, or better yet, to produce a plugin that outputs valid MathML? >>>It would be very useful for a wiki I am running. >> >>I've been twiddling around and I've made a very simple plugin which >>just passes its argstr through itex2MML and then displays it. It all seems >>to work, producing correct MathML, but Mozilla seems to have some issues >>with displaying it. >> >>If I take the output of itex2MML and put it into a file called "foo.xhtml" >>it will display properly. Put it into "foo.html" and it will not. The >>MathML in wiki pages are being displayed in the same kind of wrong way. >>This is far too deep magic for me to grok. Any of you gurus have any ideas? > > With a bit more poking around, I've discovered that I can get it to work > if I change: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > to: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" > "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"> > > But I can't find where in the code the original line is output. themes/default/templates/html.tmpl We should change that to support SVG and MathML, similar to body and head extensions introduced to support EDIT_TOOLBAR, JS_SEARCHREPLACE, Sidebar CSS and javascript. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |