Ignore:
Timestamp:
2006-01-27T00:21:47+13:00 (18 years ago)
Author:
davidb
Message:

Introduction of -associate_tail_re option to BasPlug. This is a generalisation
of the associate_ext (in fact associate_ext is now mapped into the equivalent
assoicate_tail_re expression). To work properly, plugins that use the
secondary plugin mechanism (such as PDFPlug) need to duplicate the
associate_tail_re value secondary plug ins too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/PDFPlug.pm

    r10889 r11122  
    146146    my $html_options = $secondary_plugin_options->{'HTMLPlug'};
    147147    my $text_options = $secondary_plugin_options->{'TEXTPlug'};
     148    my $pagedimg_options = $secondary_plugin_options->{'PagedImgPlug'};
    148149   
    149150    if ($self->{'input_encoding'} eq "auto") {
     
    179180    push(@$html_options , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
    180181    push(@$text_options , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
     182
     183    my $associate_tail_re = $self->{'associate_tail_re'};
     184    if ((defined $associate_tail_re) && ($associate_tail_re ne "")) {
     185    push(@$html_options, "-associate_tail_re", $associate_tail_re);
     186    push(@$text_options, "-associate_tail_re", $associate_tail_re);
     187    push(@$pagedimg_options, "-associate_tail_re", $associate_tail_re);
     188    }
     189
    181190 
    182191    $self = bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.