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/WordPlug.pm

    r10769 r11122  
    152152    my $html_options = $secondary_plugin_options->{'HTMLPlug'};
    153153    my $text_options = $secondary_plugin_options->{'TextPlug'};
    154    
     154    my $structhtml_options = $secondary_plugin_options->{'StructuredHTMLPlug'};   
    155155    # wvWare will always produce html files encoded as utf-8, so make sure the secondary HTMLPlug knows this
    156156    push(@$html_options,"-input_encoding", "utf8");
     157
    157158    if ($self->{'input_encoding'} eq "auto") {
    158159    $self->{'input_encoding'} = "utf8";
     
    167168    push(@$html_options,"-metadata_fields","Title,GENERATOR,date,author<Creator>");
    168169    push(@$html_options , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
     170
     171    my $associate_tail_re = $self->{'associate_tail_re'};
     172    if ((defined $associate_tail_re) && ($associate_tail_re ne "")) {
     173    push(@$html_options, "-associate_tail_re", $associate_tail_re);
     174    push(@$text_options, "-associate_tail_re", $associate_tail_re);
     175    push(@$structhtml_options, "-associate_tail_re", $associate_tail_re);
     176    }
    169177       
    170178    $self = bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.