View Full Version : Smart Quotes


Toxaris
05-31-2010, 05:31 AM
Anyone familiar with Textile? It is a tool for textual format to XHMTL. It also convert quotes to smart quotes.

Two links which have an implementation are:

Textism (http://textism.com/tools/textile/index.php)
Textile (http://textile.thresholdstate.com/)


I find the first better, special for single quotes. I am thinking of a tool which converts XHTML to Textile (http://en.wikipedia.org/wiki/Textile_(markup_language)) format and then use it to convert backup to XHTML.

Now, if only I had time... :rofl:

Apparently there are Ruby scripts for it available. Redcloth and Clothred. I also find a site (http://3v1n0.tuxfamily.org/scripts/detextile/HTML-to-Textile.php) to convert HTML to Textile format.

Jellby
05-31-2010, 08:29 AM
I see 'em failin' too easily ;)

Incorrectly oriented curly quotes are one of my pet peeves, and I always have to check them one by one (except when a single quote appears in the middle of a word, when I can safely assume it's an apostrophe).

pepak
05-31-2010, 10:32 AM
In this post (http://www.mobileread.com/forums/showpost.php?p=464317&postcount=3) I describe a regular expression which, if a fairly low prerequisites are satisfied, yields quite good results with "smartification". Note: The regexp may fail even when the prerequisites are satisfied, but those cases are quite unusual.