home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip Hitware 4
/
CHIP_HITWARE4.iso
/
TOOLS
/
95SEARCH
/
SPC2TAB.S
< prev
next >
Wrap
Text File
|
1993-05-30
|
862b
|
22 lines
\ SPC2TAB.S
\ demotest sample table
\ Convert three (3) or more adjacent spaces into tab codes.
\ The tab codes we'll use here are pseudo-codes ([tab]). You might wish
\ to use some typesetting system command, such as "[tb" or even replace
\ with an ASCII tab character (\09)
\ This table also converts four or more adjacent periods (....) into a
\ dot-leader code, if typesetting is your bag. Four or more hyphens (----)
\ or low-line dashes (____) are converted into a horizontal rule command.
\ The following equation says: three spaces equals a tab code, and then
\ ignore consecutive spaces
\20\20\20=[tab]*ic\20
....=[ldr]*ic. \ 4 dots to a leader code, ignore other '.'
----=[rule]*ic-_ \ 4 hyphens to a rule, ignore other '-' or '_'
____=[rule]*ic-_ \ 4 underlines to a rule, ignore other '-' or '_'