/[webpac]/trunk2/all2all.pl
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 /trunk2/all2all.pl

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

revision 586 by dpavlin, Mon Nov 1 22:15:41 2004 UTC revision 587 by dpavlin, Sat Nov 6 21:00:14 2004 UTC
# Line 178  while (my $rec = $webpac->fetch_rec) { Line 178  while (my $rec = $webpac->fetch_rec) {
178    
179                  # strip all non word characters from beginning or end                  # strip all non word characters from beginning or end
180                  # of word                  # of word
181                  my $words = join(" ",@{$ds->{'swish'}});                  my $words = unac(join(" ",@{$ds->{'swish'}}));
182                  $words =~ s/^\W+//;                  $words =~ s/^\W+//;
183                  $words =~ s/\W*\s+\W*/ /g;                  $words =~ s/\W*\s+\W*/ /g;
184                  $words =~ s/\W+$//;                  $words =~ s/\W+$//;
# Line 195  while (my $rec = $webpac->fetch_rec) { Line 195  while (my $rec = $webpac->fetch_rec) {
195                          #path => $f,                          #path => $f,
196                          path => $webpac->mfn,                          path => $webpac->mfn,
197                          headline => $h,                          headline => $h,
198                          words => unac($words),                          words => $words,
199                  );                  );
200          }          }
201    

Legend:
Removed from v.586  
changed lines
  Added in v.587

  ViewVC Help
Powered by ViewVC 1.1.26