<?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 Tag: MathML</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: MathML</description>
<language>en</language>
<pubDate>Wed, 03 Dec 2008 00:39:12 +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>Trent on "Code_trick made pluggable"</title>
<link>http://bbpress.org/forums/topic/code_trick-made-pluggable#post-7184</link>
<pubDate>Wed, 02 May 2007 19:01:10 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">7184@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;TRAC ticket created!&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/ticket/645&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/ticket/645&#60;/a&#62;&#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>dprice on "Code_trick made pluggable"</title>
<link>http://bbpress.org/forums/topic/code_trick-made-pluggable#post-7175</link>
<pubDate>Wed, 02 May 2007 12:20:24 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7175@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Request: functions-fomatting.php code-trick() to be made pluggable.&#60;/p&#62;
&#60;p&#62;Reason: So parsers such as ASCIIMath can do their replacements on things in backticks.  Then I can make a plugin for MathML support ;)
&#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>
<item>
<title>dprice on "MathML and BBpress"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress#post-7085</link>
<pubDate>Sat, 28 Apr 2007 16:45:32 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7085@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've found a way around this finally, and will be posting up a 'math-pack' version of BBpress. I did have to edit /bb-includes/formattingfunctions.php (2 lines - commented out a regular expression).&#60;br /&#62;
Basically, the way I came up with was using &#60;a href=&#34;http://www1.chapman.edu/~jipsen/mathml/asciimath.html&#34;&#62;ASCIIMath.js&#60;/a&#62; to replace stuff in backticks. I'll get a zip up when I have the time (actually hacing to do the maths uses up most of my time)
&#60;/p&#62;</description>
</item>
<item>
<title>Trent on "MathML and BBpress"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress#post-7083</link>
<pubDate>Sat, 28 Apr 2007 15:33:10 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">7083@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;My guess would be that it would be in /bb-includes/formatingfunctions.php somewhere, but I am not sure....&#60;/p&#62;
&#60;p&#62;Trent
&#60;/p&#62;</description>
</item>
<item>
<title>dprice on "MathML and BBpress"</title>
<link>http://bbpress.org/forums/topic/mathml-and-bbpress#post-7076</link>
<pubDate>Sat, 28 Apr 2007 11:39:39 +0000</pubDate>
<dc:creator>dprice</dc:creator>
<guid isPermaLink="false">7076@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ok, I've been poking around the forums, found out how to get new allowed tags (thanks to &#60;a href=&#34;http://bbpress.org/forums/topic/635?replies=21#post-3709&#34;&#62;Louise Dade + others&#60;/a&#62;) and now want to add MathML tag support, so users can post MathML. &#60;/p&#62;
&#60;p&#62;A big problem is that the editor box seems to add line break &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62; tags to every line - how do you turn this off?&#60;/p&#62;
&#60;p&#62;The &#60;a href=&#34;http://golem.ph.utexas.edu/~distler/blog/files/my-hacks.phps&#34;&#62;array&#60;/a&#62; I'm using in the plugin is:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;`$tags = array(&#60;br /&#62;
// XHTML elements:&#60;br /&#62;
		'a' =&#38;gt; array(&#60;br /&#62;
			'href' =&#38;gt; array(),&#60;br /&#62;
			'hreflang' =&#38;gt; array(),&#60;br /&#62;
			'title' =&#38;gt; array(),&#60;br /&#62;
			'rel' =&#38;gt; array(),&#60;br /&#62;
			'xml:lang' =&#38;gt; array()),&#60;br /&#62;
		'abbr' =&#38;gt; array('title' =&#38;gt; array()),&#60;br /&#62;
		'acronym' =&#38;gt; array('title' =&#38;gt; array()),&#60;br /&#62;
		'b' =&#38;gt; array(),&#60;br /&#62;
		'bdo' =&#38;gt; array(&#60;br /&#62;
			'dir' =&#38;gt; array(),&#60;br /&#62;
			'xml:lang' =&#38;gt; array()),&#60;br /&#62;
		'blockquote' =&#38;gt; array('cite' =&#38;gt; array()),&#60;br /&#62;
		'br' =&#38;gt; array(),&#60;br /&#62;
		'code' =&#38;gt; array(),&#60;br /&#62;
//		   'del' =&#38;gt; array('datetime' =&#38;gt; array()),&#60;br /&#62;
		'dd' =&#38;gt; array(),&#60;br /&#62;
		'dl' =&#38;gt; array(),&#60;br /&#62;
		'div' =&#38;gt; array(&#60;br /&#62;
			'dir' =&#38;gt; array(),&#60;br /&#62;
			'xml:lang' =&#38;gt; array()),&#60;br /&#62;
		'dt' =&#38;gt; array(),&#60;br /&#62;
		'em' =&#38;gt; array(),&#60;br /&#62;
		'i' =&#38;gt; array(&#60;br /&#62;
			'dir' =&#38;gt; array(),&#60;br /&#62;
			'xml:lang' =&#38;gt; array()),&#60;br /&#62;
//		   'ins' =&#38;gt; array('datetime' =&#38;gt; array(), 'cite' =&#38;gt; array()),&#60;br /&#62;
		'li' =&#38;gt; array(),&#60;br /&#62;
		'ol' =&#38;gt; array(),&#60;br /&#62;
		'p' =&#38;gt; array(),&#60;br /&#62;
		'pre' =&#38;gt; array(),&#60;br /&#62;
//		   'q' =&#38;gt; array(),&#60;br /&#62;
//		   'strike' =&#38;gt; array(),&#60;br /&#62;
		'span' =&#38;gt; array(&#60;br /&#62;
			'dir' =&#38;gt; array(),&#60;br /&#62;
			'xml:lang' =&#38;gt; array()),&#60;br /&#62;
		'strong' =&#38;gt; array(),&#60;br /&#62;
		'sub' =&#38;gt; array(),&#60;br /&#62;
		'sup' =&#38;gt; array(),&#60;br /&#62;
		'u' =&#38;gt; array(),&#60;br /&#62;
		'ul' =&#38;gt; array(),&#60;br /&#62;
// MathML elements:&#60;br /&#62;
		'math' =&#38;gt; array(&#60;br /&#62;
			'xmlns' =&#38;gt; array(),&#60;br /&#62;
			'mode' =&#38;gt; array()),&#60;br /&#62;
		'mo' =&#38;gt; array(&#60;br /&#62;
			'lspace' =&#38;gt; array(),&#60;br /&#62;
			'rspace' =&#38;gt; array(),&#60;br /&#62;
			'fence'	=&#38;gt; array(),&#60;br /&#62;
			'separator' =&#38;gt; array()),&#60;br /&#62;
		'mi' =&#38;gt; array('mathvariant' =&#38;gt; array()),&#60;br /&#62;
		'msub' =&#38;gt; array(),&#60;br /&#62;
		'msup' =&#38;gt; array(),&#60;br /&#62;
		'msubsup' =&#38;gt; array(),&#60;br /&#62;
		'mfrac' =&#38;gt; array('linethickness' =&#38;gt; array()),&#60;br /&#62;
		'mn' =&#38;gt; array(),&#60;br /&#62;
		'mstyle' =&#38;gt; array(&#60;br /&#62;
			'scriptlevel' =&#38;gt; array(),&#60;br /&#62;
			'fontstyle' =&#38;gt; array(),&#60;br /&#62;
			'fontweight' =&#38;gt; array(),&#60;br /&#62;
			'mathvariant' =&#38;gt; array(),&#60;br /&#62;
			'displaystyle' =&#38;gt; array()),&#60;br /&#62;
		'mtext' =&#38;gt; array(),&#60;br /&#62;
		'mspace' =&#38;gt; array(&#60;br /&#62;
			'width' =&#38;gt; array(),&#60;br /&#62;
			'height' =&#38;gt; array(),&#60;br /&#62;
			'depth' =&#38;gt; array()),&#60;br /&#62;
		'msqrt' =&#38;gt; array(),&#60;br /&#62;
		'mmultiscripts' =&#38;gt; array(),&#60;br /&#62;
		'mprescripts' =&#38;gt; array(),&#60;br /&#62;
		'none' =&#38;gt; array(),&#60;br /&#62;
		'mroot' =&#38;gt; array(),&#60;br /&#62;
		'mphantom' =&#38;gt; array(),&#60;br /&#62;
		'merror' =&#38;gt; array(),&#60;br /&#62;
		'mover' =&#38;gt; array(),&#60;br /&#62;
		'munder' =&#38;gt; array(),&#60;br /&#62;
		'munderover' =&#38;gt; array(),&#60;br /&#62;
		'maction' =&#38;gt; array(&#60;br /&#62;
			'actiontype' =&#38;gt; array(),&#60;br /&#62;
			'other' =&#38;gt; array(),&#60;br /&#62;
			'selection' =&#38;gt; array()),&#60;br /&#62;
		'mtable' =&#38;gt; array(&#60;br /&#62;
			'align' =&#38;gt; array(),&#60;br /&#62;
			'columnalign' =&#38;gt; array(),&#60;br /&#62;
			'rowalign' =&#38;gt; array(),&#60;br /&#62;
			'equalrows' =&#38;gt; array(),&#60;br /&#62;
			'equalcolumns' =&#38;gt; array(),&#60;br /&#62;
			'columnspacing' =&#38;gt; array(),&#60;br /&#62;
			'rowspacing' =&#38;gt; array(),&#60;br /&#62;
			'columnlines' =&#38;gt; array(),&#60;br /&#62;
			'rowlines' =&#38;gt; array(),&#60;br /&#62;
			'frame' =&#38;gt; array()),&#60;br /&#62;
		'mrow' =&#38;gt; array(&#60;br /&#62;
			'xlink:type' =&#38;gt; array(),&#60;br /&#62;
			'xlink:show' =&#38;gt; array(),&#60;br /&#62;
			'xlink:href' =&#38;gt; array()),&#60;br /&#62;
		'mtr' =&#38;gt; array(&#60;br /&#62;
			'rowalign' =&#38;gt; array(),&#60;br /&#62;
			'columnalign' =&#38;gt; array()),&#60;br /&#62;
		'mtd' =&#38;gt; array(&#60;br /&#62;
			'rowspan' =&#38;gt; array(),&#60;br /&#62;
			'columnspan' =&#38;gt; array(),&#60;br /&#62;
			'rowalign' =&#38;gt; array(),&#60;br /&#62;
			'columnalign' =&#38;gt; array()),&#60;br /&#62;
		'mpadded' =&#38;gt; array('width' =&#38;gt; array())&#60;br /&#62;
	);&#60;/p&#62;
&#60;p&#62;  return $tags;&#60;br /&#62;
  }`&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If anyone's interested, you can find install at &#60;a href=&#34;http://www.thetelegraphic.com/bbpress/bbpress/&#34; rel=&#34;nofollow&#34;&#62;http://www.thetelegraphic.com/bbpress/bbpress/&#60;/a&#62; (for now, once it's fully working it'll go to a dedicated domain).
&#60;/p&#62;</description>
</item>

</channel>
</rss>
