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

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

revision 56 by dpavlin, Mon Jun 23 20:20:32 2003 UTC revision 57 by dpavlin, Fri Jul 4 15:05:23 2003 UTC
# Line 41  sub parse_isis_format { Line 41  sub parse_isis_format {
41          while ($format) {          while ($format) {
42  #print STDERR "\n#### $format";  #print STDERR "\n#### $format";
43                  if ($format =~ s/^(\d\d\d)(\w?)//) {                  if ($format =~ s/^(\d\d\d)(\w?)//) {
44                          my $isis_tmp = isis_sf($row,$1,$2,$i);                          my $tmp = isis_sf($row,$1,$2,$i);
45                          if ($isis_tmp) {                          if ($tmp) {
46                                  $isis_tmp = $codepage->convert($isis_tmp) if ($codepage);                                  if ($codepage) {
47                                  $display .= $prefix . $isis_tmp;                                          $tmp = $codepage->convert($tmp) || warn "row: ",$row->{mfn},", $1$2 '$tmp' can't convert";
48                                  $swish .= $isis_tmp." ";                                  }
49  #print STDERR " == $isis_tmp";                                  $display .= $prefix . $tmp;
50                                    $swish .= $tmp." ";
51    #print STDERR " == $tmp";
52                          }                          }
53                          $prefix = "";                          $prefix = "";
54                  # this might be our local scpeciality -- fields 10 and 11                  # this might be our local scpeciality -- fields 10 and 11
55                  # (as opposed to 010 and 011) so they are strictly listed                  # (as opposed to 010 and 011) so they are strictly listed
56                  # here                  # here
57                  } elsif ($format =~ s/^(1[01])//) {                  } elsif ($format =~ s/^(1[01])//) {
58                          my $isis_tmp = isis_sf($row,$1,undef,$i);                          my $tmp = isis_sf($row,$1,undef,$i);
59                          if ($isis_tmp) {                          if ($tmp) {
60                                  $isis_tmp = $codepage->convert($isis_tmp) if ($codepage);                                  if ($codepage) {
61                                  $display .= $prefix . $isis_tmp;                                          $tmp = $codepage->convert($tmp) || warn "row: ",$row->{mfn},", $1$2 '$tmp' can't convert";
62                                  $swish .= $isis_tmp." ";                                  }
63                                    $display .= $prefix . $tmp;
64                                    $swish .= $tmp." ";
65                          }                          }
66                          $prefix = "";                          $prefix = "";
67                  } elsif ($format =~ s/^mfn//i) {                  } elsif ($format =~ s/^mfn//i) {
# Line 106  sub parse_excel_format { Line 110  sub parse_excel_format {
110  #print STDERR "--$1-> $format -[",length($format),"] ";  #print STDERR "--$1-> $format -[",length($format),"] ";
111                          if ($row->{$1}) {                          if ($row->{$1}) {
112                                  my $tmp = $row->{$1};                                  my $tmp = $row->{$1};
113                                  $tmp = $codepage->convert($tmp) if ($codepage);                                  if ($codepage) {
114                                            $tmp = $codepage->convert($tmp) || warn "excel: $1 '$tmp' can't convert";
115                                    }
116                                  $display .= $prefix . $tmp;                                  $display .= $prefix . $tmp;
117                                  $swish .= $tmp." ";                                  $swish .= $tmp." ";
118  #print STDERR " == $tmp";  #print STDERR " == $tmp";

Legend:
Removed from v.56  
changed lines
  Added in v.57

  ViewVC Help
Powered by ViewVC 1.1.26