PerlIO::normalize - PerlIO layer to normalize unicode strings on input and output
version 0.001
# also enables UTF-8 decoding/encoding open my $fh, '<:encoding(UTF-8):normalize(NFD)', $file or die "Could not open $file for reading: $!"; binmode STDOUT, ':normalize(NFC):encoding(UTF-8)';
This PerlIO layer uses Unicode::Normalize to normalize the text read from or written to a file-handle according to Unicode rules. It supports the following normalization forms: NFC, NFD, NFKC, NFKD, FCC, and FCD. It expects to recieve already-decoded unicode characters, so you should make sure to put the correct encoding layer ahead of it if reading, and behind it if writing, as per the SYNOPSIS.
NFC
NFD
NFKC
NFKD
FCC
FCD
PerlIO
PerlIO::encoding
PerlIO::utf8_strict
Unicode::Normalize
Andreas Guldstrand <andreas.guldstrand@gmail.com>
This software is Copyright (c) 2019 by Andreas Guldstrand.
This is free software, licensed under:
The MIT (X11) License
To install PerlIO::normalize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlIO::normalize
CPAN shell
perl -MCPAN -e shell install PerlIO::normalize
For more information on module installation, please visit the detailed CPAN module installation guide.