[Moin-user] Can't get ASCIIMathML to work...
Skip Montanaro
skip at pobox.com
Thu Feb 8 15:25:29 EST 2007
I'm having a devil of a time trying to get ASCIIMathML working in my
MoinMoin installation. I'm running v 1.3.4 (yes, I know, horribly
outdated). I've installed ASCIImathML.js with the relevant changes to
the AMdelimiter[12] variables:
var AMdelimiter1 = "$$", AMescape1 = "\\\\\\$\\\\\\$";
var AMdelimiter2 = "$$", AMescape2 = "\\\\\\$$", AMdelimiter2regexp = "\\$$";
I tweaked wikiconfig.py to load ASCIImathML.js:
html_head = u'''<script type="text/javascript"
src="wiki/ASCIIMathML.js"></script>'''
I prodded wikiutil.py a bit:
% diff -u wikiutil.py~ wikiutil.py
--- wikiutil.py~ 2005-03-08 06:21:06.000000000 -0600
+++ wikiutil.py 2007-02-08 13:58:03.000000000 -0600
@@ -1078,7 +1078,7 @@
output = []
# later: <html xmlns=\"http://www.w3.org/1999/xhtml\">
output.append("""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
-<html>
+<html xmlns:mml="http://www.w3.org/1998/Math/MathML">
<head>
%s
%s
@@ -1164,7 +1164,7 @@
body_onload = keywords.get('body_onload', '')
if body_onload:
bodyattr.append(''' onload="%s"''' % body_onload)
- output.append('\n<body%s>\n' % ''.join(bodyattr))
+ output.append('\n<body%s onLoad="translate()">\n' % ''.join(bodyattr))
# Output -----------------------------------------------------------
I tried to use the sciki project's wiki_with_math markup. That just
made every page appear as if I'd quoted the contents with {{{ ... }}}.
I'm stumped. Is there anyone out there using ASCIImathML that can
describe in simple terms what I need to do?
Thanks,
Skip Montanaro
skip at pobox.com
More information about the Moin-user
mailing list