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

Žilvinas Ledas zilvinas.ledas at dict.lt
Tue Feb 21 10:38:41 CET 2012


I think you should set chmPrj.MakeSearchable := true; (where chmPrj: 
TChmProject;).
At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and 
I can search for (complete) words in generated chm using lhelp.
(I think I do not set FullTextSearch to true though).


Regards,
Žilvinas

On 2012-02-21 10:18, Mattias Gaertner wrote:
> 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
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list