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
/
RNL05AC.LSR
< prev
next >
Wrap
Text File
|
1988-08-08
|
6KB
|
95 lines
; **********
; Adapting To The Hewlett-Packard LaserJet With The 92286J Math Elite Font Cartridge
; Part A: Formatting The First 20 Pages
;
;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, the cursor goes to the beginning of the file, and 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 set of printer codes is inserted to set the top and left margins to zero, the right
;margin to 96, the horizontal pitch to 12 characters per inch, and the text length to 66 lines. Then a new line is opened, the
;cursor moves down one line, and a form feed is inserted. The form feed insures that the printer's buffer is cleared of any
;previous printing job and that the printer codes take effect before the first page appears.
; ----------
2:GR:OL:I\&l0E &a0L &a96M (s12H&l66F\:OL+@V:I\\
; **********
;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 spaces are removed 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 six new lines are opened and the cursor moves down six
;lines.
; ----------
+@EB51:OL@BB:STRP@EB+@EL+@V6(: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 printer code (s10H for ten characters per inch, the most
;expanded pitch available with the font cartridge used. At the end of the line affected, the code (s12H for twelve
;characters per inch is inserted.
; ----------
^E(100000(+@F\#6\3(:D+@C)-@EL:I\(s10H\+@EL:I\(s12H\))(@BB)
; **********
;The next two lines handle subscripts by moving the cursor down a half-line, converting the pitch to 16.6 characters
;per inch, then bringing the cursor back up a half-line, and returning to twelve characters per inch. In the original
;text, begins every subscript, and A ends the subscript. On the printer, &a+.5R causes a one-half forward line feed,
;while (s16.6H converts to 16.6 characters per inch. The printer code &a-.5R moves the cursor up a half-line, while (s12H
;restores the twelve character per inch pitch.
; ----------
^E((:SUB\\&a+.5R(s16.6H\)0(:NS))(@BB)
^E((:SUB\A\&a-.5R(s12H\)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\&a-.5R(s16.6H\)0(:NS))(@BB)
^E((:SUB\D\&a+.5R(s12H\)0(:NS))(@BB)
; **********
;The screen code
for underlining is converted into the corresponding printer code &dD.
; ----------
^E((:SUB\
\&dD\)0(:NS))(@BB)
; **********
;The screen code
for bold type is converted into a corresponding printer code (s5B.
; ----------
^E((:SUB\
\(s5B\)0(:NS))(@BB)
; **********
;The screen code for inverse video is converted into the printer code (s1S for italics.
; ----------
^E((:SUB\\(s1S\)0(:NS))(@BB)
; **********
;The screen code for normal video is converted into the printer codes &d@(s0B(s0S for medium dark print, no underlining,
;and upright type. The cursor ends at the bottom of the text.
; ----------
^E((:SUB\\&d@(s0B(s0S\)0(:NS))(@EB)
; **********
;The cursor searches back to the last form feed, which marks the end of the last page. The cursor then moves down one line. All
;remaining lines are deleted. The cursor finally goes to the beginning of the text. Screen updating is turned on again, and the
;screen is refreshed.
; ----------
-@F\\@V:D+@EB@BB:RF
;