Project

unf_ext

10.65
Low commit activity in last 3 years
A long-lived project that still receives updates
Unicode Normalization Form support library for CRuby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2
>= 0.9.2.2
> 2.4.2
 Project Readme

ruby-unf_ext

Synopsis

  • Unicode Normalization Form support library for CRuby

Description

  • Normalizes UTF-8 strings into and from NFC, NFD, NFKC or NFKD

      # For bulk conversion
      normalizer = UNF::Normalizer.new
      a_bunch_of_strings.map! { |string|
        normalizer.normalize(string, :nfc) #=> string in NFC
      }
    
  • Compliant with Unicode 9.0

Requirement

  • Ruby 1.8.7+, 1.9.2+

  • C++ compiler and libstdc++

Installation

gem install unf_ext

Or:

ruby extconf.rb && make && make install

Development Resources

License

Copyright (c) 2010-2017 Takeru Ohta Copyright (c) 2011-2018 Akinori MUSHA

Licensed under the MIT license. See LICENSE for details.