Text::WrapI18N(3pm)

Text::WrapI18N3pm

Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words

Usage

  use Text::WrapI18N qw(wrap $columns);
  wrap(firstheader, nextheader, texts);

Overview

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.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0–5.0
  3. 6.0–8
  4. 9–10
  5. 11
  6. 12–13
  7. Arch

Author

Tomohiro KUBOTA, <[email protected]>

From perl-text-wrapi18n 0.06-10 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.