Changeset 5607
- Timestamp:
- 2003-10-09T18:01:59+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/strings.rb
r5533 r5607 17 17 common.cannot_read_file:ERROR: Can't read file 18 18 19 common.general_options:general options (for %s) 20 21 common.must_be_implemented:function must be implemented in sub-class 22 19 23 common.options:options 20 24 25 common.specific_options:specific options 26 21 27 common.usage:usage 22 28 29 23 30 # 24 31 # Script option descriptions and output messages 25 32 # 33 34 scripts.language:Language to display option descriptions in (eg. 'en_US' specifies American English). Requires translations of the option descriptions to exist in the perllib/strings_language-code.rb file. 35 36 scripts.xml:Produces the information in an XML form, without 'pretty' comments but with much more detail. 37 26 38 27 39 # -- buildcol.pl -- … … 82 94 83 95 96 # -- classinfo.pl -- 97 98 classinfo.collect:Giving a collection name will make classinfo.pl look in collect/collection-name/perllib/classify first. If the classifier is not found there it will look in the general perllib/classify directory. 99 100 classinfo.desc:Prints information about a classifier. 101 102 classinfo.general_options:General options are inherited from parent classes of the classifier. 103 104 classinfo.info:info 105 106 classinfo.no_classifier_name:ERROR: You must provide a classifier name. 107 108 classinfo.option_types:Classifiers may take two types of options 109 110 classinfo.params:[options] classifier-name 111 112 classinfo.passing_options:Options may be passed to any classifier by including them in your collect.cfg configuration file. 113 114 classinfo.specific_options:Specific options are defined within the classifier itself, and are available only to this particular classifier. 115 116 84 117 # -- import.pl -- 85 118 … … 179 212 mkcol.title:The title of the collection. 180 213 181 scripts.language:Language to display option descriptions in (eg. 'en_US' specifies American English). Requires translations of the option descriptions to exist in the perllib/strings_language-code.rb file. 214 215 # -- pluginfo.pl -- 216 217 pluginfo.collect:Giving a collection name will make pluginfo.pl look in collect/collection-name/perllib/plugins first. If the plugin is not found there it will look in the general perllib/plugins directory. 218 219 pluginfo.desc:Prints information about a plugin. 220 221 pluginfo.general_options:General options are inherited from parent classes of the plugin. 222 223 pluginfo.info:info 224 225 pluginfo.no_plugin_name:ERROR: You must provide a plugin name. 226 227 pluginfo.option_types:Plugins may take two types of options 228 229 pluginfo.params:[options] plugin-name 230 231 pluginfo.passing_options:Options may be passed to any plugin by including them in your collect.cfg configuration file. 232 233 pluginfo.specific_options:Specific options are defined within the plugin itself, and are available only to this particular plugin. 182 234 183 235 … … 187 239 188 240 AZCompactList.buttonname:Button name for this classification. 241 242 AZCompactList.desc:Classifier plugin for sorting alphabetically 189 243 190 244 AZCompactList.doclevel:Level to process document at. … … 206 260 AZCompactList.onlyfirst:Control whether all or only first metadata value used from array of metadata. 207 261 208 AZCompactList.removeprefix:A prefix to ignore in the Metadata values for the field when sorting.209 210 262 AZList.buttonname:Button name for this classification. 211 263 264 AZList.desc:Classifier plugin for sorting alphabetically 265 212 266 AZList.metadata:Metadata field used for classification. List will be sorted by this element. 213 267 214 268 AZList.removeprefix:A prefix to ignore in the Metadata values for the field when sorting. 215 269 270 AZList.removesuffix:A suffix to ignore in the Metadata values for the field when sorting. 271 272 AZSectionList.desc:Classifier plugin for sorting alphabetically. This is very similar to AZList except it sorts by section level metadata (excluding the top level) instead of just top level metadata. The only change is to the classify() subroutine which must now iterate through each section, adding each to the classification. 273 274 BasClas.bad_general_option:The %s classifier uses an incorrect general option (general options are those available to all classifiers). Check your collect.cfg configuration file. 275 216 276 BasClas.builddir:Where to put the built indexes. 217 277 278 BasClas.desc:Base class for all the classifiers. 279 218 280 BasClas.outhandle:The file handle to write output to. 219 281 … … 224 286 DateList.datemeta:The metadata that contains the dates to classify by. The format is expected to be yyyymmdd. 225 287 288 DateList.desc:Classifier plugin for sorting by date. By default, sorts by 'Date' metadata. Date is assumed to be in the form yyyymmdd. 289 226 290 DateList.nogroupyears:Make each year an individual entry in the horizontal list. (ie, don't have 1920-1922 type classification nodes). 227 291 228 292 DateList.sortmeta:An extra metadata field to sort by in the case where two documents have the same date. 229 293 230 231 294 Hierarchy.buttonname:Title field for this classification. 232 295 296 Hierarchy.desc:Classifier plugin for generating hierarchical classifications. 297 233 298 Hierarchy.hfile:The classification structure file. 234 299 … … 241 306 HTML.buttonname:The title field for this classification. 242 307 308 HTML.desc:Creates an empty classification that's simply a link to a web page. 309 243 310 HTML.url:The url of the web page to link to. 244 311 245 312 List.buttonname:Button name for this classification. 246 313 314 List.desc:Simple list classifier plugin. 315 247 316 List.metadata:Metadata field used for classification. List will be sorted by this element. 248 317 … … 251 320 Phind.button:The label for the classifier screen and button in navigation bar. 252 321 322 Phind.desc:The Phind clasifier plugin. 323 253 324 Phind.language:Language or languages to use building hierarchy. Languages are identified by two-letter country codes like en (English), es (Spanish), and fr (French). Language is a regular expression, so 'en|fr' (English or French) and '..' (match any language) are valid. 254 325 … … 265 336 Phind.untidy:Don't remove working files. 266 337 338 SectionList.desc:Same as List classifier but includes all sections of document (excluding top level) rather than just top level document itself. 339 267 340 268 341 # … … 270 343 # 271 344 345 ArcPlug.desc:Plugin which recurses through an archives.inf file (i.e. the file generated in the archives directory when an import is done), processing each file it finds. 346 347 ArcPlug.processing:processing 348 349 BasPlug.adding:adding 350 351 BasPlug.already_seen:already seen 352 353 BasPlug.bad_general_option:The %s plugin uses an incorrect general option (general options are those available to all plugins). Check your collect.cfg configuration file. 354 272 355 BasPlug.block_exp: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. 273 356 357 BasPlug.could_not_extract_encoding:WARNING: encoding could not be extracted from %s - defaulting to %s 358 359 BasPlug.could_not_extract_language:WARNING: language could not be extracted from %s - defaulting to %s 360 361 BasPlug.could_not_open_for_reading:could not open %s for reading 362 274 363 BasPlug.cover_image:Will look for a prefix.jpg file (where prefix is the same prefix as the file being processed) and associate it as a cover image. 275 364 … … 278 367 BasPlug.default_language:If Greenstone fails to work out what language a document is the 'Language' metadata element will be set to this value. The default is 'en' (ISO 639 language symbols are used: en = English). Note that if -input_encoding is not set to 'auto' and -extract_language is not set, all documents will have their 'Language' metadata set to this value. 279 368 369 BasPlug.desc:Base class for all the import plugins. 370 371 BasPlug.done_acronym_extract:done extracting acronyms. 372 373 BasPlug.done_acronym_markup:done acronym markup. 374 375 BasPlug.done_email_extract:done extracting e-mail addresses. 376 377 BasPlug.empty_file:file contains no text 378 280 379 BasPlug.extract_acronyms:Extract acronyms from within text and set as metadata. 281 380 … … 285 384 286 385 BasPlug.extract_language:Identify the language of each document and set 'Language' metadata. Note that this will be done automatically if -input_encoding is 'auto'. 386 387 BasPlug.extracting:extracting 388 389 BasPlug.extracting_acronyms:extracting acronyms 390 391 BasPlug.extracting_emails:extracting e-mail addresses 392 393 BasPlug.file_has_no_text:ERROR: %s contains no text 287 394 288 395 BasPlug.first:Comma separated list of first sizes to extract from the text into a metadata field. The field is called 'FirstNNN'. … … 294 401 BasPlug.input_encoding.utf8:Either utf8 or unicode -- automatically detected. 295 402 403 BasPlug.keyphrases:keyphrases 404 405 BasPlug.marking_up_acronyms:marking up acronyms 406 296 407 BasPlug.markup_acronyms:Add acronym metadata into document text. 297 408 … … 303 414 304 415 BasPlug.process_exp: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). 416 417 BasPlug.read_denied:Read permission denied for %s 418 419 BasPlug.must_be_implemented:BasPlug::read function must be implemented in sub-class for recursive plugins 420 421 BasPlug.stems:stems 422 423 BasPlug.unsupported_encoding:WARNING: %s appears to be encoded in an unsupported encoding (%s) - using %s 424 425 BasPlug.wrong_encoding:WARNING: %s was read using %s encoding but appears to be encoded as %s. 426 427 BibTexPlug.desc:BibTexPlug reads bibliography files in BibTex format. BibTexPlug creates a document object for every reference in the file. It is a subclass of SplitPlug, so if there are multiple records, all are read. 428 429 BookPlug.desc:Creates multi-level document from document containing <<TOC>> level tags. Metadata for each section is taken from any other tags on the same line as the <<TOC>>. e.g. <<Title>>xxxx<</Title>> sets Title metadata. Everything else between TOC tags is treated as simple html (i.e. no processing of html links or any other HTMLPlug type stuff is done). Expects input files to have a .hb file extension by default (this can be changed by adding a -process_exp option a file with the same name as the hb file but a .jpg extension is taken as the cover image (jpg files are blocked by this plugin). BookPlug is a simplification (and extension) of the HBPlug used by the Humanity Library collections. BookPlug is faster as it expects the input files to be cleaner (The input to the HDL collections contains lots of excess html tags around <<TOC>> tags, uses <<I>> tags to specify images, and simply takes all text between <<TOC>> tags and start of text to be Title metadata). If you're marking up documents to be displayed in the same way as the HDL collections, use this plugin instead of HBPlug. 305 430 306 431 ConvertToPlug.convert_to:Plugin converts to TEXT or HTML. … … 308 433 ConvertToPlug.convert_to.text:Plain text format. 309 434 435 ConvertToPlug.desc:The plugin is inherited by such plugins as WordPlug and PDFPlug. It facilitates the conversion of these document types to either HTML or TEXT by setting up variable that instruct ConvertToBasPlug how to work. It works by dynamically inheriting HTMLPlug or TEXTPlug based on the plugin argument 'convert_to'. If the argument is not present, the default is to inherit HTMLPlug. 436 310 437 ConvertToPlug.use_strings:If set, a simple strings function will be called to extract text if the conversion utility fails. 311 438 439 ConvertToRogPlug:A plugin that inherits from RogPlug. 440 441 DBPlug.desc:Uses records from a database as documents. 442 312 443 DBPlug.title_sub:Substitution expression to modify string stored as Title. Used by, for example, PSPlug to remove "Page 1" etc from text used as the title. 313 444 445 EMAILPlug.desc:Email plug reads email files. These are named with a simple number (i.e. as they appear in maildir folders) or with the extension .mbx (for mbox mail file format).\nDocument text: The document text consists of all the text after the first blank line in the document.\nMetadata (not Dublin Core!):\n\t\$Headers All the header content\n\t\$Subject Subject: header\n\t\$To To: header\n\t\$From From: header\n\t\$FromName Name of sender (where available)\n\t\$FromAddr E-mail address of sender\n\t\$DateText Date: header\n\t\$Date Date: header in GSDL format (eg: 19990924) 446 314 447 EMAILPlug.no_attachments:Do not save message attachments. 315 448 316 449 EMAILPlug.split_exp:A perl regular expression used to split files containing many messages into individual documents. 317 450 451 ExcelPlug.desc:A plugin for importing Microsoft Excel files. 452 453 FOXPlug.desc:Plugin to process a Foxbase dbt file. This plugin provides the basic functionality to read in the dbt and dbf files and process each record. This general plugin should be overridden for a particular database to process the appropriate fields in the file. 454 455 GAPlug.desc:Processes GreenstoneArchive XML documents. Note that this plugin does no syntax checking (though the XML::Parser module tests for well-formedness). It's assumed that the GreenstoneArchive files conform to their DTD. 456 457 GMLPlug.desc:Plugin which processes a GML format document assumes that gml tags are all in lower-case. 458 459 HBPlug.desc:Plugin which processes an HTML book directory. This plugin is used by the Humanity Library collections and does not handle input encodings other than ascii or extended ascii. This code is kind of ugly and could no doubt be made to run faster, by leaving it in this state I hope to encourage people to make their collections use HBSPlug instead ;-)\n\nUse HBSPlug if creating a new collection and marking up files like the Humanity Library collections. HBSPlug accepts all input encodings but expects the marked up files to be cleaner than those used by the Humanity Library collections 460 318 461 HTMLPlug.assoc_files:Perl regular expression of file extensions to associate with html documents. 319 462 463 HTMLPlug.desc:This plugin processes HTML files 464 320 465 HTMLPlug.description_tags:Split document into sub-sections where <Section> tags occur. Note that by setting this option you implicitly set -no_metadata, as all metadata should be included within the <Section> tags. Also, '-keep_head' will have no effect when this option is set. 321 466 … … 338 483 ImagePlug.converttotype:Convert main image to. 339 484 485 ImagePlug.desc:This plugin processes images, adding basic metadata 486 340 487 ImagePlug.minimumsize:Ignore images smaller than n bytes. 341 488 … … 350 497 ImagePlug.thumbnailtype:Make thumbnails in format 's'. 351 498 499 IndexPlug.desc:This recursive plugin processes an index.txt file. The index.txt file should contain the list of files to be included in the collection followed by any extra metadata to be associated with each file.\n\nThe index.txt file should be formatted as follows: The first line may be a key (beginning with key:) to name the metadata fields (e.g. key: Subject Organization Date). The following lines will contain a filename followed by the value that metadata entry is to be set to. (e.g. 'irma/iw097e 3.2 unesco 1993' will associate the metadata Subject=3.2, Organization=unesco, and Date=1993 with the file irma/iw097e if the above key line was used)\n\nNote that if any of the metadata fields use the Hierarchy classifier plugin then the value they're set to should correspond to the first field (the descriptor) in the appropriate classification file.\n\nMetadata values may be named separately using a tag (e.g. >Subject<3.2) and this will override any name given to them by the key line. If there's no key line any unnamed metadata value will be named 'Subject'. 500 501 MACROPlug.desc:Creates simple single-level document. Adds Title metadata of first line of text (up to 100 characters long). 502 503 MARCPlug.desc:Basic MARC plugin. 504 352 505 MARCPlug.metadata_mapping:Name of file that includes mapping details from MARC values to Greenstone metadata names. Defaults to 'marctodc.txt' found in the site's etc directory. 353 506 507 OAIPlug.desc:Basic Open Archives Initiate (OAI) plugin. 508 354 509 PDFPlug.complex:Create more complex output. With this option set the output html will look much more like the original PDF file. For this to function properly you Ghostscript installed (for *nix gs should be on your path while for windows you must have gswin32c.exe on your path). 355 510 511 PDFPlug.desc:Reasonably with-it pdf plugin. 512 356 513 PDFPlug.nohidden:Prevent pdftohtml from attempting to extract hidden text. This is only useful if the -complex option is also set. 357 514 … … 362 519 PDFPlug.zoom:The factor by which to zoom the PDF for output (this is only useful if -complex is set). 363 520 521 PPTPlug.desc:A plugin for importing Microsoft PowerPoint files. 522 523 PSPlug.desc:This is a \"poor man's\" ps to text converter. If you are serious, consider using the PRESCRIPT package, which is available for download at http://www.nzdl.org/html/software.html 524 364 525 PSPlug.extract_date:Extract date from PS header. 365 526 … … 368 529 PSPlug.extract_title:Extract title from PS header. 369 530 531 RecPlug.desc:RecPlug is a plugin which recurses through directories processing each file it finds. 532 370 533 RecPlug.use_metadata_files:Read metadata from metadata XML files. 371 534 535 ReferPlug.desc:ReferPlug reads bibliography files in Refer format.\nBy Gordon W. Paynter (gwp\@cs.waikato.ac.nz), November 2000\n\nLoosely based on hcibib2Plug by Steve Jones (stevej\@cs.waikato.ac.nz). Which was based on EMAILPlug by Gordon Paynter (gwp\@cs.waikato.ac.nz). Which was based on old versions of HTMLplug and HCIBIBPlugby by Stefan Boddie and others -- it's hard to tell what came from where, now.\n\nReferPlug creates a document object for every reference in the file. It is a subclass of SplitPlug, so if there are multiple records, all are read.\n\nDocument text:\n\tThe document text consists of the reference in Refer format.\nMetadata:\n\t\$Creator \%A Author name\n\t\$Title \%T Title of article of book\n\t\$Journal \%J Title of Journal\n\t\$Booktitle \%B Title of book containing the publication\n\t\$Report \%R Type of Report, paper or thesis\n\t\$Volume \%V Volume Number of Journal\n\t\$Number \%N Number of Journal within Volume\n\t\$Editor \%E Editor name\n\t\$Pages \%P Page Number of article\n\t\$Publisher \%I Name of Publisher\n\t\$Publisheraddr \%C Publisher's address\n\t\$Date \%D Date of publication\n\t\$Keywords \%K Keywords associated with publication\n\t\$Abstract \%X Abstract of publication\n\t\$Copyright\t\%* Copyright information for the article 536 537 RogPlug.desc:Creates simple single-level documents from .rog or .mdb files. 538 539 RTFPlug.desc:Plugin for importing Rich Text Format files. 540 541 SRCPlug.desc:Filename is currently used for Title ( optionally minus some prefix ). Current languages:\ntext: READMEs/Makefiles\nC/C++ (currently extracts #include statements and C++ class decls)\nPerl (currently only done as text)\nShell (currently only done as text) 542 372 543 SRCPlug.remove_prefix:Remove this leading pattern from the filename (eg -remove_prefix /tmp/XX/src/). The default is to remove the whole path from the filename. 373 544 545 SplitPlug.desc:SplitPlug is a plugin for splitting input files into segments that will then be individually processed. This plugin should not be called directly. Instead, if you need to process input files that contain several documents, you should write a plugin with a process function that will handle one of those documents and have it inherit from SplitPlug. See ReferPlug for an example. 546 374 547 SplitPlug.split_exp:A perl regular expression to split input files into segments. 375 548 549 TEXTPlug.desc:Creates simple single-level document. Adds Title metadata of first line of text (up to 100 characters long). 550 376 551 TEXTPlug.title_sub:Substitution expression to modify string stored as Title. Used by, for example, PSPlug to remove "Page 1" etc from text used as the title. 377 552 378 553 UnknownPlug.assoc_field:Name of the metadata field that will hold the associated file's name. 554 555 UnknownPlug.desc:This is a simple Plugin for importing files in formats that Greenstone doesn't know anything about. A fictional document will be created for every such file, and the file itself will be passed to Greenstone as the \"associated file\" of the document. 379 556 380 557 UnknownPlug.file_type:Mime type of the file (e.g. image/gif). … … 395 572 W3ImgPlug.convert_params:Additional parameters for ImageMagicK convert on thumbnail creation. For example, '-raise' will give a three dimensional effect to thumbnail images. 396 573 574 W3ImgPlug.desc:A plugin for extracting images and associated text from webpages. 575 397 576 W3ImgPlug.document_text:Add image text as document:text (otherwise IndexedText metadata field). 398 577 … … 418 597 419 598 W3ImgPlug.thumb_size:Max thumbnail size. Both width and height. 599 600 WordPlug.desc:A plugin for importing Microsoft Word documents. 601 602 XMLPlug.desc:Base class for XML plugins. 603 604 ZIPPlug.desc:Plugin which handles compressed and/or archived input formats currently handled formats and file extensions are:\ngzip (.gz, .z, .tgz, .taz)\nbzip (.bz)\nbzip2 (.bz2)\nzip (.zip .jar)\ntar (.tar)\n\nThis plugin relies on the following utilities being present (if trying to process the corresponding formats):\ngunzip (for gzip)\nbunzip (for bzip)\nbunzip2 \nunzip (for zip)\ntar (for tar) 605 606 607 # 608 # Perl module strings 609 # 610 611 classify.could_not_find_classifier:ERROR: Could not find classifier \"%s\" 612 613 plugin.could_not_find_plugin:ERROR: Could not find plugin \"%s\" 614 615 plugin.including_archive:including the contents of 1 ZIP/TAR archive 616 617 plugin.including_archives:including the contents of %d ZIP/TAR archives 618 619 plugin.kill_file:Process killed by .kill file 620 621 plugin.n_considered:%d documents were considered for processing 622 623 plugin.n_included:%d were processed and included in the collection 624 625 plugin.n_rejected:%d were rejected 626 627 plugin.no_plugin_could_process:WARNING: No plugin could process %s 628 629 plugin.no_plugin_could_process_this_file:no plugin could process this file 630 631 plugin.one_considered:1 document was considered for processing 632 633 plugin.one_included:1 was processed and included in the collection 634 635 plugin.one_rejected:1 was rejected 636 637 plugin.see_faillog:See %s for a list of rejected documents 638 639 PrintUsage.default:Default 640 641 PrintUsage.required:REQUIRED
Note:
See TracChangeset
for help on using the changeset viewer.