home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
text_dtp
/
editor
/
turbotext
/
rexx
/
documentize.ttx
< prev
next >
Wrap
Text File
|
1995-07-10
|
1KB
|
45 lines
/** $VER: Documentize.ttx 2.0 (16.5.94)
**
** Many word processors and desktop publishing programs require line feeds to
** occur only at the end of paragraphs. Since TurboText is a text editor and
** not a word processor, it terminates each line with a linefeed. This macro
** will let you use TurboText to create documents for import into WORD
** processors and DTP programs. Basically, it sets the right margin WAY out
** and formats each block of text into one very long line. You can then save
** the file and allow your word processor or DTP program to handle wrapping
** the lines.
**
** Written by Denny Atkin
** Modified by Martin Taillefer
**/
OPTIONS RESULTS
SetDisplayLock ON
SetInputLock ON
SAY 'This may take a while on large files...'
GetPrefs RightMargin
oldMargin = RESULT
GetPrefs DynamicMargin
dynMargin = RESULT
SetPrefs RightMargin 32000
SetPrefs DynamicMargin OFF
MoveSOF
DO UNTIL RC ~= 0
FormatParagraph
MoveDown
END
SetPrefs RightMargin oldMargin
SetPrefs DynamicMargin dynMargin
MoveSOF
SetDisplayLock OFF
SetInputLock OFF