[Zope-dev] Modifying Splitter.c to search on '+' & '#', and single letter words
Steve Alexander
steve@cat-box.net
Wed, 25 Jul 2001 22:52:52 +0100
Harry Wilkinson wrote:
> 2) Need to be able to search for single-letter words
> like 'C' - this is easy to modify Splitter.c to accomodate, but
> causes errors in GlobbingLexicon.py, even though the vocabulary is
> standard
You probably don't want to accommodate all single letter words -- just a
couple of them.
Why not provide an interface to you application where you pre-process
stuff to be cataloged replacing "C" with "CTheLanguage", and doing the
same for search criteria.
Of course, "C" would be more like "(^|[^A-Za-z0-9])C($|^[A-Za-z0-9])" or
something like that.
--
Steve Alexander
Software Engineer
Cat-Box limited