Text::Flow::Wrap(3pm) | User Contributed Perl Documentation | Text::Flow::Wrap(3pm) |
Text::Flow::Wrap - Flexible word wrapping for not just ASCII output.
use Text::Flow::Wrap; # for regular ASCII usage ... my $wrapper = Text::Flow::Wrap->new( check_width => sub { length($_[0]) < 70 }, ); # for non-ASCII usage ... my $wrapper = Text::Flow::Wrap->new( check_width => sub { $pdf->get_text_width($_[0]) < 500 }, ); my $text = $wrapper->wrap($text);
The main purpose of this module is to provide text wrapping features without being tied down to ASCII based output and fixed-width fonts.
My needs were for sophisticated test control in PDF and GIF output formats in particular.
These methods deal with breaking up the paragraphs into its parts, which can then be processed through the re-assembling methods.
These methods are mostly used internally, but more sophisticated tools might need to access them as well (see Text::Flow).
These methods deal with putting the paragraph parts back together after the disassembling methods have done thier work.
These methods are mostly used internally, but more sophisticated tools might need to access them as well (see Text::Flow)
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Stevan Little <stevan@iinteractive.com>
Copyright 2007 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-06-28 | perl v5.34.0 |