[FM Discuss] equations equuations
adam
adam at xs4all.nl
Tue Jan 11 02:49:34 PST 2011
this is where all the goodness lies apparently:
http://www.oldschool.com.sg/index.php/module/Shared/action/Static/tmpl/ASCIIMathPHP
anyone out there want to work out how to implement asciimathphp to
generate images from the xinha equation plugin?
adam
On Tue, 2011-01-11 at 11:43 +0100, adam wrote:
> and more...
>
> I have found this however:
> http://www.imathas.com/editordemo/demo.html
>
> which works in webkit browsers using php to generate images from the
> mark up i think.
>
> anyone want to look more into this and see if we can somehow adapt this
> for xinha?
>
> adam
>
>
> On Tue, 2011-01-11 at 11:34 +0100, adam hyde wrote:
> > hi,
> >
> > i looked into the equation issue. its kinda interesting and kinda
> > confusing. i would love it if someone could help work out whats going
> > on.
> >
> > I made this book here for testing this kind of thing:
> > http://booki.flossmanuals.net/layouttester/edit/
> >
> > Firstly...we are using the Xinha editor and the Equation plugin.
> >
> > When I add an equation I get a span like this:
> > <span class="AM">`dy/dx`</span>
> >
> > AM I guess is short for AsciiMathML which is the javascript that manages
> > all this:
> > http://www1.chapman.edu/~jipsen/mathml/asciimath.html
> >
> > When the equation is placed it looks fine. When I save the page and open
> > it, it displays incorrectly - it shows the ascii not the mathml. ie i
> > 'see' this:
> > dy/dx
> >
> > and not the nice equation.
> >
> > If I click on the source button for the editor and see the source view
> > and then click it again to see the wysiwyg view i see the equation
> > again. ugh
> >
> > when i then save it and look at the html it generates it displays
> > incorrectly here:
> > http://booki.flossmanuals.net/layouttester/_v/1.0/equations/
> >
> > I see the ascii.
> >
> > However...When I look at another page where I have also included the
> > AsciiMathML javascipt in a script link (<script type="text/javascript"
> > src="http://booki.flossmanuals.net/site_media/xinha/plugins/Equation/ASCIIMathML.js"></script>) I see the equation displayed correctly:
> > http://booki.flossmanuals.net/layouttester/_full/
> >
> >
> > However....all this works with Firefox not in a webkit browser (unless
> > someone wants to prove me wrong - please feel free to test)...
> >
> >
> > when i publish the pdf I get ascii again:
> > http://objavi.flossmanuals.net/books/layouttester-en-2011.01.11-11.26.44.pdf
> >
> > this is because our pdf is generated by the webkit layout engine.
> >
> > so...apart from the strange issue with the editor not displaying the
> > content correctly I think the issue cannot be resolved since it only
> > works with firefox as far as i can tell...and we use webkit to gen the
> > pdf...so unless anyone can work out how to get webkit to gen the mathml
> > properly then we have to disable the plugin...anyone want to try?
> >
> >
> > adam
> >
> >
> >
> >
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
More information about the Discuss
mailing list