It just occurred to me that if we are encoding our HTML pages in UTF-8 to handle multiple languages and using web fonts with multilanguage support, shouldn't we be able to directly insert the simple apostrophe, ellipsis, and em-dash? RubyPants-Unicode is a Ruby port of the smart-quotes library SmartyPants that outputs unicode characters (UTF-8) instead of HTML entities. The original "SmartyPants" is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into "smart" typographic punctuation HTML entities.

installgem install rubypants-unicode

Christian Neukirchen, Chris Chapman

5,716 total downloads 4,283 for this version


gem 'rubypants-unicode', '~> 0.2.3'
  1. 0.2.3 August 13, 2012 (10.5 KB)
  2. 0.2.1 August 13, 2012 (11 KB)
  3. 0.2.0 July 30, 2012 (11 KB)
Show all versions (4 total)