Re: [greenstone-devel] expand_macros.pl

From jens wille
DateWed, 31 Aug 2005 19:32:04 +0200
Subject Re: [greenstone-devel] expand_macros.pl
In-Reply-To (4300FFE6-3040205-cs-waikato-ac-nz)
hi katherine! hi all!

i wanted to let you know that i have a new version - which i
consider almost final. it's got all the basic features that i think
it should have:

- additional/collection-specific macro files can be included

- macros set within the server can be included (though this might
not be of much help without reading the respective source file)

- readline support and persistent history for interactive browse mode

- interactive commands for browse mode

- read files from within interactive browse mode

- search for macros that use certain macros ("reverse" search)

- search for strings (regular expressions) in macro definitions

TODO:

- add "reverse search" and "string search" for browse mode

- handle macro options better (v, c, l, ...?) - at present there's
only rudimentary support for "v"

- ...any suggestions?

it can be downloaded from:
<http://blackwinter.de/tmp/expand_macros.pl.gz>

NOTE: you need to have the (possibly non-standard?) perl modules
'Getopt::Long' and 'Term::ReadLine' installed (though they should be
part of any standard perl installation on linux; on windows you can
use the ppm program to install them)

feedback is appreciated :-)

cheers & have fun with it ;-)
jens