[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Automated Clean-up of Ragged Text ?



At 06:10 PM 11/1/00 -0800, jr_fox@xxxxxxxx wrote:

>By ragged formatting, I mean that there are frequent, random gaps >between words of from 5 to 20 spaces, the lines are not of any >approximately consistent length, and carriage returns are applied quite >haphazardly. You wonder how anything could have been written, >posted, or distributed that way, but it was. (Or maybe it all >magically looks right if you loaded it into OUTLOOK, I dunno.) This won't delete excess spaces, but it will clean up the carriage returns: ---------- asc1line = 1 line/para for ASCII--Maynard Hogg (09/02/87) Usage: asc1line outfile Removes all "newlines" (\n = CR+LF) from ASCII text files except those followed by the "whitespace" characters \n, tab, or \s, space. In other words, eliminates intervening carriage returns to convert ASCII text into the "one long line per paragraph" used or at least supported by such word processors as WordStar, Xywrite, MS Word, WordPerfect, and Sprint. ---------- Let me know if you want me to send it to you (about 8 kB). -- Stephen A. Carter High-Tech Information Center Nagoya, Ltd. mailto:scarter@xxxxxxxx Nagoya, Japan http://www.geekynetstuff.com