At 4:53 PM -0500 10/19/99, Gilles Detillieux wrote:
> where mswordconv would output a "Content-Type: text/html" header,
> a blank line, then the HTML output of mswordview, and ungzipper would
> gunzip its input, determine the type, and output the apporpriate header
> before outputting the unzipped output.
>
>I'd also eventually like to add a second type of "magic", which would
>make htdig determine the content-type by looking at the start of the
>script's output. If anyone wan't to develop a function to do that
>(or "borrow" it from Apache's mod_magic), it'd be a big help.
I have been assuming that without the "magic" code, we'd need to do
something like this anyway for the "decoder" feature. I don't think
writing a ungzipper script using the file command would be difficult.
>vote it in. (It's a patch for 3.1.3, but should apply to 3.2, if you
Since I'm about to submit the ExternalTransport class which is very
similar and there's still more to finish, my vote is:
+1
>+ static HTML *html = 0;
>+ static Plaintext *plaintext = 0;
>+ static PDF *pdf = 0;
>+ Parsable *parsable = 0;
This is obviously a bit of a hack. I do think the feature works as an
extension of the ExternalParser class, and I think the config syntax
makes sense. So it looks like we'll have to re-think this code
shortly.
-Geoff
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.