98 lines
2.7 KiB
HTML
98 lines
2.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of WrapI18N</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>WrapI18N</H1>
|
|
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2019-09-27<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Text::WrapI18N - Line wrapping module with support for multibyte, fullwidth,
|
|
and combining characters and languages without whitespaces between words
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
use Text::WrapI18N qw(wrap $columns);
|
|
wrap(firstheader, nextheader, texts);
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This module intends to be a better Text::Wrap module.
|
|
This module is needed to support multibyte character encodings such
|
|
as <FONT SIZE="-1">UTF-8,</FONT> EUC-JP, EUC-KR, <FONT SIZE="-1">GB2312,</FONT> and Big5. This module also supports
|
|
characters with irregular widths, such as combining characters (which
|
|
occupy zero columns on terminal, like diacritical marks in <FONT SIZE="-1">UTF-8</FONT>) 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.
|
|
<P>
|
|
|
|
Like Text::Wrap, hyphenation and ``kinsoku'' processing are not supported,
|
|
to keep simplicity.
|
|
<P>
|
|
|
|
<I>wrap(firstheader, nextheader, texts)</I> 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.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+locale">locale</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?7+utf-8">utf-8</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?7+charsets">charsets</A></B>(7)
|
|
<A NAME="lbAF"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
|
|
|
|
Tomohiro <FONT SIZE="-1">KUBOTA,</FONT> <<A HREF="mailto:kubota@debian.org">kubota@debian.org</A>>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT AND LICENSE</H2>
|
|
|
|
|
|
|
|
Copyright 2003 by Tomohiro <FONT SIZE="-1">KUBOTA</FONT>
|
|
<P>
|
|
|
|
This library is free software; you can redistribute it and/or modify
|
|
it under the same terms as Perl itself.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">AUTHOR</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">COPYRIGHT AND LICENSE</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:58 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|