1WrapI18N(3) User Contributed Perl Documentation WrapI18N(3)
2
3
4
6 Text::WrapI18N - Line wrapping module with support for multibyte,
7 fullwidth, and combining characters and languages without whitespaces
8 between words
9
11 use Text::WrapI18N qw(wrap $columns);
12 wrap(firstheader, nextheader, texts);
13
15 This module intends to be a better Text::Wrap module. This module is
16 needed to support multibyte character encodings such as UTF-8, EUC-JP,
17 EUC-KR, GB2312, and Big5. This module also supports characters with
18 irregular widths, such as combining characters (which occupy zero
19 columns on terminal, like diacritical marks in UTF-8) and fullwidth
20 characters (which occupy two columns on terminal, like most of east
21 Asian characters). Also, minimal handling of languages which doesn't
22 use whitespaces between words (like Chinese and Japanese) is supported.
23
24 Like Text::Wrap, hyphenation and "kinsoku" processing are not
25 supported, to keep simplicity.
26
27 wrap(firstheader, nextheader, texts) is the main subroutine of
28 Text::WrapI18N module to execute the line wrapping. Input parameters
29 and output data emulate Text::Wrap. The texts have to be written in
30 locale encoding.
31
33 locale(5), utf-8(7), charsets(7)
34
36 Tomohiro KUBOTA, <kubota@debian.org>
37
39 Copyright 2003 by Tomohiro KUBOTA
40
41 This library is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44
45
46perl v5.36.0 2023-01-20 WrapI18N(3)