UnicodeUtils is a pure Ruby library that provides additional
Unicode string manipulation functions for Ruby 1.9.
Install with RubyGems:
$ gem install unicode_utils
Online documentation: http://unicode-utils.rubyforge.org/
RubyForge project: http://rubyforge.org/projects/unicode-utils/
Source: http://github.com/lang/unicode_utils
Example code:
require "unicode_utils"
UnicodeUtils.name("æ") => "LATIN SMALL LETTER AE"
# Ruby 1.9 currently doesn't provide Unicode-aware case conversion
UnicodeUtils.upcase("weiß") => "WEISS"
UnicodeUtils.upcase("i", :tr) => "İ"
UnicodeUtils.downcase("Ümit") => "ümit"
New since the 0.1.0 release:
* upcase/downcase handles language and context specific
rules now and is a full implementation of Unicode case
conversion.
* A couple of predicate functions like lowercase_char?,
uppercase_char?, ...
···
--
Stefan Lang