Given a piece of text and some search terms, produces an object
which locates the search terms in the message, extracts a reasonable-length
string containing all the search terms, and optionally dumps the string out
as HTML text with the search terms highlighted in bold.
This module implements the Brew edit distance that is very close to
the dynamic programming technique used for the Wagner-Fischer (and so
for the Levenshtein) edit distance.
Text::Decorator is a framework for marking up plain text into various
formats by applying a chain of filters. For instance, you might apply a
filter which will cause URIs in text to be presented as links if the text
is exported as HTML.
This class subclasses Text::Diff::Unified, a formatting class provided
by the Text::Diff module, to add XHTML markup to the unified diff
format. For details on the interface of the diff() function, see the
Text::Diff documentation.
In the XHTML formatted by this module, the contents of the diff returned
by diff() are wrapped in a <div> element, as is each hunk of the diff.
Within each hunk, all content is properly HTML encoded using
HTML::Entities, and the various sections of the diff are marked up with
the appropriate XHTML elements.
Text::Diff provides a basic set of services akin to the diff(1) utility.
It is not anywhere near as feature complete as diff(1), but it is better
integrated with Perl and available on all platforms. It is often faster
than shelling out to a system's diff(1) executable for small files, and
generally slower on larger files.
-Anton
<tobez@FreeBSD.org>
Text::CSV provides facilities for the composition and decomposition of
comma-separated values. An instance of the Text::CSV class can combine
fields into a CSV string and parse a CSV string into fields.
To build some applications to arbitrate manipulations under concurrent
works, it is necessary to compare three texts line by line. This diff3
code into Perl language has ported from GNU diff3.c widely used.
This module implements a "sounds like" algorithm developed by Lawrence
Philips which he published in the June, 2000 issue of C/C++ Users
Journal. Double Metaphone is an improved version of Philips' original
Metaphone algorithm.
-Anton
<tobez@FreeBSD.org>
Library to compare files and strings, used in Kompare and KDevelop.
This module implements a single function, tchomp, which will remove all known
line separators.
The regular chomp() works only on the value in $/, which can be difficult if
working in multi-platform environments.