Changeset 7353
- Timestamp:
- 2004-05-20T09:25:16+12:00 (20 years ago)
- Location:
- trunk/gsdl/perllib/plugins
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/ConvertToPlug.pm
r7243 r7353 73 73 'args' => $arguments }; 74 74 75 76 sub print_usage {77 my ($plugin_name) = @_;78 79 # for when this function is called directly by pluginfo.pl80 if (ref ($plugin_name)) {81 $plugin_name = ref ($plugin_name);82 }83 84 print STDERR "\n usage: plugin $plugin_name [options]\n\n";85 print STDERR " options:\n";86 print STDERR " -convert_to (html|text) plugin converts to TEXT or HTML\n";87 print STDERR " (default html)\n";88 print STDERR " -use_strings if set a simple strings function\n";89 print STDERR " will be called to extract text\n";90 print STDERR " if the conversion utility fails\n";91 }92 93 75 sub parse_args 94 76 { … … 110 92 print STDERR "\nIncorrect options passed to $plugin_name, "; 111 93 print STDERR "check your collect.cfg configuration file\n"; 112 &print_usage($plugin_name);94 $self->print_txt_usage(""); # Use default resource bundle 113 95 die "\n"; 114 96 } -
trunk/gsdl/perllib/plugins/ConvertToRogPlug.pm
r7243 r7353 41 41 'inherits' => "yes" }; 42 42 43 sub print_usage {44 my ($plugin_name) = @_;45 46 # for when this function is called directly by pluginfo.pl47 if (ref ($plugin_name)) {48 $plugin_name = ref ($plugin_name);49 }50 51 print STDERR "\n usage: plugin $plugin_name [options]\n\n";52 print STDERR " options:\n";53 print STDERR " [none at present]\n";54 }55 43 56 44 sub parse_args … … 67 55 print STDERR "\nIncorrect options passed to $plugin_name, "; 68 56 print STDERR "check your collect.cfg configuration file\n"; 69 &print_usage($plugin_name);57 $self->print_txt_usage(""); # Use default resource bundle 70 58 die "\n"; 71 59 } -
trunk/gsdl/perllib/plugins/ImagePlug.pm
r6408 r7353 80 80 81 81 82 # sub print_usage {83 # my ($plugin_name) = @_;84 85 # print STDERR "86 # usage: plugin ImagePlug [options]87 88 # -noscaleup Don't scale up small images when making thumbnails89 90 # -thumbnailsize n Make thumbnails of size nxn91 92 # -thumbnailtype s Make thumbnails in format 's'93 94 # -screenviewsize n If set, makes an image of size n for screen display95 # and sets Screen, ScreenSize, ScrrenWidth and Screeneight96 # metadata. By default it is not set.97 98 # -screenviewtype s If -screenviewsize is set, this sets the screen display99 # image type. Defaults to jpg.100 101 # -convertto s Convert main inage to (gif|png|jpg)102 103 # -minimumsize n Ignore images smaller than n bytes104 105 # "106 # }107 82 108 83 sub new { -
trunk/gsdl/perllib/plugins/MACROPlug.pm
r6408 r7353 47 47 'args' => $arguments }; 48 48 49 # sub print_usage {50 # print STDERR "\n usage: plugin MACROPlug [options]\n\n";51 # print STDERR " options:\n";52 # print STDERR " -title_sub\t Substitution expression to modify string stored as Title.\n";53 # print STDERR "\t\t Used by, for example, PSPlug to remove \"Page 1\" etc from\n";54 # print STDERR "\t\t text used as the title.\n";55 56 # print STDERR "\n";57 # }58 59 49 60 50 sub load_language_table -
trunk/gsdl/perllib/plugins/MARCPlug.pm
r6408 r7353 67 67 #use MARC::Batch; 68 68 69 # sub print_usage {70 # print STDERR "\n usage: plugin MARCPlug [options]\n\n";71 # print STDERR " options:\n";72 # print STDERR73 # " -metadata_mapping Name of file that includes mapping details from MARC74 # values to Greenstone metadata names. Defaults to75 # 'marctodc.txt' found in the site's etc directory.\n\n";76 # }77 69 78 70 sub new { -
trunk/gsdl/perllib/plugins/OAIPlug.pm
r6408 r7353 49 49 'inherits' => "yes", 50 50 'args' => $arguments }; 51 52 # sub print_usage {53 # print STDERR "\n usage: plugin OAIPlug [options]\n\n";54 # print STDERR " currently no options:\n";55 # }56 51 57 52 sub new { -
trunk/gsdl/perllib/plugins/PDFPlug.pm
r7287 r7353 122 122 } 123 123 124 125 # sub print_usage {126 # print STDERR "\n usage: plugin PDFPlug [options]\n\n";127 # print STDERR " options:\n";128 # print STDERR " -convert_to (html|text) Convert to TEXT or HTML (default html)\n";129 # print STDERR " -use_sections Create a separate section for each page\n";130 # print STDERR " of the PDF file.\n";131 # print STDERR " -noimages Don't attempt to extract images from PDF.\n";132 # print STDERR " -complex Create more complex output. With this option\n";133 # print STDERR " set the output html will look much more like\n";134 # print STDERR " the original PDF file. For this to function\n";135 # print STDERR " properly you Ghostscript installed (for *nix\n";136 # print STDERR " gs should be on your path while for windows\n";137 # print STDERR " you must have gswin32c.exe on your path).\n";138 # print STDERR " -nohidden Prevent pdftohtml from attempting to extract\n";139 # print STDERR " hidden text. This is only useful if the -complex\n";140 # print STDERR " option is also set.";141 # print STDERR " -zoom The factor by which to zoomthe PDF for output\n";142 # print STDERR " (this is only useful if -complex is set).\n\n";143 # }144 145 146 147 124 sub get_default_process_exp { 148 125 my $self = shift (@_); -
trunk/gsdl/perllib/plugins/PSPlug.pm
r6408 r7353 85 85 } 86 86 87 # sub print_usage {88 # print STDERR "\n usage: plugin PSPlug [options]\n\n";89 # print STDERR " options:\n";90 # print STDERR " -extract_date Extract date from PS header\n";91 # print STDERR " -extract_pages Extract pages from PS header\n";92 # print STDERR " -extract_title Extract title from PS header\n";93 # print STDERR "\n\nNote! This is a \"poor man's\" ps to text converter. If you are serious, consider\n";94 # print STDERR "using the PRESCRIPT package, which is available for download at\n http://www.nzdl.org/html/software.html\n\n";95 # }96 87 97 88 sub get_default_block_exp { -
trunk/gsdl/perllib/plugins/RecPlug.pm
r6408 r7353 123 123 'args' => $arguments }; 124 124 125 # sub print_usage {126 # my ($plugin_name) = @_;127 128 # print STDERR "129 # usage: plugin RecPlug [options]130 131 # -use_metadata_files Read metadata from metadata XML files.132 133 # "134 # }135 125 136 126 my ($self); -
trunk/gsdl/perllib/plugins/SRCPlug.pm
r6408 r7353 69 69 'args' => $arguments }; 70 70 71 # sub print_usage {72 # print STDERR "\n usage: plugin SRCPlug [options]\n";73 # print STDERR "Try to import C and C++ source code. Adds \"class\"";74 # print STDERR " metadata.\n\n";75 # print STDERR " options:\n";76 # print STDERR " -remove_prefix <pattern> Remove this leading pattern from the filename\n";77 # print STDERR " (eg -remove_prefix /tmp/XX/src/). The default is to\n";78 # print STDERR " remove the whole path from the filename.\n";79 # print STDERR "\n";80 # }81 71 82 72 sub new { -
trunk/gsdl/perllib/plugins/TEXTPlug.pm
r6408 r7353 57 57 'args' => $arguments }; 58 58 59 # sub print_usage {60 # print STDERR "\n usage: plugin TEXTPlug [options]\n\n";61 # print STDERR " options:\n";62 # print STDERR " -title_sub\t Substitution expression to modify string stored as Title.\n";63 # print STDERR "\t\t Used by, for example, PSPlug to remove \"Page 1\" etc from\n";64 # print STDERR "\t\t text used as the title.\n";65 66 # print STDERR "\n";67 # }68 59 69 60 sub new { -
trunk/gsdl/perllib/plugins/UnknownPlug.pm
r7304 r7353 82 82 'args' => $arguments }; 83 83 84 # sub print_usage {85 # print STDERR "\n usage: plugin UnknownPlug [options]\n\n";86 # print STDERR " options:\n";87 # print STDERR " -assoc_field\t Name of the metadata field that will hold\n";88 # print STDERR "\t\t the associated file's name.\n";89 # print STDERR "\n";90 # print STDERR " -file_type\t Mime type of the file (e.g. image/gif)\n";91 # print STDERR "\n";92 # }93 84 94 85 sub new { -
trunk/gsdl/perllib/plugins/W3ImgPlug.pm
r6408 r7353 223 223 'inherits' => "yes", 224 224 'args' => $arguments }; 225 226 227 # sub print_usage {228 # print STDERR "\nUsage: plugin W3ImgPlug [options]\n\n";229 # print STDERR " options:\n";230 # print STDERR " -aggressiveness Range of related text extraction techniques to use [4]\n";231 # print STDERR " 1: Filename, path, ALT text only\n";232 # print STDERR " 2: All of 1, plus caption where available\n";233 # print STDERR " 3: All of 2, plus near paragraphs where available\n";234 # print STDERR " 4: All of 3, plus previous headers (<h1>, <h2>...)\n";235 # print STDERR " where available\n";236 # print STDERR " 5: All of 4, plus textual references where available\n";237 # print STDERR " 6: All of 4, plus page metatags (title, keywords, etc)\n";238 # print STDERR " 7: All of 6, 5 and 4 combined\n";239 # print STDERR " 8: All of 7, plus repeat caption, filename, etc (raise \n";240 # print STDERR " ranking of more relevant results)\n";241 # print STDERR " 10: All of 1, plus full text of source page\n";242 # print STDERR "\n";243 # print STDERR " -no_cache_images Don't cache images (point to URL of original)\n";244 # print STDERR " -index_pages Index the pages along with the images.\n";245 # print STDERR " Otherwise reference the pages at the source URL\n";246 # print STDERR " -min_size Bytes. Skip images smaller than this [2000]\n";247 # print STDERR " -min_width Pixels. Skip images narrower than this [50 pixels]\n";248 # print STDERR " -min_height Pixels. Skip images shorter than this [50 pixels]\n";249 # print STDERR " -thumb_size Max thumbnail size. Both width and height [100 pixels]\n";250 # print STDERR " -convert_params Additional parameters for ImageMagicK convert on\n";251 # print STDERR " thumbnail creation. For example, '-raise' will give\n";252 # print STDERR " a three dimensional effect to thumbnail images.\n";253 # print STDERR " -document_text Add image text as document:text (otherwise IndexedText\n";254 # print STDERR " metadata field)\n";255 # print STDERR "\n";256 # print STDERR " Advanced Options (applicability depends on aggressiveness level)\n";257 # print STDERR " -smallpage_threshold Images on pages smaller than this (bytes) will have\n";258 # print STDERR " the page (title, keywords, etc) meta-data added [2048]\n";259 # print STDERR " -textrefs_threshold Threshold for textual references. Lower values mean\n";260 # print STDERR " the algorithm is less strict [2]\n";261 # print STDERR " -caption_length Maximum length of captions (in characters) [100]\n";262 # print STDERR " -neartext_length Target length of near text (in characters) [300]\n";263 # print STDERR " -max_near_text Maximum characters near images to extract [400]\n";264 # print STDERR " -min_near_text Minimum characters of near text or caption to extract [10]\n";265 # print STDERR "\n";266 # print STDERR " Tag set configuration file (XML format):\n";267 # print STDERR " <collectionpath>/etc/W3ImgPlug.cfg \n";268 # print STDERR "\n";269 # print STDERR "\n";270 # print STDERR "W3ImgPlug inherits all of HTMLPlug's functionality and options:\n";271 # HTMLPlug::print_usage();272 # print STDERR "\n";273 # }274 225 275 226 sub new {
Note:
See TracChangeset
for help on using the changeset viewer.