[fpc-devel] [PATCH] for chm search ability for fpdoc

2008-11-13 Thread Andrew Haines
hi attached is a patch to add the option --make-searchable to fpdoc for 
the chm target


It can take some time to index all the documents in the rtl for example.

Regards,

Andrew

Index: dw_htmlchm.inc
===
--- dw_htmlchm.inc  (revision 11973)
+++ dw_htmlchm.inc  (working copy)
@@ -14,6 +14,7 @@
 FIndexName,
 FDefaultPage: String;
 FCSSFile: String;
+FMakeSearchable,
 FAutoTOC,
 FAutoIndex: Boolean;
 FOtherFiles: String;
@@ -60,6 +61,8 @@
 FChm.FilesToCompress.LoadFromFile(FOtherFiles);
   end;
 
+  FChm.FullTextSearch := FMakeSearchable;
+
 end;
 
 function TCHMHTMLWriter.RetrieveOtherFiles(const DataName: String; out
@@ -492,6 +495,8 @@
 FAutoIndex := True
   else if Cmd = '--auto-toc' then
 FAutoTOC := True
+  else if Cmd = '--make-searchable' then
+FMakeSearchable := True
   else
 Result:=inherited InterPretOption(Cmd, Arg);
 end;
Index: dglobals.pp
===
--- dglobals.pp (revision 11973)
+++ dglobals.pp (working copy)
@@ -116,6 +116,7 @@
   SCHMUsageCSSFile = 'Filename of a .css file to be included in the chm.';
   SCHMUsageAutoTOC = 'Automatically generate a Table of Contents. Ignores --toc-file';
   SCHMUsageAutoIDX = 'Automatically generate an Index. Ignores --index-file';
+  SCHMUsageMakeSearch = 'Automatically generate a Search Index from filenames that match *.htm*';
 
   STitle   = 'FPDoc - Free Pascal Documentation Tool';
   SVersion = 'Version %s [%s]';
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [Lazarusdev] [fpc-devel] Documentation for FCL files not already in the FreePascal docs

2008-11-13 Thread Vincent Snijders

Christopher Kirkpatrick schreef:




On Wed, 05 Nov 2008 15:44:59 +0100
 Vincent Snijders <[EMAIL PROTECTED]> wrote:
Chris, feel free to add these new xml docs to a new 

directory:
http://svn.freepascal.org/svn/lazarus/trunk/docs/xml/fcl

I will try to incorporate these files in the nightly doc builds, 
either by patching the Makefile in fpcdocs or by creating new shell 
script based on the html/build_lcl_html.sh script.



Thank you very much, Vincent. That will be most helpful.


I have updated the build script for the docs are sourceforge. See 
http://lazarus-ccr.sourceforge.net/fpcdoc/fcl/fpcanvas/index.html and 
http://lazarus-ccr.sourceforge.net/fpcdoc/fcl/fpimage/index.html


I got the following errors, but I don't know why:
[#fcl.FPimage.TFPCustomImage.Progress] Invalid description (illegal XML 
element: "printshort")
[#fcl.FPimage.TFPCustomImageHandler.Progress] Invalid description 
(illegal XML element: "printshort")


I just copy the lazarus/docs/xml/fcl files into fpcdocs dir and have 
adapted the Makefile.fpc as in attached patch.


Chris, if you add a new file, I need to adapt the Makefile.fpc. If I 
don't notice or forget to make that change, feel free to send me a notice.


html.bzip2 and chm with these new docs follow soon.

Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Re: Unicode support (again)

2008-11-13 Thread ABorka

Nice thread - as always when unicode handling is brought up :)

There should really be a decision and feature list as soon as possible 
so the implementation can go on. There is really no need to spend a year 
on these decisions.


Proper unicode handling strategy/implementation with backward and Delphi 
compatibility as well as a useable Lazarus debugger (Property watch, CPU 
window, etc.) should be the #1 priority now.



Marco van de Voort wrote:

In our previous episode, Jonas Maebe said:

So could somebody from the core FPC team summarize or give some
roadmap as to what is happing or planned for FPC + Unicode support?
If anyone can, it's Florian, since he has done all the work in this  
area until now. There is no roadmap document or official planning or so.


I summarized some earlier summer discussions here:

http://www.stack.nl/~marcov/unicode.pdf

but I haven't it updated since that date.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel