On 8/19/05, Andrew Mole andrew.mole@gmail.com wrote:
I am wondering whether there may be another alternative using the javascript version of the ASCIIMathML converter (at least for mediawiki installations other than the central Wikimedia ones).
If it were possible (and I can't quite see how to do it) to place the following line into the <head> section:
<script type="text/javascript" src="/some_path/ASCIIMathML.js"></script>
such that Peter Jipsen's script is accessible (http://www1.chapman.edu/~jipsen/mathml/asciimath.html), then ASCIIMathML notation would be available to browsers that were set up for it (Netscape/Mozilla/Firefox and IE6+MathPlayer). For other browsers, they would get the following message on top:
To view the ASCIIMathML notation use Internet Explorer 6+MathPlayer or Netscape/Mozilla/Firefox
I realize that this may not be an elegant option for Wikimedia projects, but if I wanted to implement this on my local installation, where would I put the javascript line above (or is it prevented by security measures)?
Find the file for the skin you're using - for MonoBook (the default) it's skins/MonoBook.php. That file outputs the HTML page. Add the line wherever it needs to go.
However, Monobook uses some clever CSS that will get messed up by the message at the top of the page. Best to configure the JavaScript not to print that message at all.
-- Josh
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l