home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
decus
/
RB130
/
sedsup05.arc
/
RNL05C.EPS
< prev
next >
Wrap
Text File
|
1988-11-27
|
5KB
|
90 lines
; **********
; Adapting To Epson Printers
;
;In the following line of commands, screen updating is turned off. Then the cursor goes to the beginning of the file.
;Ruler 0 is loaded. The default direction is set to forward. Line mode is chosen for cutting or pasting, insert mode is
;chosen, and tab expansion mode is selected. All tab characters are expanded from the beginning to the end of the file.
; ----------
:UOFF@BB0:GR:A0:SETB0:SETR1:SETT:RTAB@EB
; **********
;Next, any control-Zs (end-of-file markers for text files) are eliminated. This ensures that if, as is likely, the file ends
;with a control-Z, it will not effectively prevent adding anything at the end of the file while this command file runs. The
;cursor ends at the top of the document.
; ----------
@BB:RMSUB^E((:SUB\\\)0(:NS))(@BB)
; **********
;Ruler 2 is chosen. A line is opened and a printer code is inserted to set the print mode to near letter quality. Then a new
;line is opened and the cursor moves down one line.
; ----------
2:GR:OL:I\x1\:OL+@V
; **********
;The cursor goes to the end of the document. Fifty-one lines are inserted so that the last page is complete. Next, the cursor
;goes to the beginning of the document. All trailing blanks are stripped from the ends of lines anywhere in the document. The
;cursor goes to the end of the first line, and goes down one line. Then four new lines are inserted and the cursor moves down
;four lines.
; ----------
+@EB51:OL@BB:STRP@EB+@EL+@V4(:OL+@V)
; **********
;The next line sets SEDT's internal counter to 1. This is done to count pages in the file.
; ----------
+1:CNS
; **********
;The next line formats the document with fifty-two lines of main text per page, inserts three lines of the bottom margin, and
;inserts a top margin of seven lines. The page number is inserted into the bottom margin as a footer and is centered. Since
;SEDT's internal counter is used to provide the page number, the counter is incremented after the page number is inserted. A form
;feed ends each page. The name of the newsletter is inserted into the top margin as a header and is centered. If there are no
;more than 20 pages, then the cursor ends this section at the bottom of the document. If there are more than 20 pages, then the
;remainder of the document is deleted.
; ----------
^E(20(+52@EL3(:OL+@V):I\Page \:CNP:CNI:CL:OL+@V:I\\3(:OL+@V):I\VARUG Newsletter\:CL3(:OL+@V)))(@EB)
; **********
;Ruler 0 is chosen, and the cursor moves to the beginning of the text.
; ----------
0:GR@BB
; **********
;Every '' is replaced by a space.
; ----------
^E((:SUB\\ \)0(:NS))(@BB)
; **********
;The screen code #6 for double-width characters is replaced by the corresponding printer code W1. At the end of the line
;affected, the code W0 for undoing double width is inserted.
; ----------
^E(100000(+@F\#6\3(:D+@C)-@EL:I\W1\+@EL:I\W0\))(@BB)
; **********
;The next two lines handle subscripts. In the original text, begins every subscript, and A ends the subscript. On the
;printer, S1 turns subscript mode on, while T turns it off.
; ----------
^E((:SUB\\S1\)0(:NS))(@BB)
^E((:SUB\A\T\)0(:NS))(@BB)
; **********
;The next two lines produce superscripts much as the preceding lines got subscripts. In the text, M begins a superscript,
;while D ends it.
; ----------
^E((:SUB\M\S0\)0(:NS))(@BB)
^E((:SUB\D\T\)0(:NS))(@BB)
; **********
;The screen code
for underlining is converted into the corresponding printer code -1.
; ----------
^E((:SUB\
\-1\)0(:NS))(@BB)
; **********
;The screen code
for bold type is converted into the corresponding printer code E.
; ----------
^E((:SUB\
\E\)0(:NS))(@BB)
; **********
;The screen code for inverse video is turned into the printer code for italics.
; ----------
^E((:SUB\\\)0(:NS))(@BB)
; **********
;The screen code that turns off bold print, underlining, and inverse video is converted into the printer codes
;F-0 that turn off emphasized print, underlining, and italics. The cursor ends at the bottom of the text.
; ----------
^E((:SUB\\F-0\)0(:NS))(@EB)
; **********
;The cursor searches back to the last form feed, which marks the end of the twentieth page. The cursor then moves down one line.
;All remaining lines are deleted. The codes for draft quality pica type are inserted at the end of the document. A carriage
;return without a line feed is also inserted. The cursor finally goes to the beginning of the text. The printer code M for
;elite pitch (4.7 characters per centimeter) is inserted. This code was not inserted earlier to avoid having it taken as the
;beginning of a superscript. Finally, the screen is refreshed.
; ----------
-@F\\+@V:D+@EB:I\Px0\@BB:I\M\:RF
;