[fpc-pascal] How create a full text search with TChmWriter?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 21 09:18:58 CET 2012


On Mon, 20 Feb 2012 23:59:18 -0500
Andrew Haines <AndrewD207 at aol.com> wrote:

> On 02/20/12 18:00, Mattias Gaertner wrote:
> > Hi,
> > 
> > I'm using TChmWriter to pack some html files into a chm file.
> > The index works. I don't have a TOC.
> > Now I want a full text search.
> > 
> > I set Writer.FullTextSearch to true, it takes a long time to
> > process and the resulting chm is 30% bigger than the total of all
> > files. So I guess it has created some index.
> 
> 30% bigger than the size of the uncompressed html files?!

Yes.


> > But in lhelp I don't see a search, only the index.
> > 
> 
> There was some bug somewhere a while ago where $FIftiMain was
> incorrectly searched for as $FiftiMain (i vs I) so maybe make sure lhelp
> is a recent build.

I updated once more. No change.

 
> > chmmaker can show a search for the example.chm, but can not find
> > anything.
> > 
> >
> 
> 
> I attached the example.chm file that I made a couple of minutes ago
> using chmmaker with the project in the example subfolder. Can you see if
> it works for you? I opened it in lhelp and the toc, index and search
> were all working.

Yes, that has a search. And it works.
I wonder, what you are doing different.


> Can you PM me the chm(s) that are not working for you? Also what version
> of fpc are you using for which platform?

linux, fpc 2.7.1 

Mattias



More information about the fpc-pascal mailing list