<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>7ème Gnossienne &#187; XML</title>
	<atom:link href="http://firehacks.org/category/xml/feed" rel="self" type="application/rss+xml" />
	<link>http://firehacks.org</link>
	<description>dynamis&#039; blog</description>
	<lastBuildDate>Tue, 01 Sep 2009 13:06:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASCIIsvg のサンプル</title>
		<link>http://firehacks.org/posts/67</link>
		<comments>http://firehacks.org/posts/67#comments</comments>
		<pubDate>Sat, 29 Jul 2006 06:48:29 +0000</pubDate>
		<dc:creator>dynamis</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://firehacks.org/blog/posts/67</guid>
		<description><![CDATA[続けて ASCIIsvg のサンプルを(要 SVG 対応ブラウザ)。&#160;


うん。なかなか良い感じですね(自己満足)。これでやっと必要な機能がそろったかな。;-)
]]></description>
			<content:encoded><![CDATA[<p>続けて ASCIIsvg のサンプルを(要 <abbr title="Scalable Vector Graphics">SVG</abbr> 対応ブラウザ)。&nbsp;</p>
<p><span id="more-67"></span><embed width="400" height="400" src="http://firehacks.org/wp-content/plugins/asciisvg//d.svg" script="
setBorder(0);
initPicture(-2*pi-0.2,2*pi+0.2);
axes(1, 1, &quot;labels&quot;, &quot;grid&quot;);
dot([pi,0],&quot;|&quot;,cpi,above);
dot([-pi,0],&quot;|&quot;,&quot;-&quot;+cpi,above);
dot([2*pi,0],&quot;|&quot;,&quot;2&quot;+cpi,above);
dot([-2*pi,0],&quot;|&quot;,&quot;-2&quot;+cpi,above);
dot([pi/2,0],&quot;|&quot;,cpi+&quot;/2&quot;,above);
dot([-pi/2,0],&quot;|&quot;,&quot;-&quot;+cpi+&quot;/2&quot;,above);
dot([3*pi/2,0],&quot;|&quot;,&quot;3&quot;+cpi+&quot;/2&quot;,above);
dot([-3*pi/2,0],&quot;|&quot;,&quot;-3&quot;+cpi+&quot;/2&quot;,above);
strokewidth = 1.5;

stroke = &quot;blue&quot;;
plot(&quot;cos(x)&quot;);
fontfill = &quot;blue&quot;;
text([-1.4,.8],&quot;cos(x)&quot;);

stroke = &quot;green&quot;;
plot(&quot;tan(x)&quot;,-2*pi-0.2,-3/2*pi-0.05);
plot(&quot;tan(x)&quot;,-3/2*pi+0.05,-1/2*pi-0.05);
plot(&quot;tan(x)&quot;,-1/2*pi+0.05,1/2*pi-0.05);
plot(&quot;tan(x)&quot;,1/2*pi+0.05,3/2*pi-0.05);
plot(&quot;tan(x)&quot;,3/2*pi+0.05,2*pi+0.2);
fontfill = &quot;green&quot;;
text([1.2,3],&quot;tan(x)&quot;,aboveright);

stroke = &quot;black&quot;;
plot(&quot;csc(x)&quot;,-2*pi+0.05,-pi-0.05);
plot(&quot;csc(x)&quot;,-pi+0.05,-0.05);
plot(&quot;csc(x)&quot;,0.05,pi-0.05);
plot(&quot;csc(x)&quot;,pi+0.05,2*pi-0.05);
fontfill = &quot;none&quot;;
text([2.6,2],&quot;csc(x)&quot;,aboveright);

stroke = &quot;red&quot;;
plot(&quot;sin(x)&quot;);
fontfill = &quot;red&quot;;
text([2.9,.8],&quot;sin(x)&quot;);

"/></p>
<p><embed width="400" height="400" src="http://firehacks.org/wp-content/plugins/asciisvg//d.svg" script="
setBorder(7);
initPicture(-3,3);
axes(1, 1, &quot;labels&quot;, &quot;grid&quot;);
strokewidth = 1.5;

stroke = &quot;green&quot;;
plot(&quot;tanh(x)&quot;);
text([-2,-0.9],&quot;tanh(x)&quot;,aboveright);

stroke = &quot;black&quot;;
plot(&quot;sech(x)&quot;);
text([-2,0.55],&quot;sech(x)&quot;,right);

stroke = &quot;red&quot;;
plot(&quot;sinh(x)&quot;);
text([-2,-2],&quot;sinh(x)&quot;,aboveright);

stroke = &quot;blue&quot;;
plot(&quot;cosh(x)&quot;);
text([-2,2],&quot;cosh(x)&quot;,aboveright);

"/></p>
<p>うん。なかなか良い感じですね(自己満足)。これでやっと必要な機能がそろったかな。;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://firehacks.org/posts/67/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASCIIsvg for WordPress</title>
		<link>http://firehacks.org/posts/66</link>
		<comments>http://firehacks.org/posts/66#comments</comments>
		<pubDate>Sat, 29 Jul 2006 06:40:01 +0000</pubDate>
		<dc:creator>dynamis</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://firehacks.org/blog/posts/66</guid>
		<description><![CDATA[サーバサイド数式変換の ASCIIMathPHP、クライアントサイド数式変換の ASCIIMathML.js に続いてクライアントサイドでの図表生成の ASCIIsvg.js を WordPress に導入してみました。例によって一応公開しておきます。
&#160;asciisvg.zip
以下、ASCIIsvg のページで公開されているサンプル (Firefox や IE+Adobe SVG Viewer など SVG 対応ブラウザでご覧ください):


残念ながら Firefox での SVG 処理が非常に重いので他のサンプルは別途続けて…
]]></description>
			<content:encoded><![CDATA[<p>サーバサイド数式変換の ASCIIMathPHP、クライアントサイド数式変換の ASCIIMathML.js に続いてクライアントサイドでの図表生成の ASCIIsvg.js を WordPress に導入してみました。例によって一応公開しておきます。</p>
<p align="center">&nbsp;<a href="http://ftp.firehacks.org/wordpress/plugins/asciisvg.zip">asciisvg.zip</a></p>
<p><span id="more-66"></span>以下、<a href="http://www1.chapman.edu/~jipsen/asciisvg.html">ASCIIsvg のページ</a>で公開されているサンプル (Firefox や IE+Adobe <abbr title="Scalable Vector Graphics">SVG</abbr> Viewer など <abbr title="Scalable Vector Graphics">SVG</abbr> 対応ブラウザでご覧ください):</p>
<p><embed width="400" height="400" src="http://firehacks.org/wp-content/plugins/asciisvg//d.svg" script="
setBorder(0);
initPicture(-5,5);
axes(2, 1, &quot;labels&quot;, 1);

stroke = &quot;blue&quot;;
plot(&quot;sin(x)&quot;);

stroke = &quot;red&quot;;
plot([&quot;5*t*cos(pi*t)&quot;, &quot;5*t*sin(pi*t)&quot;],0,1);

stroke = &quot;green&quot;;
strokewidth = &quot;2&quot;;
marker = &quot;arrowdot&quot;;
line([0,1], [pi/2,1]);
dot([pi,0], &quot;open&quot;, cpi);

text([-2.5,-2.5], &quot;ASCIIsvg Example&quot;);

"/></p>
<p><embed width="400" height="400" src="http://firehacks.org/wp-content/plugins/asciisvg//d.svg" script="
setBorder(5);
initPicture(-5,5);
axes(1, 1, &quot;labels&quot;, &quot;grid&quot;);

stroke = &quot;blue&quot;;
plot(&quot;x^3-2x&quot;,-3,3);
text([2,1],&quot;x^3-2x=(x-p)(x-0)(x-q)&quot;,aboveright);
dot([-sqrt(2),0],&quot;|&quot;,&quot; p&quot;,below);
dot([sqrt(2),0],&quot;|&quot;,&quot; q&quot;,below);

stroke = &quot;red&quot;;
plot(&quot;x^3&quot;,-3,3);
text([1,1],&quot;x^3&quot;,aboveleft);

stroke = &quot;green&quot;;
plot(&quot;-1/4x^3&quot;,-3,3);
text([2,-2],&quot;-1/4x^3&quot;,aboveright);

setBorder(5);
initPicture(-5,5);
axes(1, 1, &quot;labels&quot;, &quot;grid&quot;);

stroke = &quot;blue&quot;;
plot(&quot;x^3-2x&quot;,-3,3);
text([2,1],&quot;x^3-2x=(x-p)(x-0)(x-q)&quot;,aboveright);
dot([-sqrt(2),0],&quot;|&quot;,&quot; p&quot;,below);
dot([sqrt(2),0],&quot;|&quot;,&quot; q&quot;,below);

stroke = &quot;red&quot;;
plot(&quot;x^3&quot;,-3,3);
text([1,1],&quot;x^3&quot;,aboveleft);

stroke = &quot;green&quot;;
plot(&quot;-1/4x^3&quot;,-3,3);
text([2,-2],&quot;-1/4x^3&quot;,aboveright);

"/></p>
<p>残念ながら Firefox での <abbr title="Scalable Vector Graphics">SVG</abbr> 処理が非常に重いので他のサンプルは<a href="http://firehacks.org/blog/posts/67" title="ASCIIsvg のサンプル">別途続けて</a>…</p>
]]></content:encoded>
			<wfw:commentRss>http://firehacks.org/posts/66/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>ASCIIMathML for WordPress</title>
		<link>http://firehacks.org/posts/65</link>
		<comments>http://firehacks.org/posts/65#comments</comments>
		<pubDate>Sat, 29 Jul 2006 06:09:40 +0000</pubDate>
		<dc:creator>dynamis</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://firehacks.org/blog/posts/65</guid>
		<description><![CDATA[前回は ASCIIMathPHP を使ってサーバサイドでの数式変換を行うようにしたが、今回は ASCIIMathML.js (のカスタム版)を使ってクライアントサイドでの数式変換を行うプラグインも作ってみました。コードを見て使い方を理解する根性のある人はどうぞ。
asciimathml.zip&#160;
`x^2+y_1+z_12^34`
`x^2+y_1+z_12^34`
`sin^-1(x)`
`sin^-1(x)`
`d/dxf(x)=lim_(h-&#62;0)(f(x+h)-f(x))/h`
`d/dxf(x)=lim_(h-&#62;0)(f(x+h)-f(x))/h`
$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
`f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n`
`f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n`
$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$
$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$
`int_0^1f(x)dx`
`int_0^1f(x)dx`
`[[a,b],[c,d]]((n),(k))`
`[[a,b],[c,d]]((n),(k))`
`x/x={(1,if x!=0),(text{undefined},if x=0):}`
`x/x={(1,if x!=0),(text{undefined},if x=0):}`
ASCIIMathML.js は最新の機能を使えるため、Tex 形式の数式も変換してくれる。複雑な数式を多量に書くとクライアントサイドでの負荷が大きくなるだろうけど、取りあえず正常に動くだけでよいよい。;-)
]]></description>
			<content:encoded><![CDATA[<p><a href="http://firehacks.org/blog/posts/63" title="ASCIIMathPHP for WordPress">前回</a>は <a href="http://www.jcphysics.com/ASCIIMath/">ASCIIMathPHP</a> を使ってサーバサイドでの数式変換を行うようにしたが、今回は <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.xml">ASCIIMathML.js</a> (のカスタム版)を使ってクライアントサイドでの数式変換を行うプラグインも作ってみました。コードを見て使い方を理解する根性のある人はどうぞ。</p>
<p align="center"><a href="http://ftp.firehacks.org/wordpress/plugins/asciimathml.zip">asciimathml.zip</a>&nbsp;</p>
<p><span id="more-65"></span>`x^2+y_1+z_12^34`</p>
<blockquote class="asciimathml"><p>`x^2+y_1+z_12^34`</p></blockquote>
<p>`sin^-1(x)`</p>
<blockquote class="asciimathml"><p>`sin^-1(x)`</p></blockquote>
<p>`d/dxf(x)=lim_(h-&gt;0)(f(x+h)-f(x))/h`</p>
<blockquote class="asciimathml"><p>`d/dxf(x)=lim_(h-&gt;0)(f(x+h)-f(x))/h`</p></blockquote>
<p>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</p>
<blockquote class="asciimathml"><p>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</p></blockquote>
<p>`f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n`</p>
<blockquote class="asciimathml"><p>`f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n`</p></blockquote>
<p>$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$</p>
<blockquote class="asciimathml"><p>$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$</p></blockquote>
<p>`int_0^1f(x)dx`</p>
<blockquote class="asciimathml"><p>`int_0^1f(x)dx`</p></blockquote>
<p>`[[a,b],[c,d]]((n),(k))`</p>
<blockquote class="asciimathml"><p>`[[a,b],[c,d]]((n),(k))`</p></blockquote>
<p>`x/x={(1,if x!=0),(text{undefined},if x=0):}`</p>
<blockquote class="asciimathml"><p>`x/x={(1,if x!=0),(text{undefined},if x=0):}`</p></blockquote>
<p>ASCIIMathML.js は最新の機能を使えるため、Tex 形式の数式も変換してくれる。複雑な数式を多量に書くとクライアントサイドでの負荷が大きくなるだろうけど、取りあえず正常に動くだけでよいよい。;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://firehacks.org/posts/65/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASCIIMathPHP for WordPress</title>
		<link>http://firehacks.org/posts/63</link>
		<comments>http://firehacks.org/posts/63#comments</comments>
		<pubDate>Thu, 27 Jul 2006 21:21:32 +0000</pubDate>
		<dc:creator>dynamis</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://firehacks.org/blog/posts/63</guid>
		<description><![CDATA[WordPress で数式を入力するため、ASCIIMathPHP を使って ASCIIMath 形式から MathML を生成するプラグインを作ってみました。後述の通り問題山積ですが、人柱万歳な方は好きに使ってください(使用法などの解説一切なし)。
asciimathphp.zip
ASCIIMathML のページにある例(の一部)とそれを変換させてみた結果はこんな感じです (Firefox など MathML 対応ブラウザでご覧ください):
x^2+y_1+z_12^34
x2+y1+z1234
sin^-1(x)
sin-1(x)
d/dxf(x)=lim_(h-&#62;0)(f(x+h)-f(x))/h
ddxf(x)=limh&#8594;0f(x+h)-f(x)h
\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
\ddxf(x)=\limh\to0\f(x+h)-f(x)h
f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n
f(x)=&#8721;n=0&#8734;f(n)(a)n!(x-a)n
f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n
f(x)=\&#8721;n=0\&#8712;fty\f(n)(a)n!(x-a)n
[[a,b],[c,d]]((n),(k))
[abcd](nk)
x/x={(1,if x!=0),(text{undefined},if x=0):}
xx={1ifx&#8800;0undefinedifx=0
ご覧の通り LaTex 形式の数式はちゃんと変換できていません。単に ASCIIMathPHP がベースとしている ASCIIMathML.js のバージョンが古いからなのですが、ASCIIMathPHP をアップデートするのはかなり面倒そうです…
他にも問題があります。XML ドキュメントとして XHTML+MathML を生成することになるため、出力全体が Valid でなければなりません。しかし、現実の WordPress (や TinyMCE) は平気で Invalid な出力をしますので、うっかりしているとパースエラーになってしまいます…
]]></description>
			<content:encoded><![CDATA[<p>WordPress で数式を入力するため、<a href="http://www.jcphysics.com/ASCIIMath/" title="ASCIIMath ported to PHP">ASCIIMathPHP</a> を使って ASCIIMath 形式から MathML を生成するプラグインを作ってみました。後述の通り問題山積ですが、人柱万歳な方は好きに使ってください(使用法などの解説一切なし)。</p>
<p align="center"><a href="http://ftp.firehacks.org/wordpress/plugins/asciimathphp.zip">asciimathphp.zip</a></p>
<p><a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.xml">ASCIIMathML のページ</a>にある例(の一部)とそれを変換させてみた結果はこんな感じです (Firefox など MathML 対応ブラウザでご覧ください):</p>
<p><span id="more-63"></span>x^2+y_1+z_12^34</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><msub><mi>y</mi><mn>1</mn></msub><mo>+</mo><mrow><msubsup><mi>z</mi><mn>12</mn><mn>34</mn></msubsup></mrow></mstyle></math></p></blockquote>
<p>sin^-1(x)</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><msup><mo>sin</mo><mn>-1</mn></msup><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mstyle></math></p></blockquote>
<p>d/dxf(x)=lim_(h-&gt;0)(f(x+h)-f(x))/h</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mfrac><mi>d</mi><mrow><mi>d</mi><mi>x</mi></mrow></mfrac><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><munder><mo>lim</mo><mrow><mi>h</mi><mo>&#8594;</mo><mn>0</mn></mrow></munder><mfrac><mrow><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>h</mi><mo>)</mo></mrow><mo>-</mo><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mrow><mi>h</mi></mfrac></mstyle></math></p></blockquote>
<p>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mo>\</mo><mfrac><mrow><mi>d</mi></mrow><mrow><mrow><mi>d</mi><mi>x</mi></mrow></mrow></mfrac><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><mo>\</mo><munder><mo>lim</mo><mrow><mi>h</mi><mo>\</mo><mi>t</mi><mi>o</mi><mn>0</mn></mrow></munder><mo>\</mo><mfrac><mrow><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>+</mo><mi>h</mi><mo>)</mo></mrow><mo>-</mo><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow></mrow><mrow><mi>h</mi></mrow></mfrac></mstyle></math></p></blockquote>
<p>f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><mrow><munderover><mo>&#8721;</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mo>&#8734;</mo></munderover></mrow><mfrac><mrow><msup><mi>f</mi><mrow><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow></mrow></msup><mrow><mo>(</mo><mi>a</mi><mo>)</mo></mrow></mrow><mrow><mi>n</mi><mo>!</mo></mrow></mfrac><msup><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>a</mi><mo>)</mo></mrow><mi>n</mi></msup></mstyle></math></p></blockquote>
<p>f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mi>f</mi><mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mo>=</mo><mo>\</mo><mrow><munderover><mo>&#8721;</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mo>\</mo></munderover></mrow><mo>&#8712;</mo><mi>f</mi><mi>t</mi><mi>y</mi><mo>\</mo><mfrac><mrow><msup><mi>f</mi><mrow><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow></mrow></msup><mrow><mo>(</mo><mi>a</mi><mo>)</mo></mrow></mrow><mrow><mi>n</mi><mo>!</mo></mrow></mfrac><msup><mrow><mo>(</mo><mi>x</mi><mo>-</mo><mi>a</mi><mo>)</mo></mrow><mi>n</mi></msup></mstyle></math></p></blockquote>
<p>[[a,b],[c,d]]((n),(k))</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mrow><mo>[</mo><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable><mo>]</mo></mrow><mrow><mo>(</mo><mtable><mtr><mtd><mi>n</mi></mtd></mtr><mtr><mtd><mi>k</mi></mtd></mtr></mtable><mo>)</mo></mrow></mstyle></math></p></blockquote>
<p>x/x={(1,if x!=0),(text{undefined},if x=0):}</p>
<blockquote><p><math xmlns="http://www.w3.org/1998/Math/MathML"><mstyle displaystyle="true"><mfrac><mi>x</mi><mi>x</mi></mfrac><mo>=</mo><mrow><mo>{</mo><mtable columnalign="left"><mtr><mtd><mn>1</mn></mtd><mtd><mrow><mspace width="1ex"></mspace><mo>if</mo><mspace width="1ex"></mspace></mrow><mi>x</mi><mo>&#8800;</mo><mn>0</mn></mtd></mtr><mtr><mtd><mrow><mtext>undefined</mtext></mrow></mtd><mtd><mrow><mspace width="1ex"></mspace><mo>if</mo><mspace width="1ex"></mspace></mrow><mi>x</mi><mo>=</mo><mn>0</mn></mtd></mtr></mtable></mrow></mstyle></math></p></blockquote>
<p>ご覧の通り LaTex 形式の数式はちゃんと変換できていません。単に ASCIIMathPHP がベースとしている ASCIIMathML.js のバージョンが古いからなのですが、ASCIIMathPHP をアップデートするのはかなり面倒そうです…</p>
<p>他にも問題があります。XML ドキュメントとして XHTML+MathML を生成することになるため、出力全体が Valid でなければなりません。しかし、現実の WordPress (や TinyMCE) は平気で Invalid な出力をしますので、うっかりしているとパースエラーになってしまいます…</p>
]]></content:encoded>
			<wfw:commentRss>http://firehacks.org/posts/63/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
