<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: MathML and BBpress working together</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: MathML and BBpress working together</description>
<language>en</language>
<pubDate>Mon, 08 Sep 2008 04:56:38 +0000</pubDate>

<item>
<title>Trent on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7185</link>
<pubDate>Wed, 02 May 2007 19:03:43 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">7185@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Created a TRAC for it and it is in your other thread!&#60;/p&#62;
&#60;p&#62;Trent
&#60;/p&#62;</description>
</item>
<item>
<title>dprice on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7176</link>
<pubDate>Wed, 02 May 2007 12:27:54 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7176@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ah - so ridiculously easy! I'm liking BBpress more and more ;). &#60;/p&#62;
&#60;p&#62;I just requested code_trick to become pluggable too - hopefully that'll happen, and soon, so I can just use a plugin and not hack at core files.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7151</link>
<pubDate>Tue, 01 May 2007 15:47:30 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">7151@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks! &#60;/p&#62;
&#60;p&#62;You can include ASCIIMathML.js in the header via plugin by this sort of code:&#60;/p&#62;
&#60;p&#62;`function incMathJs() {&#60;br /&#62;
$url = bb_path_to_url( dirname(__FILE__) . '/ASCIIMathML.js')&#60;br /&#62;
echo '&#38;lt;script type=&#34;text/javascript&#34; src=&#34;' . $url . '&#34;&#38;gt;';&#60;br /&#62;
}&#60;br /&#62;
add_action( 'bb_head', 'incMathJs' );&#60;/p&#62;
&#60;p&#62;Not sure when or how the JS kicks in, but perhaps that's not necessary? Anyway, you could head over to trac and request that code_trick be made pluggable (so a plugin could overwrite it).
&#60;/p&#62;</description>
</item>
<item>
<title>dprice on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7149</link>
<pubDate>Tue, 01 May 2007 13:57:26 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7149@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://www.thetelegraphic.com/?page_id=3&#34;&#62;Get bbpress + mathML&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;This is really just a quick knockup - perhaps MathML support would be best in plugin form? I really didn't do all that much, but I'm not familiar with the BBpress plugin system at all so I'm not sure how easy (if possible), it would be.
&#60;/p&#62;</description>
</item>
<item>
<title>dprice on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7147</link>
<pubDate>Tue, 01 May 2007 13:04:01 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7147@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Oh yeah - you can have a play at &#60;a href=&#34;http://www.thetelegraphic.com/bbpress/bbpress/&#34;&#62;http://www.thetelegraphic.com/bbpress/bbpress/&#60;/a&#62;&#60;br /&#62;
That's really just a sandbox for now and won't be there forever.&#60;/p&#62;
&#60;p&#62;I'll be releasing the black template it's using too - It's just Kakumei with a different colour scheme.
&#60;/p&#62;</description>
</item>
<item>
<title>dprice on "MathML and BBpress working together"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress-working-together#post-7146</link>
<pubDate>Tue, 01 May 2007 12:57:23 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7146@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Being both a web nerd and Physics student, I decided it was time for BBpress to meet up with MathML.&#60;/p&#62;
&#60;p&#62;Here's the steps I took to get it crankin':&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Made a copy of the default 'kakumei' template, then renamed the folder 'physics', my new template name. I then put a copy of &#60;a href=&#34;http://www1.chapman.edu/~jipsen/mathml/asciimath.html&#34;&#62;ASCIImath.js&#60;/a&#62; in there. This does all the hard work.&#60;/li&#62;
&#60;li&#62;Changed the physics/header.php from: &#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!DOCTYPE html PUBLIC &#38;quot;-//W3C//DTD XHTML 1.1//EN&#38;quot; &#38;quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&#38;quot;&#38;gt;
&#38;lt;html xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot; &#38;lt;?php bb_language_attributes( &#38;#39;1.1&#38;#39; ); ?&#38;gt;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?xml version=&#38;#39;1.0&#38;#39; encoding=&#38;#39;iso-8859-1&#38;#39;?&#38;gt;
&#38;lt;?xml-stylesheet type=&#38;quot;text/xsl&#38;quot; href=&#38;quot;http://www.w3.org/Math/XSL/mathml.xsl&#38;quot;?&#38;gt;

&#38;lt;!DOCTYPE html PUBLIC &#38;quot;-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN&#38;quot; &#38;quot;http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd&#38;quot; &#38;gt;

&#38;lt;html xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot;
      xml:lang=&#38;quot;en&#38;quot;
      xmlns:pref=&#38;quot;http://www.w3.org/2002/Math/preference&#38;quot;
      pref:renderer=&#38;quot;css&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It'd probably still work if you didn't bother with this step, but seeing as BBpress is making XML we may as well.
&#60;/li&#62;
&#60;li&#62; Added &#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;&#38;lt;?php echo bb_path_to_url( dirname(__FILE__) . &#38;#39;/ASCIIMathML.js&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;&#60;/code&#62; to physics/header.php - this loads the ASCIIMathML.js javascript and does a majority of the MathML magic.
&#60;/li&#62;
&#60;li&#62; Opened bb-includes/formattingfunctions.php and edited this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function code_trick( $text ) {
	 $text = str_replace(array(&#38;quot;\r\n&#38;quot;, &#38;quot;\r&#38;quot;), &#38;quot;\n&#38;quot;, $text);
	// $text = preg_replace(&#38;quot;&#124;&#38;lt;code&#38;gt;(.*?)&#38;lt;/code&#38;gt;&#124;e&#38;quot;, &#38;quot;&#38;#39;&#38;lt;code&#38;gt;&#38;#39; . encodeit(&#38;#39;$1&#38;#39;) . &#38;#39;&#38;lt;/code&#38;gt;&#38;#39;&#38;quot;, $text);
	// $text = preg_replace(&#38;quot;&#124;\n&#38;lt;code&#38;gt;(.*?)&#38;lt;/code&#38;gt;&#124;se&#38;quot;, &#38;quot;&#38;#39;&#38;lt;pre&#38;gt;&#38;lt;code&#38;gt;&#38;#39; . encodeit(&#38;#39;$1&#38;#39;) . &#38;#39;&#38;lt;/code&#38;gt;&#38;lt;/pre&#38;gt;&#38;#39;&#38;quot;, $text);
	return $text;
}&#60;/code&#62;&#60;/pre&#62;
 To turn off the backtick code replacement - this is what ASCIIMath.js does!&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;That was it. I'll zip it all up then post it up here. Ideally, it'd be better to not comment out any of the bb-include/ files - if anyone has any suggestions, let me know.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
