Ported ReplacePair and TransformItems
Began focusing on the more Transformer-specific libraries for porting to Delphi 2009, specifically the ReplacePair form/unit, and then the TransformItems library, which defines the core classes of transformation items (currently only TReplaceItem and TScriptItem, but soon to include TXSLTItem).
The ReplacePair form was pretty straightforward, but there was one problem with TPerlRegEx, which I'm using to replace TURESearch. Compilation would fail with a fatal error, for no discernible reason. I eventually tracked down this bug, and was able to use the workaround (adding a pointless call to the Match method).
Moving into TransformItems.pas I started to hit the inevitable problems that come with using the open-source JavaScript Bridge library, which has lain untended since early 2004. I had to make one tweak to js15decl.pas, to overcome an ambiguity with StrDispose, which now has two variants, one for PAnsiChar and one for PWideChar. I chose the latter version, so it now compiles, but I have no idea whether it will work or not. However, I did also find this project: (http://code.google.com/p/rawfpcjs/) (blog is blocking Google URLs in links at the moment), which is very recent, and looks promising; if there are problems with the use of JSBridge in D2009, I can probably move to this alternative, and it might even make life simpler. There's still a lot of work to do on TransformItems, and then on the individual ScriptItem units, but I'm getting close to working on the actual application, finally.