<?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>我爱自然语言处理 &#187; wordpress</title>
	<atom:link href="http://www.52nlp.cn/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.52nlp.cn</link>
	<description>I Love Natural Language Processing</description>
	<lastBuildDate>Wed, 21 Jul 2010 15:33:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>感谢ExWebs，回归Host2ez</title>
		<link>http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez</link>
		<comments>http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez#comments</comments>
		<pubDate>Sat, 06 Mar 2010 16:38:35 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[随笔]]></category>
		<category><![CDATA[ExWebs]]></category>
		<category><![CDATA[host2ez]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[备份]]></category>

		<guid isPermaLink="false">http://www.52nlp.cn/?p=3117</guid>
		<description><![CDATA[　　晚上把“我爱自然语言处理”从ExWebs提供的免费空间上转移到Host2ez，加上前两天已经转移了“自然语言处理百科”，至此，从去年4月5日至今的11个月里，对于ExWebs所提供的免费空间，无论访问速度还是稳定性，我个人非常满意，这里表示感谢！
　　事实上，去年10月下旬ExWebs曾给我提供了又一年的免费使用机会，但是由于新的一期免费计划所在主机在国内，我最终选择了放弃。而之后，Host2ez悄然归来，当我1月份选择虚拟主机时，就决定回归Host2ez。而此前我已陆续将52nlp.org，52nlp.com以及博客镜像搬进了Host2ez的虚拟空间里，目前体验依然满意。
　　顺便记录一下wordpress以及mediawiki的搬家记录，其实很简单：
　　1.在旧的空间导出原有数据库；
　　2.在新的空间建一个新数据库，并导入原有数据库（注意，如果不换域名，直接导入即可，换域名的话里利用一些文本编辑工具替换域名后再导入）；
　　3.备份原wordpress或mediawiki文件夹，上传到新空间；
　　4.修改数据库信息即可。
　　总之，平时的备份很重要，尤其是数据库的备份。
注：原创文章，转载请注明出处“我爱自然语言处理”：www.52nlp.cn
本文链接地址：http://www.52nlp.cn/感谢exwebs-回归host2ez










相关文章:WpMathEditor正式安家
host2ez, 无奈的出局
赞一下host2ez
PhpMathPublisher与wpmathpub修改
Wordpress中的公式编辑器插件
WpMathEditor：我的第一个WordPress插件
“我爱自然语言处理”一周岁
“我爱自然语言处理”PageRank更新为3
“我爱自然语言处理”PageRank再次更新
nlpers最近无法访问



相关文章:<ol><li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/host2ez-helpless-out' rel='bookmark' title='Permanent Link: host2ez, 无奈的出局'>host2ez, 无奈的出局</a></li>
<li><a href='http://www.52nlp.cn/praise-host2ez' rel='bookmark' title='Permanent Link: 赞一下host2ez'>赞一下host2ez</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/%e6%88%91%e7%88%b1%e8%87%aa%e7%84%b6%e8%af%ad%e8%a8%80%e5%a4%84%e7%90%86%e4%b8%80%e5%91%a8%e5%b2%81' rel='bookmark' title='Permanent Link: “我爱自然语言处理”一周岁'>“我爱自然语言处理”一周岁</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-three' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank更新为3'>“我爱自然语言处理”PageRank更新为3</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-second' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank再次更新'>“我爱自然语言处理”PageRank再次更新</a></li>
<li><a href='http://www.52nlp.cn/nlpers-can-not-visit-recently' rel='bookmark' title='Permanent Link: nlpers最近无法访问'>nlpers最近无法访问</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>　　晚上把“我爱自然语言处理”从<a href="http://www.exwebs.com/"target=_blank>ExWebs</a>提供的免费空间上转移到<a href="http://www.host2ez.com/"target=_blank>Host2ez</a>，加上前两天已经转移了“自然语言处理百科”，至此，从去年4月5日至今的11个月里，对于ExWebs所提供的免费空间，无论访问速度还是稳定性，我个人非常满意，这里表示感谢！<span id="more-3117"></span><br />
　　事实上，去年10月下旬ExWebs曾给我提供了又一年的免费使用机会，但是由于新的一期免费计划所在主机在国内，我最终选择了放弃。而之后，Host2ez悄然归来，当我1月份选择虚拟主机时，就决定回归Host2ez。而此前我已陆续将52nlp.org，52nlp.com以及博客镜像搬进了Host2ez的虚拟空间里，目前体验依然满意。<br />
　　顺便记录一下wordpress以及mediawiki的搬家记录，其实很简单：<br />
　　1.在旧的空间导出原有数据库；<br />
　　2.在新的空间建一个新数据库，并导入原有数据库（注意，如果不换域名，直接导入即可，换域名的话里利用一些文本编辑工具替换域名后再导入）；<br />
　　3.备份原wordpress或mediawiki文件夹，上传到新空间；<br />
　　4.修改数据库信息即可。<br />
　　总之，平时的备份很重要，尤其是数据库的备份。</p>
<p>注：原创文章，转载请注明出处“<a href="http://www.52nlp.cn">我爱自然语言处理</a>”：<a href="http://www.52nlp.cn">www.52nlp.cn</a></p>
<p>本文链接地址：<a href="http://www.52nlp.cn/感谢exwebs-回归host2ez">http://www.52nlp.cn/感谢exwebs-回归host2ez</a></p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4332174469367599";
/* 336x280, 创建于 09-2-7 */
google_ad_slot = "5707022987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>


<p>相关文章:<ol><li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/host2ez-helpless-out' rel='bookmark' title='Permanent Link: host2ez, 无奈的出局'>host2ez, 无奈的出局</a></li>
<li><a href='http://www.52nlp.cn/praise-host2ez' rel='bookmark' title='Permanent Link: 赞一下host2ez'>赞一下host2ez</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/%e6%88%91%e7%88%b1%e8%87%aa%e7%84%b6%e8%af%ad%e8%a8%80%e5%a4%84%e7%90%86%e4%b8%80%e5%91%a8%e5%b2%81' rel='bookmark' title='Permanent Link: “我爱自然语言处理”一周岁'>“我爱自然语言处理”一周岁</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-three' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank更新为3'>“我爱自然语言处理”PageRank更新为3</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-second' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank再次更新'>“我爱自然语言处理”PageRank再次更新</a></li>
<li><a href='http://www.52nlp.cn/nlpers-can-not-visit-recently' rel='bookmark' title='Permanent Link: nlpers最近无法访问'>nlpers最近无法访问</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WpMathEditor正式安家</title>
		<link>http://www.52nlp.cn/wpmatheditor-have-an-official-home</link>
		<comments>http://www.52nlp.cn/wpmatheditor-have-an-official-home#comments</comments>
		<pubDate>Thu, 23 Apr 2009 00:00:14 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[随笔]]></category>
		<category><![CDATA[phpmathpublisher]]></category>
		<category><![CDATA[WpMathEditor]]></category>
		<category><![CDATA[wpmathpub]]></category>

		<guid isPermaLink="false">http://www.52nlp.cn/?p=1436</guid>
		<description><![CDATA[　　一直想将WpMathEditor提交给WordPress官网，但是最近一直没有时间来做这件事。不过昨晚发生的一件事有点搞笑，搞笑的同时又有点后怕，于是赶紧把这件事做了，免得以后WpMathEditor的身份被混淆，人有时候真是逼出来的！
　　昨晚邮件收到了《Wordpress中的公式编辑器插件》及《PhpMathPublisher与wpmathpub修改》这两篇文章的pingback通知，意味着有人在别处引用了相关文章，于是按着链接的方向去看了看，果然《WpMathEditor：我的第一个WordPress插件》这篇文章被转载了，不过这个博客作者并没有注明是转载的，这也无所谓，最让我吃惊的是这个博客上的发表时间赫然是2009年1月20日。1月20日还是年前，而WpMathEditor至少也是我年后回来弄得，赶紧查自己发表这篇关于WpMathEditor文章的时间，是3月21日。莫非时光倒流？还是真的有时空机器？记着曾经有一篇文章的名字叫《跨越百年的美丽》，突然让我想到了一个题目叫：《跨越时空的丑陋》。
　　我注意了一下这个博客，从昨晚转载这篇文章开始到现在的几十个小时内，其陆续投放了几十篇文章，这个博主的做法无比聪明，非比寻常：第一，不注明转载，我也看不出来里面有没有他自己原创的；第二，将发表时间从2008年12月至4月平均设计；第三点更值得称道的，里面有些评论的时间也是均匀设计的。事实上，如果不是自己偶然发现了这篇博文被他转载，访问他的博客真的很难发现什么破绽。记得月光博客曾经有一篇文章说在中国做原创博客很难，因为中国人习惯了复制和粘贴。其实我也不祈求什么，只是希望转载52nlp的文章的时候注明一下出处罢了！偶尔我也会发现有的人转载了52nlp的文章不注明出处，这也罢了，在中国得习惯这个。问题是转载WpMathEdtior这篇文章的作者实在是太太太聪明了，如果我不赶紧把WpMathEditor递交给WordPress官网，或许哪一天我就成了被告！
　　好了，说了这么多废话，请读者谅解，目前WpMathEditor在WordPress官网的正式地址在：
　　　http://wordpress.org/extend/plugins/wpmatheditor/
　　我在www.52nlp.com上为其写了英文说明，52nlp.com作为52nlp.cn的英文站存在，主要是自己的英文太烂，想在52nlp.com上练习一下英文，可惜一直没时间写这个英文博客。WpMathEditor的英文说明地址在：http://www.52nlp.com/wpmatheditor/，中文说明地址不变，下载请在WordPress官网上下载。
以下为本次事件的存照：

注：原创文章，转载请注明出处“我爱自然语言处理”：www.52nlp.cn
本文链接地址：http://www.52nlp.cn/wpmatheditor-have-an-official-home/










相关文章:WpMathEditor：我的第一个WordPress插件
Wordpress中的公式编辑器插件
PhpMathPublisher与wpmathpub修改
感谢ExWebs，回归Host2ez
《中文信息学报》的&#8221;牛年礼物&#8221;
自然语言处理公司巡礼一：Teragram
自然语言处理公司巡礼五：Autonomy
host2ez, 无奈的出局
“我爱自然语言处理”PageRank首次更新
52nlp暂停更新一段时间



相关文章:<ol><li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/journal-of-chinese-information-processing-gift' rel='bookmark' title='Permanent Link: 《中文信息学报》的&#8221;牛年礼物&#8221;'>《中文信息学报》的&#8221;牛年礼物&#8221;</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-company-teragram' rel='bookmark' title='Permanent Link: 自然语言处理公司巡礼一：Teragram'>自然语言处理公司巡礼一：Teragram</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-company-autonomy' rel='bookmark' title='Permanent Link: 自然语言处理公司巡礼五：Autonomy'>自然语言处理公司巡礼五：Autonomy</a></li>
<li><a href='http://www.52nlp.cn/host2ez-helpless-out' rel='bookmark' title='Permanent Link: host2ez, 无奈的出局'>host2ez, 无奈的出局</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-first' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank首次更新'>“我爱自然语言处理”PageRank首次更新</a></li>
<li><a href='http://www.52nlp.cn/52nlp%e6%9a%82%e5%81%9c%e6%9b%b4%e6%96%b0%e4%b8%80%e6%ae%b5%e6%97%b6%e9%97%b4' rel='bookmark' title='Permanent Link: 52nlp暂停更新一段时间'>52nlp暂停更新一段时间</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>　　一直想将WpMathEditor提交给WordPress官网，但是最近一直没有时间来做这件事。不过昨晚发生的一件事有点搞笑，搞笑的同时又有点后怕，于是赶紧把这件事做了，免得以后WpMathEditor的身份被混淆，人有时候真是逼出来的！<span id="more-1436"></span><br />
　　昨晚邮件收到了《<a href="http://www.52nlp.cn/wordpress-equation-editor-plugin/">Wordpress中的公式编辑器插件</a>》及《<a href="http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/">PhpMathPublisher与wpmathpub修改</a>》这两篇文章的pingback通知，意味着有人在别处引用了相关文章，于是按着链接的方向去看了看，果然《<a href="http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor/">WpMathEditor：我的第一个WordPress插件</a>》这篇文章被转载了，不过这个博客作者并没有注明是转载的，这也无所谓，最让我吃惊的是这个博客上的发表时间赫然是2009年1月20日。1月20日还是年前，而WpMathEditor至少也是我年后回来弄得，赶紧查自己发表这篇关于WpMathEditor文章的时间，是3月21日。莫非时光倒流？还是真的有时空机器？记着曾经有一篇文章的名字叫《跨越百年的美丽》，突然让我想到了一个题目叫：《跨越时空的丑陋》。<br />
　　我注意了一下这个博客，从昨晚转载这篇文章开始到现在的几十个小时内，其陆续投放了几十篇文章，这个博主的做法无比聪明，非比寻常：第一，不注明转载，我也看不出来里面有没有他自己原创的；第二，将发表时间从2008年12月至4月平均设计；第三点更值得称道的，里面有些评论的时间也是均匀设计的。事实上，如果不是自己偶然发现了这篇博文被他转载，访问他的博客真的很难发现什么破绽。记得月光博客曾经有一篇文章说在中国做原创博客很难，因为中国人习惯了复制和粘贴。其实我也不祈求什么，只是希望转载52nlp的文章的时候注明一下出处罢了！偶尔我也会发现有的人转载了52nlp的文章不注明出处，这也罢了，在中国得习惯这个。问题是转载WpMathEdtior这篇文章的作者实在是太太太聪明了，如果我不赶紧把WpMathEditor递交给WordPress官网，或许哪一天我就成了被告！<br />
　　好了，说了这么多废话，请读者谅解，目前WpMathEditor在WordPress官网的正式地址在：<br />
　　　<a href="http://wordpress.org/extend/plugins/wpmatheditor/">http://wordpress.org/extend/plugins/wpmatheditor/</a><br />
　　我在<a href="http://www.52nlp.com">www.52nlp.com</a>上为其写了英文说明，52nlp.com作为52nlp.cn的英文站存在，主要是自己的英文太烂，想在52nlp.com上练习一下英文，可惜一直没时间写这个英文博客。WpMathEditor的英文说明地址在：<a href="http://www.52nlp.com/wpmatheditor/">http://www.52nlp.com/wpmatheditor/</a>，中文说明地址不变，下载请在WordPress官网上下载。</p>
<p>以下为本次事件的存照：<br />
<img src="http://www.52nlp.cn/images/compare.jpg" alt="compare" /></p>
<p>注：原创文章，转载请注明出处“<a href="http://www.52nlp.cn">我爱自然语言处理</a>”：<a href="http://www.52nlp.cn">www.52nlp.cn</a></p>
<p>本文链接地址：<a href="http://www.52nlp.cn/wpmatheditor-have-an-official-home/">http://www.52nlp.cn/wpmatheditor-have-an-official-home/</a></p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4332174469367599";
/* 336x280, 创建于 09-2-7 */
google_ad_slot = "5707022987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>


<p>相关文章:<ol><li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/journal-of-chinese-information-processing-gift' rel='bookmark' title='Permanent Link: 《中文信息学报》的&#8221;牛年礼物&#8221;'>《中文信息学报》的&#8221;牛年礼物&#8221;</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-company-teragram' rel='bookmark' title='Permanent Link: 自然语言处理公司巡礼一：Teragram'>自然语言处理公司巡礼一：Teragram</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-company-autonomy' rel='bookmark' title='Permanent Link: 自然语言处理公司巡礼五：Autonomy'>自然语言处理公司巡礼五：Autonomy</a></li>
<li><a href='http://www.52nlp.cn/host2ez-helpless-out' rel='bookmark' title='Permanent Link: host2ez, 无奈的出局'>host2ez, 无奈的出局</a></li>
<li><a href='http://www.52nlp.cn/52nlp-pagerank-update-first' rel='bookmark' title='Permanent Link: “我爱自然语言处理”PageRank首次更新'>“我爱自然语言处理”PageRank首次更新</a></li>
<li><a href='http://www.52nlp.cn/52nlp%e6%9a%82%e5%81%9c%e6%9b%b4%e6%96%b0%e4%b8%80%e6%ae%b5%e6%97%b6%e9%97%b4' rel='bookmark' title='Permanent Link: 52nlp暂停更新一段时间'>52nlp暂停更新一段时间</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.cn/wpmatheditor-have-an-official-home/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WpMathEditor：我的第一个WordPress插件</title>
		<link>http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor</link>
		<comments>http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor#comments</comments>
		<pubDate>Sat, 21 Mar 2009 00:00:23 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[phpmathpublisher]]></category>
		<category><![CDATA[WpMathEditor]]></category>
		<category><![CDATA[公式编辑器]]></category>

		<guid isPermaLink="false">http://www.52nlp.cn/?p=1250</guid>
		<description><![CDATA[　　一直想重新写一下WordPress的公式编辑器插件，最近业余稍微有了点时间，于是学了一下如何写WordPress插件。之所以想重写WordPress公式编辑插件，原因有二：第一，这种插件很少，当时我有这个需要的时候，发现国内竟然没有人介绍这类插件，于是写了一篇介绍性的文章《Wordpress中的公式编辑器插件》，目前的点击率表明这类插件还是有需求的；第二，在使用过程中，对于wpmathpub，我并不是很满意，尤其是它的[pmath]标签，觉得很繁琐，于是对其做了修改，写了第二篇如何修改的文章《PhpMathPublisher与wpmathpub修改》，但是这种修改事实上像是转了个圈——wpmathpub把&#60;m&#62;替换为[pmath]，而我又将[pmath]替换为&#60;m&#62;，中间过程多此一举，所以一直有修改的念头。
　　重写的时候又仔细看了下PhpMathPublisher的代码，真的是很佩服这个法国中学老师作者，可以说这个库是这几个wordpress公式编辑器插件的基石，贡献率超过90%。当然，我的这个插件WpMathEditor也不例外，甚至更依赖于PhpMathPublisher，因为我将它的&#60;m&#62;标签都保留了。
　　我的代码应该是最最简单的了，只有几句，写得时候的原则是能省则省，能不用就不用，包括自定义公式大小，但基本上这个插件已经能满足”我爱自然语言处理“的所有需求了。以下是规范的中文使用说明书，同时我已经将PhpMathPublisher的帮助文档译成中文，这样能作为WpMathEditor的帮助文档，我相信详细的说明文档对于大家使用这个插件将会有很好的辅助作用。
简介
　　WpMathEditor是WordPress的一个公式编辑器插件，用于文章及页面中的数学公式显示。这个插件建立在PhpMathPublisher的基础之上，通过调用它所提供的库函数，将在&#60;m&#62;&#8230;&#60;/m&#62;之间的数学命令转换成数学公式，插入到文章或页面中。
使用说明
　　编辑文章或页面时请使用WordPress的HTML模式，当需要插入数学公式时，可以在文本中插入&#60;m&#62;数学命令&#60;/m&#62;，在文章中将相应的显示数学公式。如：
　　　　　&#60;m&#62;a+b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;a-b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;a*b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;a/b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;a^b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;a_b&#60;/m&#62; ==> 
　　　　　&#60;m&#62;ab&#60;/m&#62; ==> =b&#8221; title=&#8221;a>=b&#8221;/>
　　　　　&#60;m&#62;sqrt{a}&#60;/m&#62; ==> 
　　　　　&#60;m&#62;root{n}{a}&#60;/m&#62; ==> 
　　　　　&#60;m&#62;lim{a}{x}&#60;/m&#62; ==> 
　　　　　&#60;m&#62;sum{a}{b}{x}&#60;/m&#62; ==> 
　　这些只是最基本的几个例子，详细请参考我翻译的PhpMathPublisher中文帮助文档或PhpMathPublisher官方英文帮助文档，里面有基本的数学命令或数学符号对应的数学公式说明，既PhpMathPublisher自己定义的数学命令公式语法。利用这些基本的命令，可以组合出很复杂的数学公式，如：
　　&#60;m&#62;S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}&#60;/m&#62; 　　
　==>
　　
　　在PhpMathPublisher官方主页上有一个Online Demo,可以在线练习和测试各种数学公式表达式，用户可以方便的输入自己设计的数学命令，点击按钮“See”后可以看到生成的数学公式是否满足自己的要求，这样很容易修改自己的数学命令。
下载及安装说明
　　目前WpMathEditor的版本是0.1，在WordPress官网的正式地址在：
　　　http://wordpress.org/extend/plugins/wpmatheditor/
　　我在www.52nlp.com上为其写了英文说明，52nlp.com作为52nlp.cn的英文站存在，WpMathEditor的英文说明地址在：
　　　http://www.52nlp.com/wpmatheditor/
　　下载请在WordPress官网上下载。
　　安装说明：
  　　1 将其上传到 /wp-content/plugins 目录下并解压；
  　　2 确保 /wp-content/plugins/WpMathEditor/
phpmathpublisher/img 目录可写可读，最好将其设置为755权限；
  　　3 在WordPress控制面板的插件里将其启用即可。
　　注：其中第2条非必要条件，如果安装时出现问题，就要考虑img目录的权限问题。
补充说明
　　目前WpMathEditor 0.1版已在”我爱自然语言处理“上测试了一段时间，比较稳定。如果您下载了这个WordPress中新的公式编辑器插件，在使用过程中发现任何bug，遇到任何问题和有什么好的建议，请在这里留言，我将及时给予解答。
注：原创文章，转载请注明出处“我爱自然语言处理”：www.52nlp.cn
本文链接地址：
http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor/










相关文章:WpMathEditor正式安家
PhpMathPublisher与wpmathpub修改
Wordpress中的公式编辑器插件
自然语言处理与计算语言学书籍汇总之六：国外书籍
感谢ExWebs，回归Host2ez
微软：Web N-gram Services



相关文章:<ol><li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-six-foreign-book' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之六：国外书籍'>自然语言处理与计算语言学书籍汇总之六：国外书籍</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/%e5%be%ae%e8%bd%af-web-n-gram-services' rel='bookmark' title='Permanent Link: 微软：Web N-gram Services'>微软：Web N-gram Services</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>　　一直想重新写一下WordPress的公式编辑器插件，最近业余稍微有了点时间，于是学了一下如何写WordPress插件。<span id="more-1250"></span>之所以想重写WordPress公式编辑插件，原因有二：第一，这种插件很少，当时我有这个需要的时候，发现国内竟然没有人介绍这类插件，于是写了一篇介绍性的文章《<a href="http://www.52nlp.cn/wordpress-equation-editor-plugin/">Wordpress中的公式编辑器插件</a>》，目前的点击率表明这类插件还是有需求的；第二，在使用过程中，对于wpmathpub，我并不是很满意，尤其是它的[pmath]标签，觉得很繁琐，于是对其做了修改，写了第二篇如何修改的文章《<a href="http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/">PhpMathPublisher与wpmathpub修改</a>》，但是这种修改事实上像是转了个圈——wpmathpub把&lt;m&gt;替换为[pmath]，而我又将[pmath]替换为&lt;m&gt;，中间过程多此一举，所以一直有修改的念头。<br />
　　重写的时候又仔细看了下PhpMathPublisher的代码，真的是很佩服这个法国中学老师作者，可以说这个库是这几个wordpress公式编辑器插件的基石，贡献率超过90%。当然，我的这个插件WpMathEditor也不例外，甚至更依赖于PhpMathPublisher，因为我将它的&lt;m&gt;标签都保留了。<br />
　　我的代码应该是最最简单的了，只有几句，写得时候的原则是能省则省，能不用就不用，包括自定义公式大小，但基本上这个插件已经能满足”我爱自然语言处理“的所有需求了。以下是规范的中文使用说明书，同时我已经将PhpMathPublisher的帮助文档译成中文，这样能作为WpMathEditor的帮助文档，我相信详细的说明文档对于大家使用这个插件将会有很好的辅助作用。</p>
<p><strong>简介</strong><br />
　　WpMathEditor是WordPress的一个公式编辑器插件，用于文章及页面中的数学公式显示。这个插件建立在<a href="http://www.xm1math.net/phpmathpublisher/"target="_blank">PhpMathPublisher</a>的基础之上，通过调用它所提供的库函数，将在&lt;m&gt;&#8230;&lt;/m&gt;之间的数学命令转换成数学公式，插入到文章或页面中。</p>
<p><strong>使用说明</strong><br />
　　编辑文章或页面时请使用WordPress的HTML模式，当需要插入数学公式时，可以在文本中插入&lt;m&gt;数学命令&lt;/m&gt;，在文章中将相应的显示数学公式。如：<br />
　　　　　&lt;m&gt;a+b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_249bf2ce6e493cec0f66fc004a9fc251.png" style="vertical-align:-5.5px; display: inline-block ;" alt="a+b" title="a+b"/><br />
　　　　　&lt;m&gt;a-b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_b65fc3d6dad89bbd29b0457d877018d7.png" style="vertical-align:-5.5px; display: inline-block ;" alt="a-b" title="a-b"/><br />
　　　　　&lt;m&gt;a*b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_a981e6e5059a814fcaf5ac7410f4ed90.png" style="vertical-align:-5.5px; display: inline-block ;" alt="a*b" title="a*b"/><br />
　　　　　&lt;m&gt;a/b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_986_8465f7638b43753bd94e06d8bde32a0a.png" style="vertical-align:-14px; display: inline-block ;" alt="a/b" title="a/b"/><br />
　　　　　&lt;m&gt;a^b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994_99ded69ba39ddd6c77ece1cbcfe4c1f9.png" style="vertical-align:-6px; display: inline-block ;" alt="a^b" title="a^b"/><br />
　　　　　&lt;m&gt;a_b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_986.5_77d2f8bd9c1ae3efee511a3a2cccf94a.png" style="vertical-align:-13.5px; display: inline-block ;" alt="a_b" title="a_b"/><br />
　　　　　&lt;m&gt;a<>b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_59507a01158ca4f6d2807b2010185422.png" style="vertical-align:-5.5px; display: inline-block ;" alt="a<>b&#8221; title=&#8221;a<>b&#8221;/><img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_1002_c20ad4d76fe97759aa27a0c99bff6710.png" style="vertical-align:2px; display: inline-block ;" alt="" title=""/><br />
　　　　　&lt;m&gt;a>=b&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_b1e4945d4ad56e6870f84f381f3fbc65.png" style="vertical-align:-5.5px; display: inline-block ;" alt="a>=b&#8221; title=&#8221;a>=b&#8221;/><img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_1002_c20ad4d76fe97759aa27a0c99bff6710.png" style="vertical-align:2px; display: inline-block ;" alt="" title=""/><br />
　　　　　&lt;m&gt;sqrt{a}&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_e26606bb25fbac3b0c2a65937705928a.png" style="vertical-align:-5.5px; display: inline-block ;" alt="sqrt{a}" title="sqrt{a}"/><br />
　　　　　&lt;m&gt;root{n}{a}&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_994.5_ffd2db913ba8bc1e45152465799cf53c.png" style="vertical-align:-5.5px; display: inline-block ;" alt="root{n}{a}" title="root{n}{a}"/><br />
　　　　　&lt;m&gt;lim{a}{x}&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_979.5_4ac4bc253173fd141341a93c4506e7c3.png" style="vertical-align:-20.5px; display: inline-block ;" alt="lim{a}{x}" title="lim{a}{x}"/><br />
　　　　　&lt;m&gt;sum{a}{b}{x}&lt;/m&gt; ==> <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_978_7ee4a859723e15262b3e2733c6ba40ba.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{a}{b}{x}" title="sum{a}{b}{x}"/><br />
　　这些只是最基本的几个例子，详细请参考我翻译的PhpMathPublisher<a href="http://www.52nlp.cn/phpmathpublisher"target="_blank">中文帮助文档</a>或PhpMathPublisher官方<a href="http://www.xm1math.net/phpmathpublisher/doc/help.html"target="_blank">英文帮助文档</a>，里面有基本的数学命令或数学符号对应的数学公式说明，既PhpMathPublisher自己定义的数学命令公式语法。利用这些基本的命令，可以组合出很复杂的数学公式，如：<br />
　　&lt;m&gt;S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}&lt;/m&gt; 　　<br />
　==><br />
　　<img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_970_629fdc23df6a73cbd6e915c3429f9126.png" style="vertical-align:-30px; display: inline-block ;" alt="S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}" title="S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}"/><br />
　　在PhpMathPublisher官方主页上有一个<a href="http://www.xm1math.net/phpmathpublisher/examples/online_demo.php"target="_blank">Online Demo</a>,可以在线练习和测试各种数学公式表达式，用户可以方便的输入自己设计的数学命令，点击按钮“See”后可以看到生成的数学公式是否满足自己的要求，这样很容易修改自己的数学命令。</p>
<p><strong>下载及安装说明</strong><br />
　　目前WpMathEditor的版本是0.1，在WordPress官网的正式地址在：<br />
　　　<a href="http://wordpress.org/extend/plugins/wpmatheditor/">http://wordpress.org/extend/plugins/wpmatheditor/</a><br />
　　我在<a href="http://www.52nlp.com">www.52nlp.com</a>上为其写了英文说明，52nlp.com作为52nlp.cn的英文站存在，WpMathEditor的英文说明地址在：<br />
　　　<a href="http://www.52nlp.com/wpmatheditor/">http://www.52nlp.com/wpmatheditor/</a><br />
　　下载请在WordPress<a href="http://wordpress.org/extend/plugins/wpmatheditor/">官网</a>上下载。<br />
　　安装说明：<br />
  　　1 将其上传到 /wp-content/plugins 目录下并解压；<br />
  　　2 确保 /wp-content/plugins/WpMathEditor/<br />
phpmathpublisher/img 目录可写可读，最好将其设置为755权限；<br />
  　　3 在WordPress控制面板的插件里将其启用即可。<br />
　　注：其中第2条非必要条件，如果安装时出现问题，就要考虑img目录的权限问题。</p>
<p><strong>补充说明</strong><br />
　　目前WpMathEditor 0.1版已在”<a href="http://www.52nlp.cn">我爱自然语言处理</a>“上测试了一段时间，比较稳定。如果您下载了这个WordPress中新的公式编辑器插件，在使用过程中发现任何bug，遇到任何问题和有什么好的建议，请在这里留言，我将及时给予解答。</p>
<p>注：原创文章，转载请注明出处“<a href="http://www.52nlp.cn">我爱自然语言处理</a>”：<a href="http://www.52nlp.cn">www.52nlp.cn</a></p>
<p>本文链接地址：<br />
<a href="http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor/">http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor/</a></p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4332174469367599";
/* 336x280, 创建于 09-2-7 */
google_ad_slot = "5707022987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>


<p>相关文章:<ol><li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-six-foreign-book' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之六：国外书籍'>自然语言处理与计算语言学书籍汇总之六：国外书籍</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/%e5%be%ae%e8%bd%af-web-n-gram-services' rel='bookmark' title='Permanent Link: 微软：Web N-gram Services'>微软：Web N-gram Services</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>PhpMathPublisher与wpmathpub修改</title>
		<link>http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified</link>
		<comments>http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified#comments</comments>
		<pubDate>Thu, 15 Jan 2009 00:00:36 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[phpmathpublisher]]></category>
		<category><![CDATA[wpmathpub]]></category>
		<category><![CDATA[公式编辑器]]></category>

		<guid isPermaLink="false">http://www.52nlp.cn/?p=488</guid>
		<description><![CDATA[　　晚上读了一下Wordpress中的公式编辑器插件wpmathpub的代码，发现背后真正强大的是phpmathpublisher。它的作者是法国一位中学数学老师，可见好的软件是因实际需求而产生的，不过这个主页这两天一直打不开。我将wpmathpub里面的phpmathpublisher包修改了一下，帮助文档可以在这里看到（注：09年3月20号已将其翻译为中文帮助文档并替换），也算是phpmathpublisher的一个小镜像吧：
　　　　　http://www.52nlp.cn/phpmathpublisher
　　感觉phpmathpublisher的语法很好，反而wpmathpub包裹后把简单的事情搞复杂了：将&#8230;m &#8230; /m&#8230;标记换成[pmath]&#8230;[/pmath]真是多此一举，既麻烦又不规范！
　　所以自己动手修改了一下，将wpmathpub目录下的wpmathpub.php的第117行含有[pmath]的部分替换为&#8230;m&#8230;,替换后如下：
$content = preg_replace(&#8216;#&#8230;m(s+size=&#124;s?)(d*)(&#8230;)(.*?)&#8230;/m&#8230;#sie&#8217;, &#8216;wpmathfilter(&#8216;4&#8242;, &#8216;2&#8242;);&#8217;, $content);
　　注意，请将上面的&#8230;用替代，这样就可以完全使用phpmathpublisher的语法了！具体请参考帮助文档！
注：原创文章，转载请注明出处“我爱自然语言处理”：www.52nlp.cn
本文链接地址：
http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/










相关文章:WpMathEditor：我的第一个WordPress插件
WpMathEditor正式安家
Wordpress中的公式编辑器插件
感谢ExWebs，回归Host2ez
自然语言处理与计算语言学书籍汇总之六：国外书籍
微软：Web N-gram Services
MIT自然语言处理第三讲：概率语言模型（第五部分）



相关文章:<ol><li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-six-foreign-book' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之六：国外书籍'>自然语言处理与计算语言学书籍汇总之六：国外书籍</a></li>
<li><a href='http://www.52nlp.cn/%e5%be%ae%e8%bd%af-web-n-gram-services' rel='bookmark' title='Permanent Link: 微软：Web N-gram Services'>微软：Web N-gram Services</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-third-lesson-probabilistic-language-modeling-fifth-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第三讲：概率语言模型（第五部分）'>MIT自然语言处理第三讲：概率语言模型（第五部分）</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>　　晚上读了一下Wordpress中的公式编辑器插件wpmathpub的代码，发现背后真正强大的是phpmathpublisher。<span id="more-488"></span>它的作者是法国一位中学数学老师，可见好的软件是因实际需求而产生的，不过这个主页这两天一直打不开。我将wpmathpub里面的phpmathpublisher包修改了一下，帮助文档可以在这里看到（注：09年3月20号已将其翻译为中文帮助文档并替换），也算是phpmathpublisher的一个小镜像吧：<br />
　　　　　<a href="http://www.52nlp.cn/phpmathpublisher"target="_blank">http://www.52nlp.cn/phpmathpublisher</a><br />
　　感觉phpmathpublisher的语法很好，反而wpmathpub包裹后把简单的事情搞复杂了：将&#8230;m &#8230; /m&#8230;标记换成[pmath]&#8230;[/pmath]真是多此一举，既麻烦又不规范！<br />
　　所以自己动手修改了一下，将wpmathpub目录下的wpmathpub.php的第117行含有[pmath]的部分替换为&#8230;m&#8230;,替换后如下：<br />
$content = preg_replace(&#8216;#&#8230;m(s+size=|s?)(d*)(&#8230;)(.*?)&#8230;/m&#8230;#sie&#8217;, &#8216;wpmathfilter(&#8216;4&#8242;, &#8216;2&#8242;);&#8217;, $content);<br />
　　注意，请将上面的&#8230;用<或>替代，这样就可以完全使用phpmathpublisher的语法了！具体请参考帮助文档！</p>
<p>注：原创文章，转载请注明出处“<a href="http://www.52nlp.cn">我爱自然语言处理</a>”：<a href="http://www.52nlp.cn">www.52nlp.cn</a></p>
<p>本文链接地址：<br />
<a href="http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/">http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/</a></p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4332174469367599";
/* 336x280, 创建于 09-2-7 */
google_ad_slot = "5707022987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>


<p>相关文章:<ol><li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/wordpress-equation-editor-plugin' rel='bookmark' title='Permanent Link: Wordpress中的公式编辑器插件'>Wordpress中的公式编辑器插件</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-six-foreign-book' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之六：国外书籍'>自然语言处理与计算语言学书籍汇总之六：国外书籍</a></li>
<li><a href='http://www.52nlp.cn/%e5%be%ae%e8%bd%af-web-n-gram-services' rel='bookmark' title='Permanent Link: 微软：Web N-gram Services'>微软：Web N-gram Services</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-third-lesson-probabilistic-language-modeling-fifth-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第三讲：概率语言模型（第五部分）'>MIT自然语言处理第三讲：概率语言模型（第五部分）</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress中的公式编辑器插件</title>
		<link>http://www.52nlp.cn/wordpress-equation-editor-plugin</link>
		<comments>http://www.52nlp.cn/wordpress-equation-editor-plugin#comments</comments>
		<pubDate>Tue, 13 Jan 2009 00:00:20 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[MIT]]></category>
		<category><![CDATA[wpmathpub]]></category>
		<category><![CDATA[公式编辑器]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.52nlp.cn/?p=452</guid>
		<description><![CDATA[　　晚上在翻译MIT自然语言处理课程语言模型这一讲义时遇到了困难，不是翻译不过去，而是发现有好多公式要在wordpress中显示出来。之前选择的策略是尽量简化使用，实在打不出来就辟开。但是随着翻译过程的进行，越来越觉得这不是一个好办法，所以今晚暂时放下翻译，在网上寻找这样的网页公式编辑器插件了。
　　发现这方面国内介绍的很少，唯一相关的一个是wordpress中文论坛里介绍的，不过上面给出的latex相关的数学公式插件，我对latex不熟，遂放弃，但是这个帖子里有一句话让人印象深刻：“目前地球上还没有完美的可供网页中使用的公式编辑器”。抛开wordpress，只搜网页公式编辑器，发现国内做这个的寥寥！
　　最后在国外wordpress论坛上找到了一个插件：wpmathpub，介绍如下：
	　Display mathematical equations within your posts and comments.Put your plain text mathmatical expressions between [pmath size=xx]&#8230;[/pmath] tags. The optional size attribute controls how large the images will be displayed. Useful xx integer values range from 8 to 24. Size defaults to 12 when attribute omitted. Pascal Brachet&#8217;s PHP Math Publisher library is included.
	　　主要是在pmath标记之间输入相关的数学表达式，它自动生成png格式的数学公式图片，可控制大小。在pmath之间输入的表达式语法使用“PHP Math Publisher“的语法，事实上，这个插件包里已经包含了PHP [...]


相关文章:<ol><li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-third-lesson-probabilistic-language-modeling-sixth-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第三讲：概率语言模型（第六部分）'>MIT自然语言处理第三讲：概率语言模型（第六部分）</a></li>
<li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/several-different-programming-language-version-of-hmm' rel='bookmark' title='Permanent Link: 几种不同程序语言的HMM版本'>几种不同程序语言的HMM版本</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-fourth-lesson-tagging-second-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第四讲：标注（第二部分）'>MIT自然语言处理第四讲：标注（第二部分）</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-five-machine-translation' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之五：机器翻译'>自然语言处理与计算语言学书籍汇总之五：机器翻译</a></li>
<li><a href='http://www.52nlp.cn/maximum-entropy-model-tutorial-reading' rel='bookmark' title='Permanent Link: 最大熵模型文献阅读指南'>最大熵模型文献阅读指南</a></li>
<li><a href='http://www.52nlp.cn/statistical-machine-translation-tutorial-reading' rel='bookmark' title='Permanent Link: 统计机器翻译文献阅读指南'>统计机器翻译文献阅读指南</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>　　晚上在翻译MIT自然语言处理课程语言模型这一讲义时遇到了困难，不是翻译不过去，而是发现有好多公式要在wordpress中显示出来。<span id="more-452"></span>之前选择的策略是尽量简化使用，实在打不出来就辟开。但是随着翻译过程的进行，越来越觉得这不是一个好办法，所以今晚暂时放下翻译，在网上寻找这样的网页公式编辑器插件了。<br />
　　发现这方面国内介绍的很少，唯一相关的一个是wordpress中文论坛里介绍的，不过上面给出的latex相关的数学公式插件，我对latex不熟，遂放弃，但是这个帖子里有一句话让人印象深刻：“目前地球上还没有完美的可供网页中使用的公式编辑器”。抛开wordpress，只搜网页公式编辑器，发现国内做这个的寥寥！<br />
　　最后在国外wordpress论坛上找到了一个插件：wpmathpub，介绍如下：<br />
	　Display mathematical equations within your posts and comments.Put your plain text mathmatical expressions between [pmath size=xx]&#8230;[/pmath] tags. The optional size attribute controls how large the images will be displayed. Useful xx integer values range from 8 to 24. Size defaults to 12 when attribute omitted. Pascal Brachet&#8217;s PHP Math Publisher library is included.<br />
	　　主要是在pmath标记之间输入相关的数学表达式，它自动生成png格式的数学公式图片，可控制大小。在pmath之间输入的表达式语法使用“PHP Math Publisher“的语法，事实上，这个插件包里已经包含了PHP Math Publisher的库文件。<br />
	　　与这个插件相似的还有另一个: wpmathpublisher，这个插件也是利用PHP Math Publisher实现的。下面是这个网站上的几个例子的效果图，显示的蛮漂亮的！<br />
 <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_986_d8dde2f06933defc236fe6ed6646a6af.png" style="vertical-align:-14px; display: inline-block ;" alt="(a+b)^2=a^2+2ab+b^2" title="(a+b)^2=a^2+2ab+b^2"/><br />
 <img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_970_629fdc23df6a73cbd6e915c3429f9126.png" style="vertical-align:-30px; display: inline-block ;" alt="S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}" title="S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)}"/><br />
<img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_951.5_506b7c45e56bdfee574dc07f9c1dc5ca.png" style="vertical-align:-48.5px; display: inline-block ;" alt="delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }" title="delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ }"/><br />
<img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_953_8a4d58201559c8755859d1d7e107fe3d.png" style="vertical-align:-47px; display: inline-block ;" alt="delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3" title="delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3"/><br />
<img src="http://www.52nlp.cn/wp-content/plugins/WpMathEditor/phpmathpublisher/img/math_953_0789bbf6b1947adc623454c05a5995b0.png" style="vertical-align:-47px; display: inline-block ;" alt="f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}}" title="f(x)~left~ sum{kappa=1}{infty}{delim{[}{{1/(x_kappa)^kappa}}{]}}"/></p>
<p>注：原创文章，转载请注明出处“<a href="http://www.52nlp.cn">我爱自然语言处理</a>”：<a href="http://www.52nlp.cn">www.52nlp.cn</a></p>
<p>本文链接地址：<br />
<a href="http://www.52nlp.cn/wordpress-equation-editor-plugin/">http://www.52nlp.cn/wordpress-equation-editor-plugin/</a></p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4332174469367599";
/* 336x280, 创建于 09-2-7 */
google_ad_slot = "5707022987";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>


<p>相关文章:<ol><li><a href='http://www.52nlp.cn/phpmathpublisher-and-wpmathpub-modified' rel='bookmark' title='Permanent Link: PhpMathPublisher与wpmathpub修改'>PhpMathPublisher与wpmathpub修改</a></li>
<li><a href='http://www.52nlp.cn/my-first-wordpress-plugin-wpmatheditor' rel='bookmark' title='Permanent Link: WpMathEditor：我的第一个WordPress插件'>WpMathEditor：我的第一个WordPress插件</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-third-lesson-probabilistic-language-modeling-sixth-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第三讲：概率语言模型（第六部分）'>MIT自然语言处理第三讲：概率语言模型（第六部分）</a></li>
<li><a href='http://www.52nlp.cn/wpmatheditor-have-an-official-home' rel='bookmark' title='Permanent Link: WpMathEditor正式安家'>WpMathEditor正式安家</a></li>
<li><a href='http://www.52nlp.cn/several-different-programming-language-version-of-hmm' rel='bookmark' title='Permanent Link: 几种不同程序语言的HMM版本'>几种不同程序语言的HMM版本</a></li>
<li><a href='http://www.52nlp.cn/%e6%84%9f%e8%b0%a2exwebs-%e5%9b%9e%e5%bd%92host2ez' rel='bookmark' title='Permanent Link: 感谢ExWebs，回归Host2ez'>感谢ExWebs，回归Host2ez</a></li>
<li><a href='http://www.52nlp.cn/mit-nlp-fourth-lesson-tagging-second-part' rel='bookmark' title='Permanent Link: MIT自然语言处理第四讲：标注（第二部分）'>MIT自然语言处理第四讲：标注（第二部分）</a></li>
<li><a href='http://www.52nlp.cn/natural-language-processing-and-computational-linguistics-books-summary-five-machine-translation' rel='bookmark' title='Permanent Link: 自然语言处理与计算语言学书籍汇总之五：机器翻译'>自然语言处理与计算语言学书籍汇总之五：机器翻译</a></li>
<li><a href='http://www.52nlp.cn/maximum-entropy-model-tutorial-reading' rel='bookmark' title='Permanent Link: 最大熵模型文献阅读指南'>最大熵模型文献阅读指南</a></li>
<li><a href='http://www.52nlp.cn/statistical-machine-translation-tutorial-reading' rel='bookmark' title='Permanent Link: 统计机器翻译文献阅读指南'>统计机器翻译文献阅读指南</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.cn/wordpress-equation-editor-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
