Unicode::X
A collection of specific micro libraries providing data and algorithms that might be handy when working with Unicode characters in Ruby:
Library | Info |
---|---|
unicode-blocks | Blocks |
unicode-categories | General Categories |
unicode-confusable | Confusable detection |
unicode-emoji | Emoji data and regex |
unicode-display_width | Monospace character width |
unicode-name | Unicode codepoint name/alias/label |
unicode_normalize | Unicode normalization (from stdlib) |
unicode-numeric_value | Convert a Unicode character into its numeric value |
unicode-scripts | Scripts and Script_Extensions |
unicode-sequence_name | Codepoint sequence names |
unicode-types | Basic codepoint types |
Setup
Add to Gemfile:
gem 'unicode-x'
All gems can also be installed standalone, if you only need certain features. The Unicode index data in most of the gems is generated using unicoder.