Import p5-Text-Context-EitherSide from pkgsrc-wip. Packaged by Roman Kulik.
authorminskim <minskim>
Mon, 17 Apr 2006 15:15:25 +0000 (15:15 +0000)
committerminskim <minskim>
Mon, 17 Apr 2006 15:15:25 +0000 (15:15 +0000)
commitc3e4185d5671014c60c17355270d9f910c04292e
tree36d09964a44773a6cc6b5952af19cbabc9507b24
parent9063995901f0d625769a34d02dacae8aa89b2c5f
Import p5-Text-Context-EitherSide from pkgsrc-wip.  Packaged by Roman Kulik.

Suppose you have a large piece of text - typically, say, a web page or
a mail message.  And now suppose you've done some kind of full-text
search on that text for a bunch of keywords, and you want to display
the context in which you found the keywords inside the body of the
text.

A simple-minded way to do that would be just to get the two words
either side of each keyword.  But hey, don't be too simple minded,
because you've got to make sure that the list doesn't overlap.  If you
have

    the quick brown fox jumped over the lazy dog

and you extract two words either side of ``fox'', ``jumped'' and
``dog'', you really don't want to end up with

    quick brown fox jumped over brown fox jumped over the the lazy dog

so you need a small amount of smarts.  This module has a small amount
of smarts.
textproc/p5-Text-Context-EitherSide/DESCR [new file with mode: 0644]
textproc/p5-Text-Context-EitherSide/Makefile [new file with mode: 0644]
textproc/p5-Text-Context-EitherSide/PLIST [new file with mode: 0644]
textproc/p5-Text-Context-EitherSide/distinfo [new file with mode: 0644]