Changeset 3540 for trunk/gsdl/perllib/plugins/PSPlug.pm
- Timestamp:
- 2002-11-18T17:43:56+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/PSPlug.pm
r2979 r3540 24 24 ########################################################################### 25 25 26 # 12/05/02 Added usage datastructure - John Thompson 27 26 28 package PSPlug; 27 29 … … 33 35 } 34 36 37 my $arguments = [ { 'name' => "process_exp", 38 'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).", 39 'type' => "string", 40 'deft' => q^(?i)\.ps$^, 41 'reqd' => "no" }, 42 { 'name' => "block_exp", 43 'desc' => "Files matching this regular expression will be blocked from being passed to any later plugins in the list. This has no real effect other than to prevent lots of warning messages about input files you don't care about. Each plugin might have a default block_exp. e.g. by default HTMLPlug blocks any files with .gif, .jpg, .jpeg, .png or .css file extensions.", 44 'type' => 'string', 45 'deft' => q^(?i)\.(eps)$^ } 46 ]; 47 48 my $options = { 'name' => "PSPlug", 49 'desc' => "This might look VERY similar to the PDF plugin.", 50 'inherits' => "yes", 51 'args' => $arguments }; 52 35 53 sub new { 36 54 my $class = shift (@_); … … 39 57 40 58 my $self = new ConvertToPlug ($class, "-convert_to", "text", @_ , "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?'); 59 60 # 14-05-02 To allow for proper inheritance of arguments - John Thompson 61 my $option_list = $self->{'option_list'}; 62 push( @{$option_list}, $options ); 41 63 42 64 if (!parsargv::parse(\@_,
Note:
See TracChangeset
for help on using the changeset viewer.