VSoup1.2.5: removing highlighting from VSoup.Txt

Hardy Griech (rgriech@ibm.net)
Mon, 11 Nov 1996 11:57:35 +0100

Hello all (esp. VSoup125 users),

I've gotten some complains about the highlighting stuff in VSoup.Txt.
I thought, that it would be a good idea to clearly indicate keywords
in the file - and I am still the opinion, that it's (al least) nice to
have. Anyway some people seem to have no editors/pagers which
understand this poor wo(men) highlighting implemented through
backspace sequences.

So I've written a small REXX script, which will remove the
highlighting stuff from the file and thus generates a really plain
text file:

--------------------------------------------------------------------------------
/* rmhigh.cmd
*
* removes the highlighting stuff in VSoup.Txt
* invoke with 'rmhigh < vsoup.txt > vsoup.doc'
*/

IF chars() \= 0 THEN
c2 = charin()
ELSE DO
SAY 'need input file on stdin!'
EXIT 1
END

DO WHILE chars() \= 0
c1 = c2
c2 = charin()
IF c2 \= X2C('8') THEN
rc = charout( ,c1 )
ELSE
c2 = charin()
END

EXIT 0
--------------------------------------------------------------------------------

Have fun reading!

Hardy

PS: I recommend the info-file version, because it allows hypertext
links, index and so on. For OS/2 users without PM the text file
is the best choice of course...

-- 
Hardy Griech, Kurt-Schumacher-Str. 25/1, D-72762 Reutlingen