If you'd like to add Newton book parsing (for sites that have e-book downloads) to doc2html before you finish it off, I've just posted an external parser that'll handle the task.

Adding something like (modify path appropriately, of course):

#Newton Books
# Full pathname of Perl script nb2html.pl
my $NB2HTML = '/usr/local/share/htdig/scripts/nb2html.pl';

to the full paths to conversion utilities, and the code:

# Newton Book file using Perl script
if ($NB2HTML) {
$mime_type = "application/x-newton-compatible-pkg";
$cmd = $NB2HTML;
$cmdl = "$cmd $Input";
$magic = '^package[0-1]';
&store_html_method('Newton Book (nb2html)',$cmd,$cmdl,$mime_type,$magic);
}


to the document -> HTML converters section of doc2html.pl will do the trick.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to