Changeset 4744 for trunk/gsdl/perllib/plugins/TEXTPlug.pm
- Timestamp:
- 2003-06-20T14:22:34+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/TEXTPlug.pm
r3932 r4744 39 39 } 40 40 41 my $arguments = [ { 'name' => "process_exp", 42 '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).", 43 'type' => "string", 44 'deft' => q^(?i)\.te?xt$^, 45 'reqd' => "no" } , 46 { 'name' => "title_sub", 47 'desc' => "Substitution expression to modify string stored as Title. Used by, for example, PSPlug to remove \"Page 1\" etc from text used as the title.", 48 'type' => "string", 49 'reqd' => "no" }]; 41 my $arguments = 42 [ { 'name' => "process_exp", 43 'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. For example, using '(?i).html?\$' matches all documents ending in .htm or .html (case-insensitive).", 44 'type' => "string", 45 'deft' => &get_default_process_exp(), 46 'reqd' => "no" } , 47 { 'name' => "title_sub", 48 'desc' => "Substitution expression to modify string stored as Title. Used by, for example, PSPlug to remove \"Page 1\" etc from text used as the title.", 49 'type' => "string", 50 'deft' => "", 51 'reqd' => "no" } ]; 50 52 51 53 my $options = { 'name' => "TEXTPlug", 52 53 54 54 'desc' => "Creates simple single-level document. Adds Title metadata of first line of text (up to 100 characters long).", 55 'inherits' => "yes", 56 'args' => $arguments }; 55 57 56 58 sub print_usage { … … 68 70 my $self = new BasPlug ($class, @_); 69 71 70 71 72 72 # 14-05-02 To allow for proper inheritance of arguments - John Thompson 73 my $option_list = $self->{'option_list'}; 74 push( @{$option_list}, $options ); 73 75 74 76 if (!parsargv::parse(\@_,
Note:
See TracChangeset
for help on using the changeset viewer.