Charles Colbourn > Text-StripAccents-0.11 > Text::StripAccents

Download:
Text-StripAccents/Text-StripAccents-0.11.tar.gz

Dependencies

Annotate this POD

Related Modules

Unicode::Map8
Convert::Translit
more...
By perlmonks.org

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.11   Source  

NAME ^

 Text::StripAccents - removes accented & special characters from strings

SYNOPSIS ^

 use Text::StripAccents;

 my $Stripaccent = Text::StripAccents->new();

 my $convertedString = $StripAccents->strip($unconvertedString);

OR

 use Text::StripAccents;

 stripaccents($string); 

DESCRIPTION ^

This simple module takes accented characters and replaces them with their anglicised ASCII counterparts, e.g. Ü becomes U. It currently ONLY supports Latin1. If there are any characters I've missed out that you think should be included, please mail me and I'll add them in.

This is a pure perl module with no prerequisites.

PREREQS ^

None.

SEE ALSO ^

Text::Unaccent is a much more advanced utility to do the same job, but with a C dependency.

CHANGES ^

0.11 - bugfix to clarify the documentation, as per Dobrica Pavlinusic's feedback.

LICENSE ^

Copyright 2005 by Charles Colbourn, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Charles Colbourn - charlesc@g0n.net

(Character mapping hash supplied by Nigel Currie).

syntax highlighting: