<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0pt;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px; "></p>
<div style="margin: 5px 0px;">
<br/>
Andrew Haines <andrewd207@aol.com> hat am 21. Februar 2012 um 15:24 geschrieben:
<br/>
<br/>
> On 02/21/2012 03:18 AM, Mattias Gaertner wrote:
<br/>
> > On Mon, 20 Feb 2012 23:59:18 -0500
<br/>
> > Andrew Haines<AndrewD207@aol.com> wrote:
<br/>
> >
<br/>
> >>
<br/>
> >> 30% bigger than the size of the uncompressed html files?!
<br/>
> > Yes.
<br/>
>
<br/>
> does lazarus/docs/html/build_lcl_docs --outfmt chm work for you?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Bingo. It does not:</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">
Generating Table of contents...
<br/>
Generating Index...
<br/>
Finishing compressing...
<br/>
Exception at 000000000050057F: EAccessViolation:
<br/>
Access violation.
</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">docs/html/lcl/lcl.chm is 0 bytes. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">
> I get a 8mb lcl.chm file. if --outfmt html then the lcl folder has 74mb
<br/>
> of html files.
<br/>
>
<br/>
> Your chm file should not be bigger than the the uncompressed files
<br/>
> unless you are writing only
<br/>
> a couple of tiny html files.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">I have a few thousand html files, about 10k on average. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">
>[...]
<br/>
> You said in another mail that you are writing the html files from
<br/>
> memory. (You must have a good memory! ;)
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Yes. It generates the html on the fly. </p>
<p> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">> I guess then you are using AddStreamToArchive.</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">No. I set </p>
<p style="margin: 0px;">
Writer.OnGetFileData :=@OnWriterGetFileData;
<br/>
And in OnWriterGetFileData I write the html into the stream.
</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">
> FullTextSearch must be set before this is called because the files are scanned as you add them. Also AddStreamToArchive
<br/>
> has a default parameter Compress: Boolean, are you setting this to false?
<br/>
>
<br/>
> PostAddStreamToArchive should only be used inside code called from the
<br/>
> OnLastFile callback.
<br/>
>
<br/>
> Can you send me the non working example.chm?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">I will do later at home. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>