source: trunk/gsdl/perllib/strings.rb@ 5095

Last change on this file since 5095 was 5095, checked in by mdewsnip, 21 years ago

Now includes output messages from mkcol.pl, import.pl, and buildcol.pl.

  • Property svn:keywords set to Author Date Id Revision
File size: 19.1 KB
Line 
1#
2# Common output messages
3#
4
5common.cannot_create_file:ERROR: Can't create file
6
7common.cannot_find_cfg_file:ERROR: Can't find the configuration file
8
9common.cannot_open:ERROR: Can't open
10
11common.cannot_open_fail_log:ERROR: Can't open fail log
12
13common.cannot_open_output_file:ERROR: Can't open output file
14
15common.cannot_read:ERROR: Can't read
16
17common.cannot_read_file:ERROR: Can't read file
18
19common.options:options
20
21common.usage:usage
22
23#
24# Script option descriptions and output messages
25#
26
27# -- buildcol.pl --
28
29buildcol.allclassifications:Don't remove empty classifications.
30
31buildcol.archivedir:Where the archives live.
32
33buildcol.builddir:Where to put the built indexes.
34
35buildcol.cachedir:Collection will be temporarily built here before being copied to the build directory.
36
37buildcol.cannot_open_cfg_file:WARNING: Can't open config file for updating
38
39buildcol.collectdir:Collection directory.
40
41buildcol.copying_back_cached_build:Copying back the cached build
42
43buildcol.create_images:Attempt to create default images for new collection. This relies on the Gimp being installed along with relevant perl modules to allow scripting from perl.
44
45buildcol.debug:Print output to STDOUT.
46
47buildcol.desc:PERL script used to build a greenstone collection from GML documents.
48
49buildcol.faillog:Fail log filename. This log receives the filenames of any files which fail to be processed.
50
51buildcol.index:Index to build (will build all in config file if not set).
52
53buildcol.keepold:Will not destroy the current contents of the building directory.
54
55buildcol.maxdocs:Maximum number of documents to build.
56
57buildcol.mode:The parts of the building process to carry out.
58buildcol.mode.all:Do everything.
59buildcol.mode.build_index:Just index the text.
60buildcol.mode.compress_text:Just compress the text.
61buildcol.mode.infodb:Just build the metadata database.
62
63buildcol.no_default_images:Default images will not be generated.
64
65buildcol.no_image_script:WARNING: Image making script could not be found
66
67buildcol.no_strip_html:Do not strip the html tags from the indexed text (only used for mgpp collections).
68
69buildcol.no_text:Don't store compressed text. This option is useful for minimizing the size of the built indexes if you intend always to display the original documents at run time (i.e. you won't be able to retrieve the compressed text version).
70
71buildcol.out:Filename or handle to print output status to.
72
73buildcol.params:[options] collection-name
74
75buildcol.unlinked_col_images:Collection images may not be linked correctly.
76
77buildcol.unknown_mode:Unknown mode
78
79buildcol.updating_archive_cache:Updating archive cache
80
81buildcol.verbosity:Controls the quantity of output. 0=none, 3=lots.
82
83
84# -- import.pl --
85
86import.archivedir:Where the converted material ends up.
87
88import.cannot_open_stats_file:WARNING: Couldn't open stats file
89
90import.cannot_sort:WARNING: import.pl cannot sort documents when groupsize > 1. sortmeta option will be ignored.
91
92import.collectdir:Collection directory.
93
94import.complete:Import complete
95
96import.debug:Print imported text to STDOUT.
97
98import.desc:PERL script used to import files into a GML format ready for building.
99
100import.faillog:Fail log filename. This log receives the filenames of any files which fail to be processed.
101
102import.groupsize:Number of import documents to group into one XML file.
103
104import.gzip:Use gzip to compress resulting xml documents (don't forget to include ZIPPlug in your plugin list when building from compressed documents).
105
106import.importdir:Where the original material lives.
107
108import.keepold:Will not destroy the current contents of the archives directory (the default).
109
110import.maxdocs:Maximum number of documents to import.
111
112import.no_plugins_loaded:ERROR: No plugins loaded.
113
114import.OIDtype:The method to use when generating unique identifiers for each document.
115import.OIDtype.hash:Hashes the contents of the file. Document identifier will be the same every time the collection is imported.
116import.OIDtype.incremental:A simple document count that is significantly faster than "hash". It is not guaranteed to always assign the same identifier to a given document though and does not allow further documents to be added to existing xml archives.
117
118import.out:Filename or handle to print output status to.
119
120import.params:[options] collection-name
121
122import.removeold:Will remove the old contents of the archives directory -- use with care.
123
124import.removing_archives:Removing current contents of the archives directory...
125
126import.sortmeta:Sort documents alphabetically by metadata for building. This will be disabled if groupsize > 1.
127
128import.statsfile:Filename or handle to print import statistics to.
129
130import.stats_backup:Will print stats to STDERR instead.
131
132import.verbosity:Controls the quantity of output. 0=none, 3=lots.
133
134
135# -- mkcol.pl --
136
137mkcol.about:The about text for the collection.
138
139mkcol.bad_name_cvs:ERROR: No collection can be named CVS as this may interfere with directories created by the CVS versioning system.
140
141mkcol.bad_name_modelcol:ERROR: No collection can be named modelcol as this is the name of the model collection.
142
143mkcol.cannot_find_modelcol:ERROR: Cannot find the model collection
144
145mkcol.col_already_exists:ERROR: This collection already exists.
146
147mkcol.collectdir:Directory where new collection will be created.
148
149mkcol.creating_col:Creating the collection
150
151mkcol.creator:The collection creator's e-mail address.
152
153mkcol.creator_undefined:ERROR: The creator was not defined. This variable is needed to recognise duplicate collection names.
154
155mkcol.desc:PERL script used to create the directory structure for a new Greenstone collection.
156
157mkcol.doing_replacements:doing replacements for
158
159mkcol.long_colname:ERROR: The collection name must be less than 8 characters so compatibility with earlier filesystems can be maintained.
160
161mkcol.maintainer:The collection maintainer's email address (if different from the creator).
162
163mkcol.no_collectdir:ERROR: The collect dir doesn't exist
164
165mkcol.no_colname:ERROR: No collection name was specified.
166
167mkcol.optionfile:Get options from file, useful on systems where long command lines may cause problems.
168
169mkcol.params:[options] collection-name
170
171mkcol.plugin:Perl plugin module to use (there may be multiple plugin entries).
172
173mkcol.public:If this collection has anonymous access (true/false).
174
175mkcol.quiet:Operate quietly.
176
177mkcol.success:The new collection was created successfully at
178
179mkcol.title:The title of the collection.
180
181scripts.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.
182
183
184#
185# Classifier option descriptions
186#
187
188AZCompactList.buttonname:Button name for this classification.
189
190AZCompactList.doclevel:Level to process document at.
191AZCompactList.doclevel.top:Whole document.
192AZCompactList.doclevel.section:By sections.
193
194AZCompactList.freqsort:Sort by node frequency rather than alpha-numeric.
195
196AZCompactList.metadata:Metadata field used for classification. List will be sorted by this element.
197
198AZCompactList.maxcompact:Maximum number of documents to be displayed per page.
199
200AZCompactList.mincompact:Minimum number of documents to be displayed per page.
201
202AZCompactList.mingroup:The smallest value that will cause a group in the hierarchy to form.
203
204AZCompactList.minnesting:The smallest value that will cause a list to be converted into a nested list.
205
206AZCompactList.onlyfirst:Control whether all or only first metadata value used from array of metadata.
207
208AZCompactList.removeprefix:A prefix to ignore in the Metadata values for the field when sorting.
209
210AZList.buttonname:Button name for this classification.
211
212AZList.metadata:Metadata field used for classification. List will be sorted by this element.
213
214AZList.removeprefix:A prefix to ignore in the Metadata values for the field when sorting.
215
216BasClas.builddir:Where to put the built indexes.
217
218BasClas.outhandle:The file handle to write output to.
219
220BasClas.verbosity:Controls the quantity of output. 0=none, 3=lots.
221
222DateList.bymonth:Classify by year and month.
223
224Hierarchy.buttonname:Title field for this classification.
225
226Hierarchy.hfile:The classification structure file.
227
228Hierarchy.hlist_at_top:Display the first level of the classification horizontally.
229
230Hierarchy.metadata:Metadata field used for classification. List will be sorted by this element, unless -sort is used.
231
232Hierarchy.sort:Metadata field to sort by. Use '-sort nosort' for no sorting.
233
234HTML.buttonname:The title field for this classification.
235
236HTML.url:The url of the web page to link to.
237
238List.buttonname:Button name for this classification.
239
240List.metadata:Metadata field used for classification. List will be sorted by this element.
241
242List.sort:Metadata field to sort by. If not set, sorts in build (random) order.
243
244Phind.button:The label for the classifier screen and button in navigation bar.
245
246Phind.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.
247
248Phind.savephrases:If set, the phrase infomation will be stored in the given file as text. It is probably a good idea to use an absolute path.
249
250Phind.suffixmode:The smode parameter to the phrase extraction program. A value of 0 means that stopwords are ignored, and of 1 means that stopwords are used.
251
252Phind.text:The text used to build the phrase hierarchy.
253
254Phind.thesaurus:Name of a thesaurus stored in Phind format in the collection's etc directory.
255
256Phind.title:The metadata field used to describe each document.
257
258Phind.untidy:Don't remove working files.
259
260
261#
262# Plugin option descriptions
263#
264
265BasPlug.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.
266
267BasPlug.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.
268
269BasPlug.default_encoding:Use this encoding if -input_encoding is set to 'auto' and the text categorization algorithm fails to extract the encoding or extracts an encoding unsupported by Greenstone.
270
271BasPlug.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.
272
273BasPlug.extract_acronyms:Extract acronyms from within text and set as metadata.
274
275BasPlug.extract_email:Extract email addresses as metadata.
276
277BasPlug.extract_historical_years:Extract time-period information from historical documents. This is stored as metadata with the document. There is a search interface for this metadata, which you can include in your collection by adding the statement, "format QueryInterface DateSearch" to your collection configuration file.
278
279BasPlug.extract_language:Identify the language of each document and set 'Language' metadata. Note that this will be done automatically if -input_encoding is 'auto'.
280
281BasPlug.first:Comma separated list of first sizes to extract from the text into a metadata field. The field is called 'FirstNNN'.
282
283BasPlug.input_encoding:The encoding of the source documents. Documents will be converted from these encodings and stored internally as utf8.
284BasPlug.input_encoding.ascii:Plain 7 bit ascii. This may be a bit faster than using iso_8859_1. Beware of using this on a collection of documents that may contain characters outside the plain 7 bit ascii set though (e.g. German or French documents containing accents), use iso_8859_1 instead.
285BasPlug.input_encoding.auto:Use text categorization algorithm to automatically identify the encoding of each source document. This will be slower than explicitly setting the encoding but will work where more than one encoding is used within the same collection.
286BasPlug.input_encoding.unicode:Just unicode.
287BasPlug.input_encoding.utf8:Either utf8 or unicode -- automatically detected.
288
289BasPlug.markup_acronyms:Add acronym metadata into document text.
290
291BasPlug.maximum_century:The maximum named century to be extracted as historical metadata (e.g. 14 will extract all references up to the 14th century).
292
293BasPlug.maximum_year:The maximum historical date to be used as metadata (in a Common Era date, such as 1950).
294
295BasPlug.no_bibliography:Do not try to block bibliographic dates when extracting historical dates.
296
297BasPlug.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).
298
299ConvertToPlug.convert_to:Plugin converts to TEXT or HTML.
300ConvertToPlug.convert_to.html:HTML format.
301ConvertToPlug.convert_to.text:Plain text format.
302
303ConvertToPlug.use_strings:If set, a simple strings function will be called to extract text if the conversion utility fails.
304
305DBPlug.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.
306
307EMAILPlug.no_attachments:Do not save message attachments.
308
309EMAILPlug.split_exp:A perl regular expression used to split files containing many messages into individual documents.
310
311HTMLPlug.assoc_files:Perl regular expression of file extensions to associate with html documents.
312
313HTMLPlug.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.
314
315HTMLPlug.file_is_url:Set if input filenames make up url of original source documents e.g. if a web mirroring tool was used to create the import directory structure.
316
317HTMLPlug.hunt_creator_metadata:Find as much metadata as possible on authorship and place it in the 'Creator' field. Requires the -metadata_fields flag.
318
319HTMLPlug.keep_head:Don't remove headers from html files.
320
321HTMLPlug.metadata_fields:Comma separated list of metadata fields to attempt to extract. Use 'tag<tagname>' to have the contents of the first <tagname> pair put in a metadata element called 'tagname'. Capitalise this as you want the metadata capitalised in Greenstone, since the tag extraction is case insensitive.
322
323HTMLPlug.no_metadata:Don't attempt to extract any metadata from files.
324
325HTMLPlug.nolinks:Don't make any attempt to trap links (setting this flag may improve speed of building/importing but any relative links within documents will be broken).
326
327HTMLPlug.rename_assoc_files:Renames files associated with documents (e.g. images). Also creates much shallower directory structure (useful when creating collections to go on cd-rom).
328
329HTMLPlug.title_sub:Substitution expression to modify string stored as Title. Used by, for example, PDFPlug to remove "Page 1", etc from text used as the title.
330
331ImagePlug.converttotype:Convert main image to.
332
333ImagePlug.minimumsize:Ignore images smaller than n bytes.
334
335ImagePlug.noscaleup:Don't scale up small images when making thumbnails.
336
337ImagePlug.screenviewsize:If set, makes an image of size n for screen display and sets Screen, ScreenSize, ScreenWidth and ScreenHeight metadata. By default it is not set.
338
339ImagePlug.screenviewtype:If -screenviewsize is set, this sets the screen display image type.
340
341ImagePlug.thumbnailsize:Make thumbnails of size nxn.
342
343ImagePlug.thumbnailtype:Make thumbnails in format 's'.
344
345MARCPlug.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.
346
347PDFPlug.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).
348
349PDFPlug.nohidden:Prevent pdftohtml from attempting to extract hidden text. This is only useful if the -complex option is also set.
350
351PDFPlug.noimages:Don't attempt to extract images from PDF.
352
353PDFPlug.use_sections:Create a separate section for each page of the PDF file.
354
355PDFPlug.zoom:The factor by which to zoom the PDF for output (this is only useful if -complex is set).
356
357PSPlug.extract_date:Extract date from PS header.
358
359PSPlug.extract_pages:Extract pages from PS header.
360
361PSPlug.extract_title:Extract title from PS header.
362
363RecPlug.use_metadata_files:Read metadata from metadata XML files.
364
365SRCPlug.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.
366
367SplitPlug.split_exp:A perl regular expression to split input files into segments.
368
369TEXTPlug.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.
370
371UnknownPlug.assoc_field:Name of the metadata field that will hold the associated file's name.
372
373UnknownPlug.file_type:Mime type of the file (e.g. image/gif).
374
375W3ImgPlug.aggressiveness:Range of related text extraction techniques to use.
376W3ImgPlug.aggressiveness.1:Filename, path, ALT text only.
377W3ImgPlug.aggressiveness.2:All of 1, plus caption where available.
378W3ImgPlug.aggressiveness.3:All of 2, plus near paragraphs where available.
379W3ImgPlug.aggressiveness.4:All of 3, plus previous headers (<h1>, <h2>...) where available.
380W3ImgPlug.aggressiveness.5:All of 4, plus textual references where available.
381W3ImgPlug.aggressiveness.6:All of 4, plus page metatags (title, keywords, etc).
382W3ImgPlug.aggressiveness.7:All of 6, 5 and 4 combined.
383W3ImgPlug.aggressiveness.8:All of 7, plus repeat caption, filename, etc (raise ranking of more relevant results).
384W3ImgPlug.aggressiveness.9:All of 1, plus full text of source page.
385
386W3ImgPlug.caption_length:Maximum length of captions (in characters).
387
388W3ImgPlug.convert_params:Additional parameters for ImageMagicK convert on thumbnail creation. For example, '-raise' will give a three dimensional effect to thumbnail images.
389
390W3ImgPlug.document_text:Add image text as document:text (otherwise IndexedText metadata field).
391
392W3ImgPlug.index_pages:Index the pages along with the images. Otherwise reference the pages at the source URL.
393
394W3ImgPlug.max_near_text:Maximum characters near images to extract.
395
396W3ImgPlug.min_height:Pixels. Skip images shorter than this.
397
398W3ImgPlug.min_near_text:Minimum characters of near text or caption to extract.
399
400W3ImgPlug.min_size:Bytes. Skip images smaller than this.
401
402W3ImgPlug.min_width:Pixels. Skip images narrower than this.
403
404W3ImgPlug.neartext_length:Target length of near text (in characters).
405
406W3ImgPlug.no_cache_images:Don't cache images (point to URL of original).
407
408W3ImgPlug.smallpage_threshold:Images on pages smaller than this (bytes) will have the page (title, keywords, etc) meta-data added.
409
410W3ImgPlug.textrefs_threshold:Threshold for textual references. Lower values mean the algorithm is less strict.
411
412W3ImgPlug.thumb_size:Max thumbnail size. Both width and height.
Note: See TracBrowser for help on using the repository browser.