-
Notifications
You must be signed in to change notification settings - Fork 0
Simple but effective text formatter.
License
gensimone/ftext
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This program was made for my university's Operating Systems [2] project.
Ftext (format text) allows you to format text like a newspaper article.
Text formatting is done using the specified parameters (see OPTIONS).
Each column of the resulting text is formatted according to the following rules:
1) Words in the line are aligned to the edges if they are not part of the last line of the paragraph.
2) Words in the line are aligned to the left side of the column if they are part of the last line of the paragraph.
For example:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
Produces the following output:
lorem ipsum dolor sit
amet, consectetur
adipiscing elit, sed
incididunt ut labore
et dolore magna
aliqua.
/// Available options.
*for an up-to-date list of default option values, see ftext -h*
- -c, --columns ::
Number of columns.
- -l, --lines ::
Number of lines.
- -w, --width ::
Number of characters on a row of a column.
- -g, --gap ::
Number of spaces between columns
- -h, --help ::
Show help and exit.
- -v, --version ::
Output version information and exit.
See LICENSE for copyright informations.About
Simple but effective text formatter.
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published