App::termpub::Hyphen - determine positions for hyphens inside words
This module implements Knuth-Liang algorithm to find positions inside words where it is possible to insert hyphens to break a line.
use Text::Hyphen; my $hyphenator = new Text::Hyphen; print $hyphenator->hyphenate('representation'); # prints rep-re-sen-ta-tion
This is a fork of Text::Hyphen to use hunspell dictionaries.
This version does not export anything and uses OOP interface. This will probably change.
Creates the hyphenator object.
You can pass several options:
Minimum length of word to be hyphenated. Shorter words are returned right away. Defaults to 5.
Minimal prefix to leave without any hyphens. Defaults to 2.
Minimal suffix to leave wothout any hyphens. Defaults to 2.
$word by inserting
$delim into hyphen positions.
$delim defaults to dash ("-").
<kappa at cpan.org>
<mario at domgoergen.com>
Copyright 2008 Alex Kapranoff. Copyright 2019 Mario Domgörgen.
This program is released under the following license: BSD.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 197:
Non-ASCII character seen before =encoding in 'Domgörgen'. Assuming UTF-8
- Around line 199:
=back without =over