/[webpac]/branches/drustvene/my_unac_string.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/drustvene/my_unac_string.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 335 by dpavlin, Wed Jun 2 16:13:57 2004 UTC revision 633 by dpavlin, Sun Jan 16 18:57:15 2005 UTC
# Line 4  Line 4 
4    
5  use Text::Unaccent 1.02;        # 1.01 won't compile on my platform,  use Text::Unaccent 1.02;        # 1.01 won't compile on my platform,
6    
7  sub my_unac_string($$) {  sub my_unac_string {
8          my $charset = shift || return;          my $charset = shift || return;
9          my $string = shift || return;          my $string = shift || return;
10          $string = unac_string($charset,$string);          $string = unac_string($charset,$string);
11          $string =~ tr/ðÐ/dD/;          $string =~ tr/ðÐ/dD/;
12            $string =~ s#&(\w)(acute|cedil|circ|grave|ring|slash|tilde|uml);#$1#gi;
13          return $string;          return $string;
14  }  }
15    

Legend:
Removed from v.335  
changed lines
  Added in v.633

  ViewVC Help
Powered by ViewVC 1.1.26