Note: This documentation is for an old version of Webinator. The latest documentaion is here.

Define a plugin (-n)

Syntax: -n"mime-type,extension,filter-command"

Define a plugin for processing non-HTML file types. A plugin is basically any filter program that accepts a given file type on its input and generates a flat text version on its output. To define a plugin you specify the document's ``mime'' type, its extension type and the name of the filter program. Any document fetched having the specified extension or mime type will be processed through the filter command instead of the default HTML to text converter inside gw.

e.g.: ``gw -n"application/pdf,pdf,pdftotx"'' defines a PDF plugin that will pass documents having extension ``.pdf'' or mime type ``application/pdf'' through the filter program ``pdftotx''.

The filter program must be in the execution path or have its full path specified.

This may be used multiple times and is a good candidate for placing into an option file (-m section 0.3.6) because of its length. Using this option also implies ``-fextension'' and ``-Tmime-type'' so you don't have to specify them.

If your non-HTML files don't always have the specified extension and can only be identified by the mime type you might need to use the -z option to increase the maximum download file size (See section 0.3.10). Things like PDF documents are often much larger than the text contained in them.


Copyright © Thunderstone Software     Last updated: Tue Nov 6 10:58:47 EST 2007
Copyright © 2024 Thunderstone Software LLC. All rights reserved.