Re: [documancer] Using Documancer for HTML books on CD

Kevin Ollivier <[email protected]> Wed, 7 Apr 2004 09:40:34 -0700
Newsgroups gmane.text.documancer.user
Message-ID <[email protected]>
Hi Vaclav,

In regards to the ".book" format, I just thought of a simpler solution 
that meets my needs. =) Just update the book loading code to try and 
guess the content format (i.e. if it has extension .html or .htm, it's 
probably HTML. =) and load the file. It will also check for a fulltext 
index, and if it exists, automatically turn on indexing.

Then, make it so that this book loading code is run whenever a file is 
passed in from the command line, which will give me the CD loading 
behavior I need. I'll also write code so that it will work when a file 
is dropped on it on Mac. (BTW, if the format can't be guessed, it will 
prompt the user to choose. But for things like ".htm" or ".html", I 
think it's quite reasonable to assume its HTML. =) I can probably also 
do a little trick with Resource Files on Mac to ensure that the 
index.html file for my EClass is associated directly with Documancer.

If you're fine with this, I'll go ahead and write the code for it and 
submit a patch. Also, I see you added in the version checking code as 
well. Thanks!

Kevin



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click