global db$(30),s$(255),str$(255),r%,nv$(35),a%,c$(1)
c$="/"
nv$="ExAb v.1.5 - ╕Huub Linthorst, 96-97"
useapp:("active")
if Pid2App$:(CurrPid%:)= "Program"
db$="EXABP"
else
db$="EXAB"
endif
sendkey:(left%,ctrl%+shift%,1)
srv:
if s$=c$+c$
delete:
a%=1
giprint:("ExAb will search whole text...")
all:
else start:
endif
endp
proc start:
if not exist ("\dat\"+db$+".dbf")
giprint:("Welcome. ExAb will create database "+db$+"...")
create "\dat\"+db$+".dbf",D,k$,l$
rem ---This line and the lines down to the next rem-line contain on-line info and may be removed
D.k$="exab"
D.l$=nv$+" - a MacSys macro to EXtend ABbreviations. E-Mail me for comments, suggestions and improvements at linthors@chem.leidenuniv.nl. With the cursor behind the word help, hit the hot key again to get help"
append
D.k$="help"
D.l$="ExAb HELP. This is how ExAb works. Type in an abbreviation, e.g. 'sy'. With the cursor still behind 'sy', hit ExAb's hot-key (I use <Psion-Enter>). The macro will search database EXAB for 'sy'. ...at.the.end.of.this.line.hit.the.hot-key.again..."
D.l$="If found, ExAb will replace 'sy' in your text with the corresponding full text. If not found, ExAb will present an input screen to enable you to add 'Sincerely Yours,' or 'Since Yesterday' to the database. ...same.trick.for.more.info..."
append
D.k$="...same.trick.for.more.info..."
D.l$="Alternatively, ExAb can search and replace all abbreviations of a text in one go. Therefore, type a '"+c$+"' at the end of each abbreviation. After finishing type '"+c$+c$+"' at the start of the text followed by the hot-key. ...hot-key.again..."
append
D.k$="...hot-key.again..."
D.l$="Database EXAB, is automatically created after installation. It contains these help lines and the abbreviations and extensions that you add during - a hopefully enjoyable - use. Using DATA, you can modify EXAB.DBF. ...hot-key.once.more..."
append
D.k$="...hot-key.once.more..."
D.l$="Now try ExAb yourself with sy"
append
rem ---This line and the lines up to the previous rem-line may be removed