Pity it is not written in FPC, that makes maintenance harder.
Note that the bottleneck is parsing the HTML files embedded in the CHMs to plain text so that features can be extracted, which would be relatively slow in any language.
Apart from that... it's open source Marco, feel free to rewrite it >:-)
If Pascal were better than Perl for this I'd have used it. It's not: Perl was specifically written for text manipulation.
Maybe that CHMs for older versions can be generated using modern fpdoc + old sources and doc sources.
There are possible breaking points:
- rtl/fcl doc sources didn't change that much for CHM support, but better errorhandling was added, and that found some problems
- fcl-passrc might be more strict and not be able parse old sources (things like duplicate use of identifiers in objfpc mode) as well as older calling conventions or constructs
The only way of knowing is trying I guess.
We've obviously discussed this elsewhere, but I suspect that I originally did it in the 2.6 (or possibly even 2.4) era which is presumably why I started with PDFs. I ran into a problem when I started trying to look at the "when-introduced" issue: it looked as though I needed to bring up specific FPC versions with specific OS prerequisites, and while I was already using VMs and paravirtualisation such things were less mature than they are today.
I only discovered that the CHMs were missing after I'd indexed 3.x and started working backwards: while I'd be very surprised if anybody was still using anything older than 2.6 I still find my inability to do this properly irritating.
Updated: I've uploaded a generated index to
www.kdginstruments.co.uk/public/fpc-ptx.zipMarkMLl