NAME

Unicode::Normalize::Mac - Unicode normalization same way used in OSX file system

SYNOPSIS

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

DESCRIPTION

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

FUNCTIONS

NFC(), NFD()
my $text = Unicode::Normalize::Mac::NFC($text);

Same as Unicode::Normalize::NFC() / NFD(), except some characters.

EXPORTS

None by default.

NFC_mac(), NFD_mac()
use Unicode::Normalize::Mac qw/NFC_mac/;
my $text = NFC_mac($text);

These exportable functions are alias to Unicode::Normalize::Mac::NFC() / NFD().

SEE ALSO

Unicode::Normalize

Encode::UTF8Mac - provides "utf-8-mac" encoding using this module.

AUTHOR

Naoki Tomita <tomita@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.