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

Kevin Ollivier <[email protected]> Wed, 7 Apr 2004 13:50:54 -0700
Newsgroups gmane.text.documancer.user
Message-ID <[email protected]>
Hi,

I'm working on this and I've actually got it loading books. Nothing too 
special, but if I give it a filename and a book name, I can load the 
book into Documancer. However, since I have my own SWISH-E index file, 
I'd like to use it instead of the one that Documancer uses by default. 
Do you mind if I add an 'indexdir' preference, which uses its value for 
getIndexDir() if set, if not it just reverts to the default behavior.

Let me know what you think, or if you've got any other ideas on how to 
solve this. =)

Thanks,

Kevin

On Apr 7, 2004, at 9:40 AM, Kevin Ollivier wrote:

> 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
> _______________________________________________
> documancer-users mailing list
> documancer-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/documancer-users
>



-------------------------------------------------------
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