Changeset 1405


Ignore:
Timestamp:
2000-08-16T11:47:48+12:00 (24 years ago)
Author:
say1
Message:

fixed acronym bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/acronym.pm

    r1404 r1405  
    144144    print STDERR "evaluated file $acronym_options_file...\n";
    145145    }
    146    
    147    
     146
    148147    $max_offset = $local_max_offset;
    149148    $upper_case = $local_upper_case;
     
    156155    @stop_words = @local_stop_words;
    157156   
    158 $local_acronym_accumulate_file = $local_acronym_accumulate_file;
    159    
     157    $local_acronym_accumulate_file = $local_acronym_accumulate_file;
     158   
     159
    160160    &read_all_acronyms_from_file();
    161161#    rename $acronym_file, $acronym_file . "." . int(rand (2<<7)).
     
    568568    my $processed_text =  shift @_;
    569569    $$processed_text =~ s/<[^>]*>/ /g;
    570     $$processed_text =~ s/[^\w]/ /g;
     570    $$processed_text =~ s/\W/ /g;
    571571    $$processed_text =~ s/[0-9_]/ /g;
    572572    $$processed_text =~ s/\s+/ /g;
    573573    $$processed_text =~ s/(\n|\>)References.*/ /i;
    574574    $$processed_text =~ s/(\n|\>)Bibliography.*/ /i;
     575    $$processed_text =~ s/(\n|\>)(Cited Works?).*/ /i;
     576    $$processed_text =~ s/(\n|\>)(Works? Cited).*/ /i;
    575577
    576578    #clear some global variables
Note: See TracChangeset for help on using the changeset viewer.