| Revision 337 (by dpavlin, 2004/06/10 19:22:40) |
|---|
# Alternative implementation for unac_string which supports charasters in
# Croatian language which isn't really accented (ð) but needs to be coverted
# to unaccented equivalent (d)
use Text::Unaccent 1.02; # 1.01 won't compile on my platform,
sub my_unac_string($$) {
my $charset = shift || return;
my $string = shift || return;
$string = unac_string($charset,$string);
$string =~ tr/ðÐ/dD/;
return $string;
}
1;