Acme-CPANModules-WrappingText
view release on metacpan or search on metacpan
Author: HATA <https://metacpan.org/author/HATA>
Specifically for folding Japanese (and other CJK) text.
Text::ANSI::Fold
Author: UTASHIRO <https://metacpan.org/author/UTASHIRO>
Text::ANSI::Util
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
For wrapping text that contains ANSI escape/color codes.
Text::ANSI::WideUtil
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
For wrapping text that contains ANSI escape/color codes *and*
Unicode wide characters.
Text::WideChar::Util
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
For wrapping text that contains Unicode wide characters.
Text::Fold
Author: DMUEY <https://metacpan.org/author/DMUEY>
| Text::ANSI::Util | yes | no | no |
| Text::ANSI::WideUtil | yes | no | yes |
| Text::WideChar::Util | no | no | yes |
| Text::Fold | no | no | yes |
| Text::LineFold | no | no | no |
| Text::Wrap | no | no | no |
+----------------------+--------------+-------------+-----------------+
Notes:
1. can_ansi: Can wrap text that contains ANSI color/escape codes
2. can_cjk: Can wrap CJK wide characters
3. can_unicode: Can wrap Unicode text, including wide characters
FAQ
What is an Acme::CPANModules::* module?
An Acme::CPANModules::* module, like this module, contains just a list
of module names that share a common characteristics. It is a way to
categorize modules and document CPAN. See Acme::CPANModules for more
details.
lib/Acme/CPANModules/WrappingText.pm view on Meta::CPAN
summary => "List of modules and utilities to wrap text",
description => <<'_',
See also: <prog:fold> Unix command line.
_
# TODO: use Module::Features
entry_features => {
can_unicode => {summary => 'Can wrap Unicode text, including wide characters'},
can_cjk => {summary => 'Can wrap CJK wide characters'},
can_ansi => {summary => 'Can wrap text that contains ANSI color/escape codes'},
},
entries => [
{
module => 'App::TextWrapUtils',
script => 'textwrap',
description => <<'_',
CLI front-end for various backends mentioned in this list.
_
lib/Acme/CPANModules/WrappingText.pm view on Meta::CPAN
can_unicode => 1,
can_cjk => 1,
can_ansi => 1,
},
},
{
module => 'Text::ANSI::Util',
function => 'ta_wrap',
description => <<'_',
For wrapping text that contains ANSI escape/color codes.
_
features => {
can_unicode => 0,
can_cjk => 0,
can_ansi => 1,
},
},
{
module => 'Text::ANSI::WideUtil',
function => 'ta_mbwrap',
description => <<'_',
For wrapping text that contains ANSI escape/color codes *and* Unicode wide
characters.
_
features => {
can_unicode => 1,
can_cjk => 0,
can_ansi => 1,
},
},
{
lib/Acme/CPANModules/WrappingText.pm view on Meta::CPAN
=item L<Text::ANSI::Fold>
Author: L<UTASHIRO|https://metacpan.org/author/UTASHIRO>
=item L<Text::ANSI::Util>
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
For wrapping text that contains ANSI escape/color codes.
=item L<Text::ANSI::WideUtil>
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
For wrapping text that contains ANSI escape/color codes I<and> Unicode wide
characters.
=item L<Text::WideChar::Util>
Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>
For wrapping text that contains Unicode wide characters.
lib/Acme/CPANModules/WrappingText.pm view on Meta::CPAN
| Text::Fold | no | no | yes |
| Text::LineFold | no | no | no |
| Text::Wrap | no | no | no |
+----------------------+--------------+-------------+-----------------+
Notes:
=over
=item 1. can_ansi: Can wrap text that contains ANSI color/escape codes
=item 2. can_cjk: Can wrap CJK wide characters
=item 3. can_unicode: Can wrap Unicode text, including wide characters
=back
=head1 FAQ
=head2 What is an Acme::CPANModules::* module?
lib/Module/Features/TextWrapper.pm view on Meta::CPAN
v => 1,
summary => 'Features of modules that wrap text',
description => <<'_',
Keywords: fold
_
features => {
can_unicode => {summary => 'Can wrap Unicode text, including wide characters'},
can_cjk => {summary => 'Can wrap CJK wide characters'},
can_ansi => {summary => 'Can wrap text that contains ANSI color/escape codes'},
},
);
1;
# ABSTRACT: Features of modules that wrap text
__END__
=pod
lib/Module/Features/TextWrapper.pm view on Meta::CPAN
Keywords: fold
=head1 DEFINED FEATURES
Features defined by this module:
=over
=item * can_ansi
Optional. Type: bool. Can wrap text that contains ANSI color/escape codes.
=item * can_cjk
Optional. Type: bool. Can wrap CJK wide characters.
=item * can_unicode
Optional. Type: bool. Can wrap Unicode text, including wide characters.
=back
( run in 0.401 second using v1.01-cache-2.11-cpan-c21f80fb71c )