=head1 NAME Char::Normalize::FullwidthHalfwidth - Fullwidth/halfwidth character normalization =head1 SYNOPSIS use Char::Normalize::FullwidthHalfwidth qw/normalize_width/; $s = <>; normalize_width (\$s); print $s; =head1 DESCRIPTION The C module provides a function that normalizes fullwidth/halfwidth compatibility characters into their canonical representations. =head1 FUNCTION This module provides a function, C. It can be imported to a package by standard C method, as: use Char::Normalize::FullwidthHalfwidth qw/normalize_width/; Note that the C statement does not export anything unless the function name was explicitly specified. Alternatively, you can invoke the function in its fully qualified form as: require Char::Normalize::FullwidthHalfwidth; Char::Normalize::FullwidthHalfwidth::normalize_width (\$scalarref); =over 4 =item C)> Normalize the fullwidth/halfwidth characters in the scalar referenced by the argument into their preferable form. The argument must be a scalar reference. The scalar is treated as a character string (possibly with the utf8 flag set), not a byte string. The function returns the scalar reference. The function performs the following conversions: =over 4 =item A character C C (so-called fullwidth space) Replaced by a C C (so-called halfwidth space) character. =item Characters in the range C..C (so-called fullwidth ASCII characters) Replaced by a character in the range C..C (so-called halfwidth ASCII characters). =item Characters in the range C..C (halfwidth Katakana) Replaced by a corresponding so-called fullwidth Katakana (or ideographic punctuation). Note that C C and C C are replaced by C C and C C respectively, not their spacing variants. =item Characters in the range C..C (fullwidth symbols) Replaced by a corresponding canonical character. =back =back =head1 BUGS Not all compatibility characters in the fullwidth and halfwidth block of the Unicode Standard are currently supported - especially, halfwidth Hangul syllables are not converted to their fullwidth equivalents. A future version of this module is expected to address this issue by extending the conversion table. =head1 AUTHOR Wakaba . =head1 HISTORY This module was originally developed as part of SuikaWiki L. =head1 LICENSE Copyright 2008 Wakaba This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut ## $Date: 2008/11/24 04:25:10 $