home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
text_dtp
/
editor
/
turbotext
/
rexx
/
stripman.ttx
< prev
next >
Wrap
Text File
|
1995-07-10
|
1KB
|
55 lines
/** $VER: StripMan.ttx 2.0 (13.3.94)
**
** Strip character sequences generated by the UNIX "man" program.
**/
OPTIONS RESULTS
OPTIONS FAILAT 11
SetDisplayLock ON
'SetStatusBar temporary "Working..."'
call SaveState
MoveSOF; 'FindChange ALL FIND "' || '_'||'08'x || '" CHANGE ""' /* remove overstruck '_' */
MoveSOF; 'FindChange ALL FIND "' || 'o'||'08'x||'+' || '" CHANGE *' /* replace overstruck bullets w/ splats */
call RestoreState
SetDisplayLock OFF
return
/* -------------------- State management */
SaveState: procedure expose state.
SetBookmark 0
GetPrefs FreeForm; state.form = RESULT
GetPrefs FindBackward; state.dir = RESULT
GetPrefs FindWholeWords; state.whole = RESULT
GetPrefs FindString; state.find = RESULT
GetPrefs ChangeString; state.change = RESULT
SetPrefs FreeForm OFF
SetPrefs FindBackward OFF
SetPrefs FindWholeWords OFF
return
RestoreState: procedure expose state.
SetPrefs FreeForm state.form
SetPrefs FindBackward state.dir
SetPrefs FindWholeWords state.whole
'SetPrefs FindString "' || state.find || '"'
'SetPrefs ChangeString "' || state.change || '"'
MoveBookmark 0
ClearBookmark 0
return