logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dotextwrap - line-folding (text-wrapping) filter program with i18n support

Author

       Tomohiro KUBOTA <kubota@debian.org>.

                                                   2003-08-24                                      dotextwrap(1)

Description

dotextwrap  is a small filter to wrap text or fold lines.  Text-wrapping means formatting a given text by
       adding newline characters at proper positions so that the  text  fits  the  given  width  (or  number  of
       columns) of the terminal.

       Since this is a filter, it reads from standard input and writes to standard output.

       Unlike other softwares, this supports internationalization.

       At first, this automatically detects the currentLC_CTYPElocale and follows it.

       Next,  this supports multibyteencodings such as UTF-8 and EUC-JP.  In multibyte encodings, one character
       consists from one or more bytes.

       Third, this supports fullwidthcharacters such as CJK Ideogram, Katakana, Hiragana,  and  Hangul.   These
       characters occupy two columns per one character on the terminal.

       Forth,  this  supports combiningcharacters such as Thai and accents for Latin scripts.  These characters
       occupy zero columns per one character on the terminal.

       Fifth, this supports languages which do not use whitespaces between words.  In these languages, lines can
       be folded at any places with small amount of exception (such as before commas).

Name

       dotextwrap - line-folding (text-wrapping) filter program with i18n support

See Also

       Manual pages of textwrap(3), setlocale(3), locale(7), charsets(7), and UTF-8(7).

Synopsis

       dotextwrap [<columns> [<tabs> [<header1> [<header2>]]]]

See Also