summaryrefslogtreecommitdiff
path: root/textproc/p5-Text-Context-EitherSide
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-04-17 15:15:25 +0000
committerminskim <minskim@pkgsrc.org>2006-04-17 15:15:25 +0000
commit180288a2983f4132e19b7b4699f52e73c6452e69 (patch)
treed9d946bf0bc1db804a2695c36ad90c2e1ef2a675 /textproc/p5-Text-Context-EitherSide
parent375b5e49334cb0592e3e8229da68c697205ed31b (diff)
downloadpkgsrc-180288a2983f4132e19b7b4699f52e73c6452e69.tar.gz
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.
Diffstat (limited to 'textproc/p5-Text-Context-EitherSide')
-rw-r--r--textproc/p5-Text-Context-EitherSide/DESCR20
-rw-r--r--textproc/p5-Text-Context-EitherSide/Makefile16
-rw-r--r--textproc/p5-Text-Context-EitherSide/PLIST1
-rw-r--r--textproc/p5-Text-Context-EitherSide/distinfo5
4 files changed, 42 insertions, 0 deletions
diff --git a/textproc/p5-Text-Context-EitherSide/DESCR b/textproc/p5-Text-Context-EitherSide/DESCR
new file mode 100644
index 00000000000..6dc56ec09bd
--- /dev/null
+++ b/textproc/p5-Text-Context-EitherSide/DESCR
@@ -0,0 +1,20 @@
+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.
diff --git a/textproc/p5-Text-Context-EitherSide/Makefile b/textproc/p5-Text-Context-EitherSide/Makefile
new file mode 100644
index 00000000000..edaf9bb3609
--- /dev/null
+++ b/textproc/p5-Text-Context-EitherSide/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/17 15:15:25 minskim Exp $
+
+DISTNAME= Text-Context-EitherSide-1.3
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
+
+MAINTAINER= kuli0020@umn.edu
+HOMEPAGE= http://cpan.uwinnipeg.ca/dist/Text-Context-EitherSide
+COMMENT= Get n words either side of search keywords
+
+PERL5_REQD+= 5.6.0
+PERL5_PACKLIST= auto/Text/Context/EitherSide/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-Text-Context-EitherSide/PLIST b/textproc/p5-Text-Context-EitherSide/PLIST
new file mode 100644
index 00000000000..c6f57ff037a
--- /dev/null
+++ b/textproc/p5-Text-Context-EitherSide/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/17 15:15:25 minskim Exp $
diff --git a/textproc/p5-Text-Context-EitherSide/distinfo b/textproc/p5-Text-Context-EitherSide/distinfo
new file mode 100644
index 00000000000..d67d90e7d5e
--- /dev/null
+++ b/textproc/p5-Text-Context-EitherSide/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/04/17 15:15:25 minskim Exp $
+
+SHA1 (Text-Context-EitherSide-1.3.tar.gz) = 3172207854b255f38237f08b7f5a96523330a969
+RMD160 (Text-Context-EitherSide-1.3.tar.gz) = 40b2ef19b115f1dbec63550c28cc850d7fd24d64
+Size (Text-Context-EitherSide-1.3.tar.gz) = 4692 bytes