Re: [greenstone-users] UnknownPlug problem

From John R. McPherson
DateThu, 10 Mar 2005 12:26:09 +1300
Subject Re: [greenstone-users] UnknownPlug problem
In-Reply-To (ISP-GODux5IYBclVFNt0007fb89-isp-go-FPT-NET)
On Wed, 2005-03-09 at 16:33 +0700, Tran wrote:
> Hi everybody,
> I'm using GSDL 2.53 and I've got a problem with UnknownPlug as follow:
>
> I'm using this plugin for importing *.djvu files. Using GLI I've
> entered two arguments:
> assoc_field: djvu
> file_format: *.djvu
>
> The strange thing has happended when I tried to build my collection:
> From four *.djvu files that I wanted to add into my collection only
> one file was recognised and processed by UnknownPlug:
>
> The file DownloadDewdaney-golovolom.djvu was not recognised
> by any plugin.

> I've been trying to add into collect.cfg a new line as:
> plugin Unknownplug -process_exp "*.djvu* -assoc_field
> "djvu"
> without getting any result.

The -process_exp argument takes a perl regular expression, not a
dos-style filename glob. If you want to process any files that have
"djvu" anywhere in their name, use
-process_exp djvu
If you only want to match files that *end* in .djvu, you can do:
-process_exp .djvu$
(In a regular expression, a . matches any character, so you have to give
"." to match a "." character)

John McPherson