Changeset 3410 for trunk/gsdl/bin
- Timestamp:
- 2002-08-29T15:53:15+12:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/pdftohtml.pl
r2976 r3410 75 75 my $input_filename = $ARGV[0]; 76 76 my $output_filestem = $ARGV[1]; 77 $output_filestem =~ s/\.html$// ; # pdftohtml adds this suffix77 $output_filestem =~ s/\.html$//i; # pdftohtml adds this suffix 78 78 79 79 my @dir = split (/(\/|\\)/, $input_filename); 80 pop(@dir); 80 my $input_basename = pop(@dir); 81 $input_basename =~ s/\.pdf//i; 81 82 my $dir = join ("", @dir); 82 83 … … 144 145 } 145 146 147 # relative hrefs to own document... 148 $line =~ s@href=\"$input_basename\.html\#@href=\"\#@go; 146 149 # escape underscores, but not if they're inside tags (eg img/href names) 147 150 my $inatag = 0; # allow multi-line tags
Note:
See TracChangeset
for help on using the changeset viewer.