Short: Reformats text files (CLI-Pure) +GUI Author: dck@prometheus.hol.gr (D. Keletsekis) Uploader: dck prometheus hol gr (D Keletsekis) Type: util/cli Version: 1.0 Requires: WB 2+ Architecture: m68k-amigaos This is a small CLI command for rewrapping text files. It is pure and can be made resident (Resident c:wrap pure add) Usage : Wrap FILE/A,NEWFILE,L=LENGTH/K/N,TAB/K/N,P=PARA/K/N,STRIPCR/S,ADDCR/S FILE = Must be given. It's the file which you want to rewrap and it must be a text file! *WARNING* - if you re-wrap a binary or a PowerPacked or XPK etc file, the file will become trash! NEWFILE = This is the name of the output file. If it is not given, then the input FILE will be overwriten! LENGTH = The new line length you want. If this is not given, the default is 1000 characters, which results in leaving the line length same (unless you have lines over 1000 characters long). If the Length given is too small to fit a single word, then the word will be split. Max length is 1000 characters. TAB = If this option is given, then any tabs found will be dealt with in accordance with the number of spaces specified, and be converted to spaces. Maximum tab size is 80 characters. *Warning* If TAB size is not declared, all tabs will be deleted. This is not as bad as you may imagine, since Re- wrapping files with a lot of tabs looks ugly anyway.. PARA = This option is weird but usefull. It lets you define the number of NEWLINE characters that Wrap will read before puting 1 NEWLINE character. Most text documents have a NEWLINE character at the end of every line, and 2 NEWLINES to denote a paragraph. So if you put PARA=2 you will get much better formated text because the single NEWLINE characters will be ignored. This option also allows you to re-wrap files to a longer line length than the original file. The default is PARA=1, i.e. leave them un-altered. Maximum is 30 newline characters. STRIPCR = Strips those PC Carriage Return charaters. ADDCR = Adds Carriage returns after every NEWLINE character, so you can tell PC users what you really think.. By declaring both STRIPCR *and* ADDCR you could ReWrap a PC file and keep it in PC format. Example : Wrap MyFile MyOutputFile LENGTH=60 TAB=5 PARA=2 STRIPCR There is also a GUI script included, which makes this litle command very powerful & easy to use if you want to take the same actions in a lot of files. The GUI needs a program called Gui4Cli to run it, available at : 1.- http://users.hol.gr/~dck/gcmain.htm 2.- Aminet, under Dev/Gui/Gui4Cli.lha D. Keletsekis December 1996 This ReadMe file is also included in the Archive. This program is FreeWare, but remains the Copyright of D.Keletsekis. No guarantees as to it's performance and actions is made or implied. Use it at your own risk.