Sripping with macros - an example

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Sripping with macros - an example

Christopher Currie
Don Spaeth's suggestion of using word-processor macros to strip
out SGML code prompted me to try one for Wordstar. I found I
couldn't get a truly recursive one, but if ESC-L and ESC-N are
defined as follows, it works with Wordstar 4, Wordstar 6, and
presumably Wordstar 5. Here `n means Control-n (typed in as
Control-P control-n; isn't it barbarous?)

L   brack1
N   brack2

Esc-N is used to do the job. It calls esc-L, which deletes the
markup recursively and then terminates, leaving an L at the end.
Esc-N then resumes and gets rid of the L.

I remain hostile to this approach. As several posts have pointed
out, it's dangerously destructive. It's also very slow compared
with a translation-table utility. But at least no WS user now has
to work it out for herself.