Forum: Ruby UnicodeUtils 0.5.0 - case conversion, normalization and more

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
40613e55d7082e5f08429dfb50d0680e?d=identicon&s=25 Stefan Lang (Guest)
on 2008-12-07 20:46
(Received via mailing list)
UnicodeUtils is a pure Ruby library that implements
Unicode algorithms for Ruby 1.9.

Install with RubyGems:

  $ gem install unicode_utils

Example code:

  require "unicode_utils"

  UnicodeUtils.upcase("i", :tr) => "Ä°"

  UnicodeUtils.nfkc("fi") => "fi"

Online documentation: http://unicode-utils.rubyforge.org
Source: http://github.com/lang/unicode_utils

New since the 0.4.0 release:

 * The name method was renamed to char_name because it
   conflicted with Module#name.

 * Case-folding

 * A grep method to search through the Unicode character
   database and "U" as a shortcut for use in irb:

  $ irb -r unicode_utils/u
  irb(main):001:0> U.grep /angstrom/
  => [#<U+212B "â„«" ANGSTROM SIGN utf8:e2,84,ab>]
C215c6ac79d6bc891dd6a2f4f74aff71?d=identicon&s=25 Ollivier Robert (Guest)
on 2008-12-10 12:10
(Received via mailing list)
In article
<e2c70a920812071145m4c5b2e47k287adfb047e3bf38@mail.gmail.com>,
Stefan Lang  <perfectly.normal.hacker@gmail.com> wrote:
>VW5pY29kZVV0aWxzIGlzIGEgcHVyZSBSdWJ5IGxpYnJhcnkgdGhhdCBpbXBsZW1lbnRzClVuaWNv

I do not doubt it is full of very interesting information but I'd love
to
it... Base64 encoding for news articles is not nice, not everybody use a
web
browser to read/post articles, thanks.
This topic is locked and can not be replied to.