Main > Programming > Libraries >

TeX::Hyphen 0.140

TeX::Hyphen 0.140

Sponsored Links

TeX::Hyphen 0.140 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.022 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 932
Date added: 2007-04-06
Publisher: Jan Pazdziora,

TeX::Hyphen 0.140 description

TeX::Hyphen is a Perl module to hyphenate words using TeXs patterns.

SYNOPSIS

use TeX::Hyphen;
my $hyp = new TeX::Hyphen file => hyphen.tex,
style => czech, leftmin => 2,
rightmin => 2;

# my $hyp = new TeX::Hyphen "hyphen.tex";

my $word = "representation";
my @points = $hyp->hyphenate($word);
print $hyp->visualize($word), "n";

Constructor new() creates a new Hyphen object and loads the file with patterns into memory. Then you can ask it for hyphenation of a word by calling a method of this object. If no file is specified, the default Donald E. Knuths hyphen.tex, that is included in this module, is used instead.

Arguments to constructor

You can pass arguments to the new() call as hash, possible options are
file

Name of the file with the patters. It will be loaded and the resulting object will be able to hyphenate according to patterns in that file.

For convenience and backward compatibility, the file name can also be specified as the first (odd) parameter to new().

style

Various languages use special shortcuts to specify the patterns. Instead of doing the full TeX expansion, we use Perl code to parse the patterns. The style option loads TeX::Hyphen::name_of_the_style module and uses the parsing functions found in it.

Currently, the default czech (which also works for English alright) and german are available. See the TeX::Hyphen::czech man page for more information, especially if you want to support other languages/styles.

leftmin

The minimum starting substring which will not be hyphenated. This overrides the default specified in the style file.

rightmin

The minimum ending substring which will not be hyphenated. This overrides the default specified in the style file.

Methods that are supported

Method hyphenate() returns list of places where the word can be divided, so

$hyp->visualize(representation)

returns list (3, 5, 8, 10).

Method visualize() can be used to show these points, so

$hyp->visualize(representation)

should return rep-re-sen-ta-tion, at least for English patterns.

Variables $TeX::Hyphen::LEFTMIN and $TeX::Hyphen::RIGHTMIN can be used to restrict minimal starting and ending substring where it is not possible to hyphenate. They both default to 2 but should be changed to match the paratemers used to generate the patterns.

Variable $TeX::Hyphen::DEBUG can be set to see some statistics and processing.

The file with hyphenation patterns may contain and v accents, used in the Czech (and other) languages.

TeX::Hyphen 0.140 Screenshot

Advertisements

TeX::Hyphen 0.140 Keywords

Bookmark TeX::Hyphen 0.140

Hyperlink code:
Link for forum:

TeX::Hyphen 0.140 Copyright

WareSeeker periodically updates pricing and software information of TeX::Hyphen 0.140 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of TeX::Hyphen 0.140 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
TeX::DVI is a Perl module to write out TeXs DVI (DeVice Independent) file. Free Download
LaTeX::Table is a Perl module that provides functionality for an intuitive generation of LaTeX tables for reports or theses. Free Download
Tuxedo is a Perl extension module for Tuxedo. Free Download
HCKit::Template is a Perl module with a template system for HTML construction. Free Download
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. Free Download
AtExit is a Perl module that can perform exit processing for a program or object. Free Download
Template::Plugins is a Perl module with plugin provider module. Free Download
Mech-Tex 1000 is a desktop applets for SuperKaramba that displays cpu usage, internet flow in and out information. Free Download