Changeset 10425
- Timestamp:
- 2005-08-05T15:13:10+12:00 (19 years ago)
- Location:
- trunk/gsdl/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/PSPlug.pm
r10274 r10425 73 73 push(@$inputargs,"-title_sub"); 74 74 push(@$inputargs,'^(Page\s+\d+)?(\s*1\s+)?'); 75 75 76 76 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 77 77 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 78 78 79 79 my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs); 80 81 80 82 81 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; … … 92 91 #$self->{'input_encoding'} = "utf8"; 93 92 #$self->{'extract_language'} = 1; 94 #push(@$text_options, "-input_encoding", "utf8");95 #push(@$text_options,"-extract_language");93 push(@$text_options, "-input_encoding", "utf8"); 94 push(@$text_options,"-extract_language"); 96 95 push(@$text_options , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?'); 97 96 98 97 $self = bless $self, $class; 99 98 100 $self->load_secondary_plugins($class,$secondary_plugin_options );99 $self->load_secondary_plugins($class,$secondary_plugin_options, $hashArgOptLists); 101 100 102 101 return $self; … … 124 123 125 124 my ($language, $encoding) = $self->textcat_get_language_encoding ($conv_filename); 126 127 # print STDERR "*** Plug encoding = $encoding\n";128 125 129 126 # read in file ($text will be in utf8) … … 134 131 unicode::ensure_utf8(\$text); 135 132 136 #print STDERR "*** Text =$text\n";137 133 # Write it out again! 138 134 $self->utf8_write_file (\$text, $conv_filename); -
trunk/gsdl/perllib/plugins/RTFPlug.pm
r10272 r10425 57 57 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 58 58 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 59 60 my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs); 59 61 60 my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs); 62 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; 63 if (!defined $secondary_plugin_options->{'TEXTPlug'}) { 64 $secondary_plugin_options->{'TEXTPlug'} = []; 65 } 66 if (!defined $secondary_plugin_options->{'HTMLPlug'}) { 67 $secondary_plugin_options->{'HTMLPlug'} = []; 68 } 69 my $text_options = $secondary_plugin_options->{'TEXTPlug'}; 70 my $html_options = $secondary_plugin_options->{'HTMLPlug'}; 71 72 #$self->{'input_encoding'} = "utf8"; 73 #$self->{'extract_language'} = 1; 74 push(@$text_options, "-input_encoding", "utf8"); 75 push(@$text_options,"-extract_language"); 76 61 77 62 78 $self = bless $self, $class; 63 79 64 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; 65 $self->load_secondary_plugins($class,$secondary_plugin_options); 80 $self->load_secondary_plugins($class,$secondary_plugin_options, $hashArgOptLists); 66 81 67 82 return $self;
Note:
See TracChangeset
for help on using the changeset viewer.