Name : perl-Text-PageLayout
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 18:40:00
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-PageLayout-0.05-lp155.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Distribute paragraphs onto pages, with headers and footers
|
Description :
Text::PageLayout breaks up a list of paragraphs into pages. It supports headers and footers, possibly varying by page number.
It operates under the assumption that all text blocks that are passed to (header, footer, paragraphs, separator) are either the empty string, or terminated by a newline. It also assumes that all those text blocks are properly line-wrapped already.
The header and footer can either be strings, or subroutines that will be called, and must return the string that is then used as a header or a footer. In both cases, the string that is used as header or footer can be post-processed with a custom callback \'process_template\'.
The layout of a result page is always the header first, then as many paragraphs as fit on the page, separated by \'separator\', followed by as many blank lines as necessary to fill the page (if \'fillup_pages\' is set, which it is by default), followed by the footer.
If the naive layouting algorithm (take as many paragraphs as fit) leaves more than \'tolerance\' empty fill lines, the \'split_paragraph\' callback is called, which can attempt to split the paragraph into small chunks, which are nicer to format.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/noarch |