Changeset 10536
- Timestamp:
- 2005-08-19T12:05:00+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/PSPlug.pm
r10425 r10536 38 38 } 39 39 40 my $convert_to_list = 41 [ { 'name' => "auto", 42 'desc' => "{ConvertToPlug.convert_to.auto}" }, 43 { 'name' => "text", 44 'desc' => "{ConvertToPlug.convert_to.text}" }, 45 { 'name' => "pagedimg_jpg", 46 'desc' => "{ConvertToPlug.convert_to.pagedimg_jpg}" }, 47 { 'name' => "pagedimg_gif", 48 'desc' => "{ConvertToPlug.convert_to.pagedimg_gif}" }, 49 { 'name' => "pagedimg_png", 50 'desc' => "{ConvertToPlug.convert_to.pagedimg_png}" } 51 ]; 52 40 53 my $arguments = 41 [ { 'name' => "process_exp", 54 [ { 'name' => "convert_to", 55 'desc' => "{ConvertToPlug.convert_to}", 56 'type' => "enum", 57 'reqd' => "yes", 58 'list' => $convert_to_list, 59 'deft' => "html" }, 60 { 'name' => "process_exp", 42 61 'desc' => "{BasPlug.process_exp}", 43 62 'type' => "regexp", … … 69 88 push(@$pluginlist, $class); 70 89 71 push(@$inputargs,"-convert_to");72 push(@$inputargs,"text");90 #push(@$inputargs,"-convert_to"); 91 #push(@$inputargs,"text"); 73 92 push(@$inputargs,"-title_sub"); 74 93 push(@$inputargs,'^(Page\s+\d+)?(\s*1\s+)?'); … … 80 99 81 100 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; 101 82 102 if (!defined $secondary_plugin_options->{'TEXTPlug'}) { 83 103 $secondary_plugin_options->{'TEXTPlug'} = []; … … 85 105 86 106 my $text_options = $secondary_plugin_options->{'TEXTPlug'}; 87 107 108 if (defined $self->{'convert_to'} && $self->{'convert_to'} =~ /pagedimg.*/i) { 109 if (!defined $secondary_plugin_options->{'PagedImgPlug'}){ 110 $secondary_plugin_options->{'PagedImgPlug'} = []; 111 my $pagedimg_options = $secondary_plugin_options->{'PagedImgPlug'}; 112 push(@$pagedimg_options, "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?'); 113 } 114 } 88 115 # following title_sub removes "Page 1" added by ps2ascii, and a leading 89 116 # "1", which is often the page number at the top of the page. Bad Luck
Note:
See TracChangeset
for help on using the changeset viewer.