TeX::Hyphen::Pattern - class for providing a collection of TeX hyphenation patterns for use with TeX::Hyphen.
This is version v1.1.8. To prevent plugging in of incompatible modules the version of the pluggable modules must be the same as this module.
$pat = TeX::Hyphen::Pattern->new();
$pat->label('Sh_ltn'); # Serbocroatian hyphenation patterns
$hyph = TeX::Hyphen->new($pat->filename);
The TeX::Hyphen module parses TeX files containing hyphenation patterns for use with TeX based systems. This module includes TeX hyphenation files from CPAN and hyphenation patterns from OpenOffice and provides a single interface to use them in TeX::Hyphen.
Constructs a new TeX::Hyphen::Pattern object.
Sets the label that determines the pattern to use. The label can be a simple language code, but since some languages can use multiple scripts with different hyphenation rules we talk about patterns and not just languages.
Returns a list of the available patterns.
Returns a list of the available patterns. (alias for available)
Returns the name of a temporary file that TeX::Hyphen can read it's pattern from for the current label. Returns undef if no pattern language matching the label was found.
The script tools/build_catalog_from_ctan.pl was used to get the TeX patterns file from the source on the internet and include them in this module. After that the copyright messages were manually checked and inserted to make sure this distribution complies with them.
TeX::Hyphen is only a test requirement of TeX::Hyphen::Pattern. You might want to use the patterns in another way and this module then just provides them independent of TeX::Hyphen.
Not all available pattern files are parsed correctly by TeX::Hyphen.
This module uses Log::Log4perl for logging. It's a fatal error when the temporary file containing the pattern can't be written.
Can't write to file '%s', stopped %s
The temporary file created by File::Temp could not be written.
Subtags aren't handled: en could pick en_US, en_UK or ena (when Apali would be available) and this is silently ignored, it just does a match on the string and picks what partly matches sorted, so using more exotic scripts this can go wrong badly.
Please report any bugs or feature requests at Bitbucket.
Roland van Ipenburg, <email@example.com>
Copyright 2009-2021 by Roland van Ipenburg
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
The included pattern files in lib/TeX/Hyphen/Pattern/ are licensed as stated in those files.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
To install TeX::Hyphen::Pattern, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.