<?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>Excursus &#187; Instiki</title>
	<atom:link href="http://markelikalderon.com/category/instiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://markelikalderon.com</link>
	<description>Philosophy and Text</description>
	<lastBuildDate>Sat, 04 Sep 2010 13:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Instiki and SmartyPants</title>
		<link>http://markelikalderon.com/2006/10/26/instiki-and-smartypants/</link>
		<comments>http://markelikalderon.com/2006/10/26/instiki-and-smartypants/#comments</comments>
		<pubDate>Thu, 26 Oct 2006 15:00:06 +0000</pubDate>
		<dc:creator>Mark Eli Kalderon</dc:creator>
				<category><![CDATA[Instiki]]></category>
		<category><![CDATA[Markdown]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SmartyPants]]></category>

		<guid isPermaLink="false">http://markelikalderon.com/blog/2006/10/26/instiki-and-smartypants/</guid>
		<description><![CDATA[Dr. Drang recently posted about adding SmartyPants to Instiki. I like both these tools, but I ran into a few snags, so I thought I would post some updated instructions. For those who don&#8217;t know, Instiki is a wiki clone based on Ruby on Rails. Very easy to install and use. One virtue of Instiki [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.leancrew.com/all-this/">Dr. Drang</a> recently <a href="http://www.leancrew.com/all-this/2006/10/adding_smartypants_to_instiki.html">posted</a> about adding SmartyPants to Instiki. I like both these tools, but I ran into a few snags, so I thought I would post some updated instructions.</p>

<p>For those who don&#8217;t know, Instiki is a wiki clone based on Ruby on Rails. Very easy to install and use. One virtue of Instiki is that it has the option of using <a href="http://daringfireball.net/projects/markdown/">Markdown</a>, a lightweight markup language. (<a href="http://markelikalderon.com/blog/2006/10/10/whats-the-opposite-of-markup/">Or is it?</a>). It can be used locally and is a handy way to organize notes.</p>

<p><a href="http://daringfireball.net/projects/smartypants/">Smartypants</a> is a companion project to Markdown. It translates ASCII punctuation characters into &#8216;smart&#8217; typographic punctuation. (After all, you want to be typographically correct, don&#8217;t you?)</p>

<p>The first problem is that the Instiki.org site seems no longer to exist. I was worried that Instiki was no more. Fortunately, after some searching, I found that Instiki can be downloaded <a href="http://rubyforge.org/frs/?group_id=186">here</a>. There are a number of download options. The easiest for OS X users is instiki-0.10.2.dmg. Mount the dmg and drag Instiki.app to your Applications folder and your done.</p>

<p>You don&#8217;t need Ruby or Rails installed to run Instiki.app, all these files are contained locally. But that means you need to access the contents of Instiki.app to make Dr. Drang&#8217;s modifications. The file bluecloth_tweaked.rb can be found in the following directory:</p>

<pre><code>/Applications/Instiki.app/Contents/Resources/rb_src/lib
</code></pre>

<p>Open that file in your favorite text editor and add</p>

<pre><code>require 'rubypants'
</code></pre>

<p>near the top of the file with the other require lines. Towards the bottom of the to_html method add either:</p>

<pre><code>text = RubyPants.new( text, 1).to_html()   
</code></pre>

<p>or:</p>

<pre><code>text = RubyPants.new( text ).to_html()   
</code></pre>

<p>The former will give you em dashes with two hyphens. The latter will give you em dashes with three hyphens. I prefer the latter convention to the former and not just because it is the TeX convention. On the latter convention two hyphens gives you en dashes, whereas the former convention cannot represent these. And since hyphens, en dashes, and em dashes are progressively longer, it makes sense that they be represented by one, two, and three consecutive hypens respectively</p>

<p>One more modification is necessary. You need to install RubyPants in the the same directory as bluecloth_tweaked.rb. RubyPants is the Ruby implementation of SmartyPants. It can be downloaded <a href="http://chneukirchen.org/blog/static/projects/rubypants.html">here</a>. Untar the file by double clicking it, and move the file rubypants.rb to:</p>

<pre><code>/Applications/Instiki.app/Contents/Resources/rb_src/lib
</code></pre>

<p>Restart Instiki.app and now all your notes will be typographically correct. Thanks Dr. Drang!</p>
]]></content:encoded>
			<wfw:commentRss>http://markelikalderon.com/2006/10/26/instiki-and-smartypants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
