|
NAMEText::Flow::Wrap - Flexible word wrapping for not just ASCII output.SYNOPSISuse 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); DESCRIPTIONThe 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. METHODS
Attribute Accessors
Paragraph DisassemblingThese 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).
Paragraph ReassemblingThese 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)
Introspection
BUGSAll 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.AUTHORStevan Little <stevan@iinteractive.com>COPYRIGHT AND LICENSECopyright 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.
Visit the GSP FreeBSD Man Page Interface. |