Name : perl-Text-Reflow
| |
Version : 1.17
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 18:34:02
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-Reflow-1.17-lp155.1.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl module for reflowing text files using Knuth\'s paragraphing algorithm
|
Description :
These routines will reflow the paragraphs in the given file, filehandle, string or array using Knuth\'s paragraphing algorithm (as used in TeX) to pick \"good\" places to break the lines.
Each routine takes ascii text data with paragraphs separated by blank lines and reflows the paragraphs. If two or more lines in a row are \"indented\" then they are assumed to be a quoted poem and are passed through unchanged (but see below)
The reflow algorithm tries to keep the lines the same length but also tries to break at punctuation, and avoid breaking within a proper name or after certain _connectives_ (\"a\", \"the\", etc.). The result is a file with a more \"ragged\" right margin than is produced by \'fmt\' or \'Text::Wrap\' but it is easier to read since fewer phrases are broken across line breaks.
For \'reflow_file\', if $infile is the empty string, then the input is taken from STDIN and if $outfile is the empty string, the output is written to STDOUT. Otherwise, $infile and $outfile may be a string, a FileHandle reference or a FileHandle glob.
A typical invocation is:
reflow_file(\"myfile\", \"\");
which reflows the whole of _myfile_ and prints the result to STDOUT.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/x86_64 |