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/ |