/[webpac]/trunk/filter/croascii.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 /trunk/filter/croascii.pm

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

revision 130 by dpavlin, Wed Oct 8 21:26:13 2003 UTC revision 143 by dpavlin, Thu Nov 6 21:35:17 2003 UTC
# Line 1  Line 1 
1    # CROASCII (YUS|HRN) B1.002:1982
2    # conversion to ISO-8859-2
3    
4  sub croascii {  sub croascii {
5          my $out = "";          my $out = "";
6          foreach (@_) {          foreach (@_) {
7                  tr/~^}]{[|\`@/ƹо/;  #               tr/^~]}\|[{@`/𩹮/;      # B1.002:1982
8                    tr/^\~]}\|[{@\`/й/;    # Crolist croascii
9                    # Crolist alternative encoding
10                    s/C//g;
11                    s/c//g;
12                    s/C//g;
13                    s/c//g;
14                    #s/??//g;
15                    s///g;
16                    s/S//g;
17                    s/s//g;
18                    s/Z//g;
19                    s/z//g;
20                  $out .= $_;                  $out .= $_;
21          }          }
22          return $out;          return $out;

Legend:
Removed from v.130  
changed lines
  Added in v.143

  ViewVC Help
Powered by ViewVC 1.1.26