Charles Dye
Super Moderator
- May
- 5,098
- 133
Staff member
I'm uploading a copy of my word-wrap utility in case it's useful to anyone. This gizmo will word-wrap text to fit a specified number of columns. It's designed for use with English prose, and may give weird or undesired results when used for source code, program output, HTML, or whatnot.
This filter has a number of features which I haven't seen in similar utilities. It can handle either unwrapped input text (EOL characters only at the end of paragraphs) or pre-wrapped text (EOLs used to enforce some other, undesired width.) It can break after hyphens as well as at spaces; it recognizes soft hyphens and handles them appropriately. It accepts OEM, UTF-16, and (not well tested) UTF-8. It can condense repeated spaces and indent paragraphs. It includes a few other trivial text-prettification features.
unm.edu/~cdye/dl/wrap.zip
This filter has a number of features which I haven't seen in similar utilities. It can handle either unwrapped input text (EOL characters only at the end of paragraphs) or pre-wrapped text (EOLs used to enforce some other, undesired width.) It can break after hyphens as well as at spaces; it recognizes soft hyphens and handles them appropriately. It accepts OEM, UTF-16, and (not well tested) UTF-8. It can condense repeated spaces and indent paragraphs. It includes a few other trivial text-prettification features.
unm.edu/~cdye/dl/wrap.zip