<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Offline Wikipedia</title>
	<atom:link href="http://jsomers.net/blog/offline-wikipedia/feed" rel="self" type="application/rss+xml" />
	<link>http://jsomers.net/blog/offline-wikipedia</link>
	<description>the jsomers.net blog</description>
	<lastBuildDate>Fri, 11 May 2012 05:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Teak</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-32637</link>
		<dc:creator>Teak</dc:creator>
		<pubDate>Sun, 29 Jan 2012 20:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-32637</guid>
		<description>&lt;p&gt;I had the same problem. to fix I created a directory called &quot;mediawiki_sa&quot;, and inside that made a directory called &quot;includes&quot;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I had the same problem. to fix I created a directory called &#8220;mediawiki_sa&#8221;, and inside that made a directory called &#8220;includes&#8221;.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Barnich</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-27019</link>
		<dc:creator>Glenn Barnich</dc:creator>
		<pubDate>Sat, 12 Nov 2011 08:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-27019</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;thanks a lot for these detailed instructions, after some tuning to get django and python interact correctly on my configuration (macosx 10.6.8), all works! Could you also send me the patch that caches the tex images ?&lt;/p&gt;

&lt;p&gt;Thanks, G&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>thanks a lot for these detailed instructions, after some tuning to get django and python interact correctly on my configuration (macosx 10.6.8), all works! Could you also send me the patch that caches the tex images ?</p>

<p>Thanks, G</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Iskren Ivov Chernev</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-24856</link>
		<dc:creator>Iskren Ivov Chernev</dc:creator>
		<pubDate>Sat, 24 Sep 2011 20:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-24856</guid>
		<description>&lt;p&gt;The problem with “Exception: Empty termnames aren’t allowed” is that the code for the indexer doesn&#039;t read all lines properly -- it always receives an empty line at the end of the file. To fix it change
            if (cin.eof()) break;
            getline(cin, title);
to
            if (!getline(cin, title)) break;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The problem with “Exception: Empty termnames aren’t allowed” is that the code for the indexer doesn&#8217;t read all lines properly &#8212; it always receives an empty line at the end of the file. To fix it change
            if (cin.eof()) break;
            getline(cin, title);
to
            if (!getline(cin, title)) break;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Madhusudan</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-11445</link>
		<dc:creator>Madhusudan</dc:creator>
		<pubDate>Wed, 09 Mar 2011 04:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-11445</guid>
		<description>&lt;p&gt;I suppose you get a &quot;could no parse&quot; error. This is because of the texvc binaries supplied with the mediawiki_sa.tar.7z file you must have downloaded. Please recompile the texvc binaries, and it sould work fine. (It did for me).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I suppose you get a &#8220;could no parse&#8221; error. This is because of the texvc binaries supplied with the mediawiki_sa.tar.7z file you must have downloaded. Please recompile the texvc binaries, and it sould work fine. (It did for me).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Madhusudan</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-11444</link>
		<dc:creator>Madhusudan</dc:creator>
		<pubDate>Wed, 09 Mar 2011 04:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-11444</guid>
		<description>&lt;p&gt;I have one tip: If somebody (like me) has the texvc binaries installed on their computer, then there is no need to recompile the texvc source. One can go to the mediawiki_sa/math directory and soft link the texvc file in the /usr/bin directory instead of the binary supplied. It saves the trouble of having to install ocaml. I don&#039;t know if this works in a mac though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have one tip: If somebody (like me) has the texvc binaries installed on their computer, then there is no need to recompile the texvc source. One can go to the mediawiki_sa/math directory and soft link the texvc file in the /usr/bin directory instead of the binary supplied. It saves the trouble of having to install ocaml. I don&#8217;t know if this works in a mac though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: James Somers</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-3964</link>
		<dc:creator>James Somers</dc:creator>
		<pubDate>Mon, 30 Aug 2010 23:58:28 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-3964</guid>
		<description>&lt;p&gt;I have created a patch that caches the rendered TeX images. I sent you an e-mail that includes this patch.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have created a patch that caches the rendered TeX images. I sent you an e-mail that includes this patch.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-3958</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sun, 29 Aug 2010 15:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-3958</guid>
		<description>&lt;p&gt;Thanks for the instructions. I managed to build the whole thing, and it basically works. However, two observations: I tried the gamma function of the English wikipedia, and most of the math renders fine, but some formulas don&#039;t. Any idea why and what I should do? 2nd observation: tex takes a lot of time rendering all the formulas one by one (I think?), and that each time I go back to the gamma function page. Any way to have it cache its results for later fast access?&lt;/p&gt;

&lt;p&gt;Thanks anyway!&lt;/p&gt;

&lt;p&gt;Frank&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the instructions. I managed to build the whole thing, and it basically works. However, two observations: I tried the gamma function of the English wikipedia, and most of the math renders fine, but some formulas don&#8217;t. Any idea why and what I should do? 2nd observation: tex takes a lot of time rendering all the formulas one by one (I think?), and that each time I go back to the gamma function page. Any way to have it cache its results for later fast access?</p>

<p>Thanks anyway!</p>

<p>Frank</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-3714</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-3714</guid>
		<description>&lt;p&gt;I had the same problem running fedora KDE 12. It turns out that my php engine did not like that the command php5, so I edited show.pl and changed this line:&lt;/p&gt;

&lt;p&gt;system(&quot;cd ../mediawiki_sa/ &amp;&amp; php5 testparser.php /var/tmp/result &gt; /var/tmp/result.tmp&quot;);&lt;/p&gt;

&lt;p&gt;to this line:&lt;/p&gt;

&lt;p&gt;system(&quot;cd ../mediawiki_sa/ &amp;&amp; php testparser.php /var/tmp/result &gt; /var/tmp/result.tmp&quot;);&lt;/p&gt;

&lt;p&gt;It seemed to parse just fine after that, albeit with a bunch of php notices in the shell. I hope that helps you though :D!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I had the same problem running fedora KDE 12. It turns out that my php engine did not like that the command php5, so I edited show.pl and changed this line:</p>

<p>system(&#8220;cd ../mediawiki_sa/ &amp;&amp; php5 testparser.php /var/tmp/result &gt; /var/tmp/result.tmp&#8221;);</p>

<p>to this line:</p>

<p>system(&#8220;cd ../mediawiki_sa/ &amp;&amp; php testparser.php /var/tmp/result &gt; /var/tmp/result.tmp&#8221;);</p>

<p>It seemed to parse just fine after that, albeit with a bunch of php notices in the shell. I hope that helps you though :D!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Crispin</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-3403</link>
		<dc:creator>Crispin</dc:creator>
		<pubDate>Wed, 17 Feb 2010 12:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-3403</guid>
		<description>&lt;p&gt;Thanks for the instructions, I used a very similar method a few years back but never really got it to work.&lt;/p&gt;

&lt;p&gt;For those wanting something simpler (maybe a slightly different use case) I strongly recommend aarddict (http://aarddict.org/).&lt;/p&gt;

&lt;p&gt;It&#039;s a free, open-source (GPL) and extremely fast program which also provides ready built databases for all wikipedia text content. 
You don&#039;t get pictures (far too large) but you do get all the text and latex (math formulae) nicely rendered with working links, tables, formatting, etc. 
It is available for Ubuntu, Windows, OS-X and Nokia tablet (and source obviously)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the instructions, I used a very similar method a few years back but never really got it to work.</p>

<p>For those wanting something simpler (maybe a slightly different use case) I strongly recommend aarddict (<a href="http://aarddict.org/" rel="nofollow">http://aarddict.org/</a>).</p>

<p>It&#8217;s a free, open-source (GPL) and extremely fast program which also provides ready built databases for all wikipedia text content. 
You don&#8217;t get pictures (far too large) but you do get all the text and latex (math formulae) nicely rendered with working links, tables, formatting, etc. 
It is available for Ubuntu, Windows, OS-X and Nokia tablet (and source obviously)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Reverso time &#171; jsomers.net</title>
		<link>http://jsomers.net/blog/offline-wikipedia/comment-page-1#comment-3357</link>
		<dc:creator>Reverso time &#171; jsomers.net</dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://jsomers.net/blog/offline-wikipedia#comment-3357</guid>
		<description>&lt;p&gt;[...] posts discussing build options and compile errors and PATH variables. Examples fresh in my mind: offline Wikipedia, Metacat, and the Ruby wrapper for the Stanford Natural Language [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] posts discussing build options and compile errors and PATH variables. Examples fresh in my mind: offline Wikipedia, Metacat, and the Ruby wrapper for the Stanford Natural Language [...]</p>]]></content:encoded>
	</item>
</channel>
</rss>

