Changeset 1405
- Timestamp:
- 2000-08-16T11:47:48+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/acronym.pm
r1404 r1405 144 144 print STDERR "evaluated file $acronym_options_file...\n"; 145 145 } 146 147 146 148 147 $max_offset = $local_max_offset; 149 148 $upper_case = $local_upper_case; … … 156 155 @stop_words = @local_stop_words; 157 156 158 $local_acronym_accumulate_file = $local_acronym_accumulate_file; 159 157 $local_acronym_accumulate_file = $local_acronym_accumulate_file; 158 159 160 160 &read_all_acronyms_from_file(); 161 161 # rename $acronym_file, $acronym_file . "." . int(rand (2<<7)). … … 568 568 my $processed_text = shift @_; 569 569 $$processed_text =~ s/<[^>]*>/ /g; 570 $$processed_text =~ s/ [^\w]/ /g;570 $$processed_text =~ s/\W/ /g; 571 571 $$processed_text =~ s/[0-9_]/ /g; 572 572 $$processed_text =~ s/\s+/ /g; 573 573 $$processed_text =~ s/(\n|\>)References.*/ /i; 574 574 $$processed_text =~ s/(\n|\>)Bibliography.*/ /i; 575 $$processed_text =~ s/(\n|\>)(Cited Works?).*/ /i; 576 $$processed_text =~ s/(\n|\>)(Works? Cited).*/ /i; 575 577 576 578 #clear some global variables
Note:
See TracChangeset
for help on using the changeset viewer.