Unicode::Normalize::Mac - Unicode normalization same way used in OSX file system
use Unicode::Normalize::Mac qw/NFC_mac/; my $text = NFC_mac("\x{FA1B}\x{2F872}\x{305F}\x{3099}"); # => "\x{FA1B}\x{2F872}\x{3060}" # Note: "\x{798F}\x{5BFF}\x{3060}" standard NFC
This module provides Unicode normalization functions same as Mac OSX file system. Specifically, the following ranges are not decomposed.
U+2000-U+2FFF U+F900-U+FAFF U+2F800-U+2FAFF
http://developer.apple.com/library/mac/#qa/qa2001/qa1173.html
my $text = Unicode::Normalize::Mac::NFC($text);
Same as Unicode::Normalize::NFC() / NFD(), except some characters.
None by default.
use Unicode::Normalize::Mac qw/NFC_mac/; my $text = NFC_mac($text);
These exportable functions are alias to Unicode::Normalize::Mac::NFC() / NFD().
Unicode::Normalize
Encode::UTF8Mac - provides "utf-8-mac" encoding using this module.
Naoki Tomita <tomita@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Encode::UTF8Mac, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::UTF8Mac
CPAN shell
perl -MCPAN -e shell install Encode::UTF8Mac
For more information on module installation, please visit the detailed CPAN module installation guide.