25 Jun 2003 14:20:35 UTC
- Distribution: Text-WrapI18N
- Module version: 0.06
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (5369 / 1 / 1)
- KwaliteeBus factor: 0
- 42.11% Coverage
- License: unknown
- Activity24 month
- Download (3.72KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Text::WrapI18N - Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words
use Text::WrapI18N qw(wrap $columns); wrap(firstheader, nextheader, texts);
This module intends to be a better Text::Wrap module. This module is needed to support multibyte character encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, and Big5. This module also supports characters with irregular widths, such as combining characters (which occupy zero columns on terminal, like diacritical marks in UTF-8) and fullwidth characters (which occupy two columns on terminal, like most of east Asian characters). Also, minimal handling of languages which doesn't use whitespaces between words (like Chinese and Japanese) is supported.
Like Text::Wrap, hyphenation and "kinsoku" processing are not supported, to keep simplicity.
wrap(firstheader, nextheader, texts) is the main subroutine of Text::WrapI18N module to execute the line wrapping. Input parameters and output data emulate Text::Wrap. The texts have to be written in locale encoding.
locale(5), utf-8(7), charsets(7)
Tomohiro KUBOTA, <email@example.com>
Copyright 2003 by Tomohiro KUBOTA
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Text::WrapI18N, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Text::WrapI18N
For more information on module installation, please visit the detailed CPAN module installation guide.