home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
TRAN.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
3KB
|
92 lines
// -------------------------------------------------------------------
// The Aurora Editor v2.1
// Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
//
// Translation definitions (included by MAIN.AML)
//
// To change a translation definition, simply locate the desired word
// and it's substitution text and change them in the table. You can also
// add new entries to the table. Be sure to enclose both the word and
// the substitution text in quotes.
//
// If you have made any changes, save this file and select 'Recompile
// the Editor' <alt f2> from the Set menu. Exit and re-enter the
// editor for your changes to take effect.
//
// Note: The text translations and macros listed here are only
// examples. Replace them with your own.
// -------------------------------------------------------------------
// translation object
object tran
// When translation is ON, words in the left column are replaced
// with the phrases in right column as-you-type. To turn translation
// ON and OFF, select 'Translate' from the Set menu.
// Words defined with a '*' suffix are translated only when a word
// delimiter character is entered. The rest are translated when the
// last character of the word is entered.
// Word: Replace with:
// ---- ------------
set "adn" "and"
set "asap" "as soon as possible"
set "aurora" "The Aurora Editor"
set "btw" "by the way,"
set "don;t" "don't"
set "etc" "et cetera"
set "i*" "I"
set "imho" "In my humble opinion,"
set "incl" "include"
set "occurence" "occurrence"
set "recieve" "receive"
set "teh" "the"
set "yn" "your name"
// Macro Translations -------------------------------------------------
// If translation is ON, these macros are executed when you type the
// macro name as a word in your text. Note that macro functions
// defined in this object cannot call each other - this object is for
// lookup only.
// type the word 'bip' and a space to beep the PC speaker
function "bip*"
beep 800 100
end
// type the word 'dt' to enter the date and time at the cursor
function dt
prevword // find the left word ('dt')
delword // delete the word 'dt' just entered
timestamp // enter the date/time stamp
end
// type the word 'txx' on a blank line to replace the current line
// with text from a file (replace c:\your.txt with the name of
// your text file).
function txx
// include the file after the cursor
if open "c:\\your.txt" 'i' then
// delete current line if successful
delline
end
end
// type the word 'ifs' to generate a C-language 'if' structure
// on the current line
function ifs
prevword // find the left word ('ifs')
delword // delete the word 'ifs' just entered
write "if ( ) {" // write 'if', parens, and bracket
insline2 // insert a line with autoindent
write '}' // write a closing bracket
movepos 3 -1 // move the cursor between the parens
end