[Zope-dev] Modifying Splitter.c to search on '+' & '#', and single letter words

Chris Withers chrisw@nipltd.com
Wed, 25 Jul 2001 23:44:18 +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.

For simplicities sake, we do ;-)

> 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.

That sounds mighty hacky :-S

cheers,

Chris