home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d768
/
uedit.lha
/
Uedit
/
Documentation
/
UEP-cmds
< prev
next >
Wrap
Text File
|
1992-11-22
|
3KB
|
77 lines
The following commands are for use with UEP, when the text is to be processed
by the F filter program.
The commands which contain a printer control sequence a) are for the Canon
BJ130 bubble jet printer and must be modified to suit your printer, and b)
insert a trailing ESC which the F program recognizes and throws away:
Insert printer code to turn ON non-proportoional (10 cpi) font
<shftAltCtl-s: insertRgn(curFile,atCursor,":",all)>
Insert printer code to turn ON proportional font
<shftAltCtl-e: insertRgn(curFile,atCursor,"P",all)>
Bracket entire line with prtr codes to turn on boldface & then back off at eol
<shftAltCtl-buttonDown:
movecursor(curfile,mouseloc)
if (is(curFile,blankLine)) return
if (not is(curFile,sLine)) moveCursor(curFile,sLine)
insertRgn(curFile,atcursor,"E",all)
moveCursor(curFile,eLine)
..while (not is(curFile,whitespace)) moveCursor(curFile,echar)
insertRgn(curfile,atcursor,"F",all)
>
The following brackets a line with F-program and printer control codes to 1)
slide the text to the right, right-justifying it, 2) turn on boldface, 3)
turn on tall printing, and 4) turn off boldface & tall printing at the end of
the text. This is used for printing big bold chapter headings up against the
right border of the page. (All new chapters begin on an odd-numbered page,
and hence the chapter title is against the right border.) (Note that the two
literals each contain not one but two printer control sequences, EACH ending
with a trailing ESC which the F program will recognize and throw away. Note
also that the "CM" control sequence begins with ASCII 28, not with ESC.)
<shftCtl-buttondown:
movecursor(curfile,mouseloc)
if (is(curFile,blankLine)) return
if (not is(curFile,sLine)) moveCursor(curFile,sLine)
insertRgn(curFile,atcursor,"@ ECM",all)
moveCursor(curFile,eLine)
moveCursor(curFile,eChar)
insertRgn(curfile,atcursor,"FCM",all)
>
The following uses insertChar() so wordwrapping cannot occur when the "`" is
typed in.
Insert ASCII 96 (`) character at cursor
<normal-`: insertChar(curFile,"`") >
The following two commands are useful for converting between ascii 32 & ascii
27 "space" characters. The cmds abort when the cursor reaches end of page.
If you mistakenly convert some spaces, you can reverse it by using the other
command.
Advance cursur to next ASCII 32 space and convert to ASCII 127 space
<alt-space:
while (not is(curFile," ")) {
movecursor(curfile,echar)
if (is(curFile,ePage)) abort
}
if (is(curfile," ")) swapChar(curfile,127) >
Advance cursur to next ASCII 127 space and convert to ASCII 32 space
<ctl-space:
while (not is(curFile,127)) {
movecursor(curfile,echar)
if (is(curFile,ePage)) abort
}
if (is(curfile,127)) swapChar(curfile," ") >
>