BSD Ports

textproc/p5-Text-Context-EitherSide 1.4nb17 NetBSD

Get n words either side of search keywords

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
artistic-2.0
Categories
textproc, perl5
Package size
7.4 KiB, 11.9 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDtextproc/p5-Text-Context-EitherSide1.4nb17
FreeBSDtextproc/p5-Text-Context-EitherSide1.4_1
DragonFlytextproc/p5-Text-Context-EitherSide1.4_1
HardenedBSDtextproc/p5-Text-Context-EitherSide1.4_1
GhostBSDtextproc/p5-Text-Context-EitherSide1.4_1

Install

Binary package:

pkgin install p5-Text-Context-EitherSide

From pkgsrc:

cd /usr/pkgsrc/textproc/p5-Text-Context-EitherSide && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.4nb17
NetBSD 10.1 aarch641.4nb16
SmartOS / illumos x86_641.4nb17
macOS 15 arm641.4nb17

Dependencies

Run dependencies 1
Required by 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0