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

2012-03-03 Thread Andrew Haines
On 02/23/12 16:23, Mattias Gaertner wrote: > Now it stops earlier on my files: > > Exception at 00473837: ERangeError: > Range check error. > Backtrace does not help much: > > #0 0x004120d0 in fpc_raiseexception () > #1 0x0045fc38 in > SYSUTILS_$$_RUNERRORTOEXCEPT$LONG

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

2012-02-23 Thread Mattias Gaertner
On Thu, 23 Feb 2012 12:48:41 -0500 Andrew Haines wrote: > On 02/22/12 18:01, Mattias Gaertner wrote: > > On Wed, 22 Feb 2012 12:06:08 -0500 > > I tried with only 500 files and it worked. That means I get a help and > > it finds files. But choosing a page just shows black. And after that > > any p

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

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > And I get an exception in: > #5 0x005552aa in CHILDISFULL (this=0x415906, > AWORD=0x409d0c > "\311\303f\220H\203\354(H\211\\$\bL\211d$\020L\211l$\030L\211t$ > I\211\376I\211\365f\211\323L\211\350H\203", , > ANODEOFFSET=8234056) at chmfi

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

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > On Wed, 22 Feb 2012 12:06:08 -0500 > I tried with only 500 files and it worked. That means I get a help and > it finds files. But choosing a page just shows black. And after that > any page is black. > Note: If I don't use the search but the Index, then

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

2012-02-22 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: > > Yes, this helped. > Now the files are done in under a minute and with only 500MB. But then > mem consumption goes up again. Then it goes down to 5GB and seems to > be stuck in an endless loop. I cancelled it. > > I tried with only 500 files and it

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

2012-02-22 Thread Mattias Gaertner
On Wed, 22 Feb 2012 12:06:08 -0500 Andrew Haines wrote: > On 02/21/12 10:08, Mattias Gaertner wrote: > > > > Andrew Haines hat am 21. Februar 2012 um 15:24 > > geschrieben: > > > > >> I guess then you are using AddStreamToArchive. > > > > > > > > No. I set > > > > Writer.OnGetFileDa

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

2012-02-22 Thread Andrew Haines
On 02/21/12 10:08, Mattias Gaertner wrote: > > Andrew Haines hat am 21. Februar 2012 um 15:24 > geschrieben: > >> I guess then you are using AddStreamToArchive. > > > > No. I set > > Writer.OnGetFileData :=@OnWriterGetFileData; > And in OnWriterGetFileData I write the html into the st

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

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 22:25:08 -0500 Andrew Haines wrote: > On 02/21/12 17:40, Mattias Gaertner wrote: > > On Tue, 21 Feb 2012 16:08:43 +0100 (CET) > > Mattias Gaertner wrote: >[...] > > But it only finds whole words. :- > > And clicking on a page gives a black page in lhelp. :( > > The whole wor

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

2012-02-21 Thread Andrew Haines
On 02/21/12 17:40, Mattias Gaertner wrote: > On Tue, 21 Feb 2012 16:08:43 +0100 (CET) > Mattias Gaertner wrote: > >> >> Andrew Haines hat am 21. Februar 2012 um 15:24 >> geschrieben: >> [...] >>> Your chm file should not be bigger than the the uncompressed files >>> unless you are writing only >

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

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner wrote: > > Andrew Haines hat am 21. Februar 2012 um 15:24 > geschrieben: >[...] > > Your chm file should not be bigger than the the uncompressed files > > unless you are writing only > > a couple of tiny html files. > > I have a few tho

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

2012-02-21 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: > > What do you mean with "Those errors"? > > AVs in fpdoc Cough r19903, cough :-) (not yet merged to 2.6.x) I haven't seen any since. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

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

2012-02-21 Thread Felipe Monteiro de Carvalho
On Tue, Feb 21, 2012 at 4:37 PM, Mattias Gaertner wrote: > What do you mean with "Those errors"? AVs in fpdoc > I'm pretty sure 2.6.0 can create AVs too. oh ... I haven't yet had any AV in fpdoc from 2.6.0 while I had them all the time in 2.4.x I guess your mileage can vary then. -- Felipe Mo

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

2012-02-21 Thread Felipe Monteiro de Carvalho
On Tue, Feb 21, 2012 at 4:08 PM, Mattias Gaertner wrote: > Bingo. It does not: > > Generating Table of contents... > Generating Index... > Finishing compressing... > Exception at 0050057F: EAccessViolation: > Access violation. > > docs/html/lcl/lcl.chm is 0 bytes. Which FPC version are yo

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

2012-02-21 Thread Mattias Gaertner
Andrew Haines hat am 21. Februar 2012 um 15:24 geschrieben: > On 02/21/2012 03:18 AM, Mattias Gaertner wrote: > > On Mon, 20 Feb 2012 23:59:18 -0500 > > Andrew Haines wrote: > > > >> > >> 30% bigger than the size of the uncompressed html files?! > > Yes. > > does lazarus/docs/html/build_lcl_doc

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

2012-02-21 Thread Andrew Haines
On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Haines wrote: 30% bigger than the size of the uncompressed html files?! Yes. does lazarus/docs/html/build_lcl_docs --outfmt chm work for you? I get a 8mb lcl.chm file. if --outfmt html then the lcl fo

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

2012-02-21 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > > 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

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

2012-02-21 Thread Mattias Gaertner
"Žilvinas Ledas" hat am 21. Februar 2012 um 10:38 geschrieben: > 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

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

2012-02-21 Thread Žilvinas Ledas
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 O

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

2012-02-21 Thread Mattias Gaertner
On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Haines 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 t

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

2012-02-20 Thread Andrew Haines
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

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

2012-02-20 Thread Andrew Haines
On 02/20/12 20:51, Andrew Haines wrote: >> > > I added an lcl program to the ccr in applications/chmmaker that I wrote Nevermind I had forgotten it's in lazarus/tools anyway. :) Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

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

2012-02-20 Thread Andrew Haines
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

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

2012-02-20 Thread Andrew Haines
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

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

2012-02-20 Thread Mattias Gaertner
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 som