home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume13 / wroff / part01 next >
Encoding:
Text File  |  1990-06-24  |  18.4 KB  |  799 lines

  1. Newsgroups: comp.sources.misc
  2. From: bw@uecok.UUCP (Bill Walker CS Faculty)
  3. subject: v13i064: wroff - text formatter for HP LaserJet with PP 25-font cartridge
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 13, Issue 64
  7. Submitted-by: bw@uecok.UUCP (Bill Walker CS Faculty)
  8. Archive-name: wroff/part01
  9.  
  10. [I love it.  A multipart submission that I had to tear apart to find out what
  11. it was --- and mail to the original poster bounced.  Sigh.
  12.  
  13. This appears to be an nroff/troff-like text formatter for use with the HP
  14. LaserJet with the Pacific Data 25-in-1 font cartridge.  It does *not* look to
  15. be nroff/troff-compatible, just similar.  More than that I cannot say.  ++bsa]
  16.  
  17. echo x - MANIFEST
  18. sed 's/^X//' >MANIFEST <<'*-*-END-of-MANIFEST-*-*'
  19. XFonts/
  20. XMACROS/
  21. XMANIFEST 
  22. XMakefile 
  23. XREADME 
  24. XTestData/
  25. Xbin/
  26. Xdoc/
  27. Xsource/
  28. *-*-END-of-MANIFEST-*-*
  29. echo x - Makefile
  30. sed 's/^X//' >Makefile <<'*-*-END-of-Makefile-*-*'
  31. X
  32. X# this is the command to print something on your laser printer
  33. XPRINT=lp -dfac
  34. X# the owner of the system files --- need not be root
  35. XOWNER=root
  36. X
  37. X# directory to contain the font tables
  38. X# leave as it is for testing, but change it for production
  39. X
  40. XFONTS='"./Fonts"'
  41. X
  42. X#source is located in this directory
  43. XSOURCE=./source
  44. X
  45. X#documentation is contained in this directory
  46. XDOCDIR=./doc
  47. X
  48. X#local bin directory
  49. X#leave it as is for testing, but change it for actual installation
  50. XBINDIR=./bin
  51. X
  52. XCFLAGS = -DFONTSDIR='"$(FONTS)"'
  53. X
  54. X
  55. Xa.out : 
  56. X    cd source; make -f makefile -k "CC=$(CC)" "CFLAGS=$(CFLAGS)"; \
  57. X         mv a.out ../a.out
  58. X
  59. X
  60. X# be sure you have write permission whereever these directories are
  61. Xinstall :
  62. X    strip a.out
  63. X    mv a.out $(BINDIR)/wroff
  64. X    cp ./Fonts/* $(FONTSDIR)
  65. X    chmod $(OWNER) $(FONTSDIR)/*
  66. X    chmod u+r $(FONTSDIR)/*
  67. X    chmod go+rx $(BINDIR)/wroff
  68. X    chown $(OWNER) $(BINDIR)/wroff
  69. X
  70. X
  71. X# make "manual page" documentation for wroff -- it is stored under DOCDIR
  72. X# note that we assume that the (unstripped) wroff executable is named "a.out"
  73. X
  74. Xmanpage : 
  75. X    a.out $(DOCDIR)/macs.w $(DOCDIR)/wroff.1.w -p -k -o $(DOCDIR)/doc.pr
  76. X
  77. X# make a tutorial for wroff -- store it in the DOCDIR
  78. X# note that we assume that the (unstripped) wroff executable is named "a.out"
  79. X
  80. Xtut :
  81. X    a.out $(DOCDIR)/macs.w $(DOCDIR)/wroff.tut.w -p -k -o $(DOCDIR)/tut.pr
  82. X
  83. X
  84. X#clean up the mess
  85. Xclean:
  86. X    rm $(SOURCE)/*.o
  87. X
  88. X
  89. X# this will test wroff to see if it works at all
  90. Xtest :
  91. X    $(BINDIR)/wroff $(DOCDIR)/welcome
  92. X    $(BINDIR)/wroff $(DOCDIR)/welcome | $(PRINT)
  93. X
  94. X
  95. X# this will print a convenient "sampler" to demonstrate the available fonts
  96. Xsampler:
  97. X    $(BINDIR)/wroff TestData/sampler | $(PRINT)
  98. X
  99. *-*-END-of-Makefile-*-*
  100. echo x - README
  101. sed 's/^X//' >README <<'*-*-END-of-README-*-*'
  102. XThis contains the newest (August 29, 1989) version of wroff.
  103. XIt does kerning.
  104. X
  105. Xwroff is suitable for use with the Hewlett-Packard LaserJet II
  106. Xprinter, provided that the printer is equiped with a Pacific
  107. XData Systems 25-in-One Font Cartridge.
  108. X
  109. XHere is a list of directories and files:
  110. X
  111. XFonts/         -- width tables for fonts
  112. XMACROS/        -- some demonstration macros and test files
  113. XMANIFEST     -- list of contents for the shar archive
  114. XMakefile     -- a makefile for the whole thing
  115. XREADME         -- this file
  116. XTestData/    -- some interesting test data
  117. Xdoc/        -- documentation
  118. Xsource/        -- source code for wroff
  119. X
  120. X
  121. XTo 
  122. *-*-END-of-README-*-*
  123. echo Making directory TestData
  124. mkdir TestData
  125. echo x - TestData/hw2.w
  126. sed 's/^X//' >TestData/hw2.w <<'*-*-END-of-TestData/hw2.w-*-*'
  127. X.de SU
  128. X.gy -5
  129. X\f2$1\f0
  130. X.gy +5
  131. X.en
  132. X.ce 10
  133. X\fBComputer Science 1133
  134. XThird Homework Assignment
  135. XDue: September 22, 1989\fP
  136. X.ce 0
  137. X.sp 2
  138. X.PP
  139. XThe purpose of this assignment is to illustrate the use of
  140. Xfunction subprograms, and illustrate a loop that "quits"
  141. Xafter an indefinite number of iterations.
  142. X.PP
  143. XYou are to use Newton's Method to solve the following
  144. Xequations:
  145. X
  146. X.sp 3
  147. X.in +5
  148. Xx \{SU 3} - x = 0         (Answer: 0, 1, -1)
  149. X.sp 3
  150. Xx \{SU 2} + 3x + 2 = 0    (Answer: -1, -2)
  151. X.sp 3
  152. Xx sin(x) - 3 = 0          (Answer: could be several -- check it)
  153. *-*-END-of-TestData/hw2.w-*-*
  154. echo x - TestData/lesson2.w
  155. sed 's/^X//' >TestData/lesson2.w <<'*-*-END-of-TestData/lesson2.w-*-*'
  156. X.ce 10
  157. X\fBSecond Lesson
  158. XComputer Programming II\fP
  159. X.ce 0
  160. X.sp 3
  161. X.in +5
  162. X.ti -5
  163. XHere are the commands that you will need to know about
  164. Xtoday:
  165. X.sp 2
  166. X\fB
  167. X.nf 
  168. Xpasswd     \f|-    \f|change your password
  169. Xls     \f|-    \f|list contents of directory 
  170. Xdate     \f|-    \f|show the time and date
  171. Xwho     \f|-    \f|determine who is on the system
  172. Xmkdir     \f|-    \f|create a new subdirectory
  173. Xcd     \f|-    \f|change the working directory
  174. Xpwd     \f|-    \f|print the working directory
  175. Xwc     \f|-    \f|count lines, words, and characters
  176. Xlp     \f|-    \f|copy standard input to the printer
  177. Xcat file \f|-    \f|copy file to standard output
  178. Xvisprint \f|-    \f|copy standard input to both printer and screen
  179. X|     \f|-    \f|connect standard output of one program
  180. X        \f|to standard input of another ("pipe")
  181. Xmailx     \f|-    \f|send or receive electronic mail
  182. Xname     \f|-    \f|determine login ids
  183. Xvnews     \f|-    \f|read  public electronic news
  184. X\fP
  185. X.fi
  186. X.in +5
  187. X.vl 5
  188. X.sp 2
  189. X.OP 1.  
  190. XLog into the machine.
  191. X.OP 2.  
  192. XChange your password by using \fBpasswd\fP.  Note that
  193. X\fBpasswd\fP asks you for your previous password, and then
  194. Xfor a new password.  It does not print on the screen when
  195. Xyou type, so be prepared to type "in the blind."
  196. X.OP 3.  
  197. XWhen you logged in, you almost certainly received notice
  198. Xthat there was "news".  To read this news, type \fBvnews\fP.
  199. XAt any time while vnews is running, you can type a \fB?\fP
  200. Xto get some help.  Use the letter "n" to page through the
  201. Xnews.
  202. X.OP 4.  
  203. XUse \fBdate\fP to determine today's date, and then use \fBwho\fP to
  204. Xdetermine who is on the system.
  205. X.OP 5.  
  206. XThe symbol "|" connects the output of one program to the
  207. Xinput of a second program.  The program \fBwc\fP is used to count
  208. Xthe number of lines, words, and characters that appear in
  209. Xits input.  What does the sequence \fBwho | wc\fP determine ?
  210. XTry \fBdate | wc\fP .  What did you get ?
  211. X.OP 6.  
  212. XThe programs \fBlp\fP and \fBvisprint\fP are somewhat similar.  Both
  213. Xprint their input to the printer.  The \fBvisprint\fP program also
  214. Xprints its input to the screen as well.
  215. XWhat happens if you type \fBwho | lp\fP ?  What if you type
  216. X\fBwho | visprint\fP ?  What about \fBwho | wc | visprint\fP ?
  217. X.OP 7.  
  218. XUse \fBls\fP to determine the contents of your
  219. Xdirectory.  (Could you print this on the printer if you
  220. Xneeded to ?)  Now use \fBmkdir pascal\fP to create a new
  221. Xdirectory.  Issue another \fBls\fP.  What happened ?
  222. X.OP 8.  
  223. XType \fBpwd\fP and see what you get, then
  224. Xuse \fBcd pascal\fP to "change directory" to the pascal
  225. Xdirectory, and type \fBpwd\fP again.  Use \fBls\fP to see if
  226. Xthere is anything in the directory that you just created.
  227. XYou can return "home" by just saying \fBcd\fP.
  228. X.OP 9.  
  229. XReturn to "home" and create another directory called
  230. X"wordproc" that can be used to hold your word processing
  231. Xfiles.  Confirm that it exists, and is empty.
  232. X.OP 10.  
  233. XFrom now on, when you write a program in Pascal, be
  234. Xsure to first \fBcd pascal\fP before you start to program.
  235. X.OP 11.  
  236. XIf you had a message concerning "mail", you may want to
  237. Xread your mail.  To do so, just type \fBmailx\fP.  You will
  238. Xbe given a list of your messages.  Select the one(s) you
  239. Xwant to read by typing the number of the message.  When you
  240. Xare done with a message, type \fBd\fP to delete that message
  241. X(otherwise it is saved, which is usually messy.)  When you
  242. Xhave read all the mail, type \fBq\fP to quit the mail
  243. Xsystem.
  244. X.OP 12.  
  245. XUse \fBname myfriend\fP to determine the login id of
  246. Xyour friend.  Then send mail to your friend by typing
  247. X\fBmailx loginid\fP, where "loginid" is the login id of your
  248. Xfriend.  Everything you type on the terminal will be mailed
  249. Xto your friend.  End your letter by putting a period (".")
  250. Xon a line by itself.
  251. *-*-END-of-TestData/lesson2.w-*-*
  252. echo x - TestData/README
  253. sed 's/^X//' >TestData/README <<'*-*-END-of-TestData/README-*-*'
  254. XThis directory contains some demonstrations of wroff.
  255. X
  256. *-*-END-of-TestData/README-*-*
  257. echo x - TestData/macros.b
  258. sed 's/^X//' >TestData/macros.b <<'*-*-END-of-TestData/macros.b-*-*'
  259. X.de PP
  260. X.sp
  261. X.ti +5
  262. X.en
  263. X.de OP
  264. X.in
  265. X.vl 5
  266. X.sp 
  267. X.li $1
  268. X.en
  269. X.de CO
  270. X.nf 5
  271. X.in +5
  272. X.ls 
  273. X\fT
  274. X.sp 2
  275. X.en
  276. X.de NO
  277. X.in -5
  278. X\fP
  279. X.sp 2
  280. X.fi
  281. X.en
  282. *-*-END-of-TestData/macros.b-*-*
  283. echo x - TestData/booltest.w
  284. sed 's/^X//' >TestData/booltest.w <<'*-*-END-of-TestData/booltest.w-*-*'
  285. X.de ON
  286. Xp is 1
  287. X.en
  288. X.de TW
  289. Xp is not 1
  290. X.en
  291. X \[ p = 0 ]
  292. X \[ p = p + 1 ]
  293. X.if ( p == 1 ) ON
  294. X.if ( p != 1 ) TW
  295. *-*-END-of-TestData/booltest.w-*-*
  296. echo x - TestData/mathdemo.w
  297. sed 's/^X//' >TestData/mathdemo.w <<'*-*-END-of-TestData/mathdemo.w-*-*'
  298. X.de INT
  299. X.fm TMN10B
  300. X\fMu\fP
  301. X\[ p = X + M + L ]
  302. X.gx -48
  303. X.gy +8
  304. X\fMg\fP
  305. X.gx -48
  306. X.gy -16
  307. X\fMe\fP
  308. X.gy +8
  309. X.gx \(p)
  310. X.gy +12
  311. X$1
  312. X.gx \(p)
  313. X.gy -24
  314. X$2
  315. X.gy +12
  316. X\fP
  317. X.en
  318. X.de LBRACE
  319. X.fm TMN10B
  320. X\fMc\fP
  321. X\[ p = X + M + L -140 ]
  322. X.gx -48
  323. X.gy +8
  324. X\fMd\fP
  325. X.gx -48
  326. X.gy -16
  327. X\fMb\fP
  328. X.gy +8
  329. X.gx \(p)
  330. X\fP
  331. X.en
  332. X.de RBRACE
  333. X.fm TMN10B
  334. X\fMs\fP
  335. X\[ p = X + M + L - 175 ]
  336. X.gx -48
  337. X.gy +8
  338. X\fMt\fP
  339. X.gx -48
  340. X.gy -16
  341. X\fMr\fP
  342. X.gy +8
  343. X.gx \(p)
  344. X\fP
  345. X.en
  346. X.de int 
  347. X.fm TMN10B
  348. X\fMU\fP
  349. X.en
  350. X.de lbrace
  351. X\f0{\fP
  352. X.en
  353. X.de rbrace
  354. X\f0}\fP
  355. X.en
  356. X.de SU
  357. X.gy -5
  358. X\f2$1\fP
  359. X.gy +5
  360. X.en
  361. X.de SB
  362. X.gy +3
  363. X\f2$1\fP
  364. X.gy -3
  365. X.en
  366. X.de SUM 
  367. X.fm TMN10B
  368. X\[ p = X + M + L  +50  ]
  369. X.gy +4
  370. X\fMj\fP
  371. X.gx -48 
  372. X.gy -8
  373. X\fMh\fP
  374. X.gy +4
  375. X.gx \(p)
  376. X.en
  377. X
  378. X
  379. X
  380. X\{INT 1 2} \{LBRACE} (x \{SU 2} - y \{SB 4} + (r + s) \{SU 3} ) \{RBRACE} dx
  381. X
  382. X
  383. X
  384. X
  385. X\{int} \{lbrace} ( \{SUM} some function) \{rbrace} dx
  386. X
  387. X
  388. *-*-END-of-TestData/mathdemo.w-*-*
  389. echo x - TestData/macros
  390. sed 's/^X//' >TestData/macros <<'*-*-END-of-TestData/macros-*-*'
  391. X.de PP
  392. X.sp
  393. X.ti +5
  394. X.en
  395. X.de OP
  396. X.sp 
  397. X.ti -5
  398. X.en
  399. X.de CO
  400. X.nf 5
  401. X.in +5
  402. X.ls 
  403. X\fT
  404. X.sp 2
  405. X.en
  406. X.de NO
  407. X.in -5
  408. X\fP
  409. X.sp 2
  410. X.fi
  411. X.en
  412. *-*-END-of-TestData/macros-*-*
  413. echo x - TestData/lesson1.w
  414. sed 's/^X//' >TestData/lesson1.w <<'*-*-END-of-TestData/lesson1.w-*-*'
  415. X.ce 10
  416. X\fBFirst Lesson
  417. XComputer Programming II\fP
  418. X.ce 0
  419. X.sp
  420. X.in 15
  421. X.ti -5
  422. X\fBvi editor exercise:\fP  Here are the commands that you will need
  423. Xto know about today:
  424. X.nf
  425. X
  426. X.in +5
  427. X\fBvi file.pas
  428. X
  429. Xi     \f|-     \f|insert
  430. XESC    \f|-     \f|quit inserting
  431. Xx    \f|-    \f|cross out character
  432. X:wq    \f|-    \f|save work and quit
  433. X
  434. X^u    \f|-    \f|move up half page
  435. X^d    \f|-    \f|move down half page
  436. X^p    \f|-    \f|previous line
  437. X^n    \f|-    \f|next line
  438. X^h    \f|-    \f|left one character
  439. Xspace    \f|-    \f|right one character\fP
  440. X
  441. XEnter the following code:
  442. X
  443. X.nf
  444. X\fT
  445. Xprogram summer (input, output);
  446. X    var  i, sum : integer;
  447. X    
  448. Xbegin
  449. X    sum := 0;
  450. X    
  451. X    i := 1;
  452. X    while i <= 10 do
  453. X      begin
  454. X        sum := sum + i;
  455. X    i := i + 1;
  456. X      end;
  457. X    writeln('the sum is ', sum);
  458. Xend.
  459. X\fP
  460. X.fi
  461. X.bp
  462. X.OP 1.
  463. XEnter and execute the program. This will require that you know how
  464. Xto log in, how to use \fBpc file.pas\fP, and how to execute a program by
  465. Xtyping \fBa.out\fP.  You may also find \fBls\fP handy.
  466. X.OP 2.
  467. XModify the program to sum the first 100 positive integers instead.
  468. X.OP 3.
  469. XModify the program to sum the first 25 positive integers.
  470. X.OP 4.
  471. XUse \fBcat file.pas\fP to print the program on your screen, then
  472. Xuse \fBcat file.pas | lp\fP to print the program on the printer.
  473. X.OP 5.
  474. XUse \fBa.out\fP to execute the program on your screen, then use
  475. X\fBa.out | lp\fP to print the output of the program on the printer.
  476. X\fBDO NOT USE "cat a.out" FOR ANYTHING!\fP
  477. *-*-END-of-TestData/lesson1.w-*-*
  478. echo x - TestData/testpar.w
  479. sed 's/^X//' >TestData/testpar.w <<'*-*-END-of-TestData/testpar.w-*-*'
  480. X \[p=65]
  481. X.de NP
  482. X.in
  483. X.pm 5
  484. X.sp
  485. X.lp \(pC).
  486. X \[p = p + 1]
  487. X.en
  488. X.de PP
  489. X.sp
  490. X.ti +5
  491. X.en
  492. X.de OP
  493. X.in
  494. X.pm 5
  495. X.sp 
  496. X.lp $1
  497. X.en
  498. X.de CO
  499. X.nf 5
  500. X.in +5
  501. X.ls 
  502. X\fT
  503. X.sp 2
  504. X.en
  505. X.de NO
  506. X.in -5
  507. X\fP
  508. X.sp 2
  509. X.fi
  510. X.en
  511. X.NP
  512. XThis is paragraph one,
  513. Xand this next is the next paragraph.
  514. X.NP
  515. Xparagraph number two.  Maybe.
  516. X.NP
  517. XThis is the third one.
  518. *-*-END-of-TestData/testpar.w-*-*
  519. echo x - TestData/numpar.w
  520. sed 's/^X//' >TestData/numpar.w <<'*-*-END-of-TestData/numpar.w-*-*'
  521. X \[p=1]
  522. X.de NP
  523. X.in
  524. X.vl 5
  525. X.sp
  526. X.li \(p).
  527. X \[p = p + 1]
  528. X.en
  529. X.de PP
  530. X.sp
  531. X.ti +5
  532. X.en
  533. X.de OP
  534. X.in
  535. X.vl 5
  536. X.sp 
  537. X.li $1
  538. X.en
  539. X.de CO
  540. X.nf 5
  541. X.in +5
  542. X.ls 
  543. X\fT
  544. X.sp 2
  545. X.en
  546. X.de NO
  547. X.in -5
  548. X\fP
  549. X.sp 2
  550. X.fi
  551. X.en
  552. X.NP
  553. XThis is paragraph one,
  554. Xand this next is the next paragraph.
  555. X.NP
  556. Xparagraph number two.  Maybe.
  557. X.NP
  558. XThis is the third one.
  559. *-*-END-of-TestData/numpar.w-*-*
  560. echo x - TestData/gothics
  561. sed 's/^X//' >TestData/gothics <<'*-*-END-of-TestData/gothics-*-*'
  562. X.fm LGN9.5A
  563. XThis should be in \fMLetter Gothic, Normal, 9.5 point, ASCII\fP
  564. Xand this should be in regular print.
  565. X.fm LGN14L
  566. XThis should be in \fMLetter Gothic, Norman, 14 point, LEGAL\fP
  567. Xand this should be in regular print.
  568. X
  569. *-*-END-of-TestData/gothics-*-*
  570. echo x - TestData/sampler
  571. sed 's/^X//' >TestData/sampler <<'*-*-END-of-TestData/sampler-*-*'
  572. X.fm RESET
  573. X\fMFont RESET will clear the printer to default\fP
  574. X.sp
  575. XThis is a print sampler.
  576. X.sp 4
  577. X.fm LGN9.5A
  578. X\fMFont LGN9.5A is Letter Gothic, Normal, 9.5 point, ASCII\fP
  579. X.sp
  580. X.fm LGN14L
  581. X\fMFont LGN14L is Letter Gothic, Norman, 14 point, LEGAL\fP
  582. X.sp
  583. X.fm TMN10B
  584. XFont TMN10B is a math font: \fM abcdefgh\fP
  585. X.sp
  586. X.fm PAFS4.8_12
  587. X\fMFont\fP PAFS4.8_12 \fM is PDP AFS 4.8 point, 12 lpi\fP
  588. X.sp 
  589. X.fm PAFS4.8_16
  590. X\fMFont\fP PAFS4.8_16 \fM is PDP AFS 4.8 point, 16 lpi\fP
  591. X.sp
  592. X.fm PCLine14
  593. XFont PCLine14 is a line drawing font: \fM0123456789\fP
  594. X.sp
  595. X.fm TaxB12
  596. XFont TaxB12 is a tax form font, boldfaced: \fMabcdefgh\fP
  597. X.sp
  598. X.fm LineDraw12
  599. XFont LineDraw12 is a line drawing font: \fMabcdefgh\fP
  600. X.sp
  601. X.fm LGN14A
  602. X\fMFont LGN14A is Letter Gothic, Normal, 14 point, ASCII\fP
  603. X.sp
  604. X.fm LGB12A
  605. X\fMFont LGB12A is Letter Gothic, Bold, 12 point, ASCII\fP
  606. X.sp
  607. X.fm LP8.5PC
  608. X\fMFont LP8.5PC is Line Printer, 8.5 point, PC\fP
  609. X.sp
  610. X.fm ci12
  611. X\fMFont ci12 is Courier, Italic, 12 point, ASCII\fP
  612. X.sp
  613. X.fm cn12
  614. X\fMFont cn12 is Courier, Normal, 12 point, ASCII\fP
  615. X.sp
  616. X.fm pen7
  617. X\fMFont pen7 is Prestige Elite, Normal, 7 point, ASCII\fP
  618. X.sp
  619. X.fm lp8.5
  620. X\fMFont lp8.5 is a Line Printer, 8.5 point, ASCII\fP
  621. X.sp
  622. X.fm pb18
  623. X\fMFont pb18 is Presentation, Bold, 18 point, ASCII\fP
  624. X.sp
  625. X.fm pb16a
  626. X\fMFont pb16a is Presentation, Bold, 16 point, ASCII\fP
  627. X.sp
  628. X.fm pei10.l
  629. X\fMFont pei10.l is Prestige Elite, Italic, 10 point, Legal\fP
  630. X.sp
  631. X.fm pen10.l
  632. X\fMFont pen10.l is Prestige Elite, Normal, 10 point, Legal\fP
  633. X.sp
  634. X.fm peb10.l
  635. X\fMFont peb10.l is Prestige Elite, Bold, 10 point, Legal\fP
  636. X.sp
  637. X.fm ct12r-8
  638. X\fMFont ct12r-8 is Courier, Italic, 12 point, Roman-8\fP
  639. X.sp
  640. X.fm pb14
  641. X\fMFont pb14 is Presentation, Bold, 14 points, ASCII\fP
  642. X.sp
  643. X.fm HB14ECMA
  644. X\fMFont HB14ECMA is Helvetica, Bold, 14 point, ECMA, 10 series\fP
  645. X.sp
  646. X.fm TMN8A
  647. XFont TMN8A is Times Math, Normal, 8 point, MATH A  \fMabcdefg1234567\fP
  648. X.sp
  649. X.fm HN10
  650. X\fMFont HN10 is Helvetica, Normal, 10 point, ASCII\fP
  651. X.sp
  652. X.fm HI10
  653. X\fMFont HI10 is Helvetica, Italic, 10 point, ASCII\fP
  654. X.sp
  655. X.fm HB8
  656. X\fMFont HB8 is Helvetica, Bold, 8 point, ASCII\fP
  657. X.sp
  658. X.fm HN8
  659. X\fMFont HN8 is Helvetica, Normal, 8 point, ASCII\fP
  660. X.sp
  661. X.fm HN6
  662. X\fMFont HN6 is Helvetic, Normal, 6 point, ASCII\fP
  663. X.sp
  664. X.fm trn12
  665. X\fMFont trn12 is Times Roman, Normal, 12 point, ASCII\fP
  666. X.sp
  667. X.fm trb12
  668. X\fMFont trb12 is Times Roman, Bold, 12 point, ASCII\fP
  669. X.sp
  670. X.fm tri12
  671. X\fMFont tri12 is Times Roman, Italic, 12 point, ASCII\fP
  672. X.sp
  673. X.fm trn8
  674. X\fMFont trn8 is Times Roman, Normal, 8 point, ASCII\fP
  675. X.sp
  676. X.fm tri10
  677. X\fMFont tri10 is Times Roman, Italic, 10 point, ASCII\fP
  678. X.sp
  679. X.fm trn10
  680. X\fMFont trn10 is Times Roman, Normal, 10 point, ASCII\fP
  681. X.sp 
  682. X.fm trb10
  683. X\fMFont trb10 is Times Roman, Bold, 10 point, ASCII\fP
  684. X.sp
  685. X.fm lgn12
  686. X\fMFont lgn12 is Letter Gothic, Normal, 12 point, ASCII\fP
  687. X.sp
  688. X.fm lgi12
  689. X\fMFont lgi12 is Letter Gothic, Italic, 12 point, ASCII\fP
  690. X.sp 
  691. X.fm PB18L
  692. X\fMFont PB18L is Presentation, Bold, 18 point, Legal\fP
  693. X.sp
  694. X.fm PB16L
  695. X\fMFont PB16L is Presentation, Bold, 16 point, Legal\fP
  696. X.sp
  697. X.fm PB14L
  698. X\fMFont PB14L is Presentation, Bold, 14 point, Legal\fP
  699. X.sp
  700. X.fm HB14
  701. X\fMFont HB14 is Helvetica, Bold, 14 point, ASCII\fP
  702. X.sp
  703. X.fm TMN8B
  704. XFont TMN8B is Times Math, Normal, 8 point, MATH B  \fMabcdef123456\fP
  705. X.sp
  706. X.fm HB12
  707. X\fMFont HB12 is Helvetica, Bold, 12 point, ASCII\fP
  708. X.sp
  709. X.fm HN12
  710. X\fMFont HN12 is Helvetica, Normal, 12 point, ASCII\fP
  711. X.sp
  712. X.fm HI12
  713. X\fMFont HI12 is Helvetica, Italic, 12 point, ASCII\fP
  714. X.sp
  715. X.fm HB10
  716. X\fMFont HB10 is Helvetica, Bold, 10 point, ASCII\fP
  717. X.sp
  718. X.fm PEN7L
  719. X\fMFont PEN7L is Prestige Elite, Normal, 7 point, Legal\fP
  720. X.sp
  721. X.fm LGN12H
  722. X\fMFont LGN12H is Letter Gothic, Normal, 12 point, ASCII, Prints sideways\fP
  723. X.sp
  724. X.fm pen10h
  725. X\fMFont pen10h is Prestige Elite, Normal, 10 point, ASCII, Prints sideways\fP
  726. X.sp
  727. X.fm PB14
  728. X\fMFont PB14 is Presentation, Bold, 14 points, ASCII, Prints sideways\fP
  729. X.sp
  730. X.fm PEN7H
  731. X\fMFont PEN7H is Prestige Elite, Normal, 7 point, ASCII, Prints sideways\fP
  732. X.sp
  733. X.fm lgn14
  734. X\fMFont lgn14 is Letter Gothic, Normal, 14 point, Print sideways\fP
  735. X.sp
  736. X.fm pcln14.l
  737. XFont pcln14.l is PC Line, Normal, 14 point, PC Line, Prints sideways  \fMabcdefg\fP
  738. X.sp
  739. X.fm  pdp4.812.l
  740. X\fMFont pdp4.812.l is PDP AFS, 4.8 point, 12 lpi, LICS, Prints sideways\fP
  741. X.sp
  742. X.fm pdp4.816.l
  743. X\fMFont pdp4.816.l is PDP AFS, 4.8 point, 16 lpi, LICS, Prints sideways\fP
  744. X.sp
  745. X.fm HN6H
  746. X\fMFont HN6H is Helvetica, Normal, 6 point, ASCII, Prints sideways\fP
  747. X.sp
  748. X.fm TRN10H
  749. X\fMFont TRN10H is Times Roman, Normal, 10 point, ASCII, Prints sideways\fP 
  750. X.sp
  751. X.fm PEN7LH
  752. X\fMFont PEN7LH is Prestige Elite, Normal, 7 point, Legal, Prints sideways\fP
  753. X.sp
  754. X.fm LGN9.5H
  755. X\fMFont LGN9.5H is LtrGothic Nm 9.5 point, ASCII, Prints sideways\fP
  756. X.sp
  757. X.fm Line8.5H
  758. X\fMFont Line8.5H is LinePrinter 8.5 point, ASCII, Prints sideways\fP
  759. X.sp
  760. X.fm HB12H
  761. X\fMFont HB12H is Helvetica, Bold, 12 point, ASCII, Prints sideways\fP
  762. X.sp
  763. X.fm HB10H
  764. X\fMFont HB10H is Helvetica, Bold, 10 point, ASCII, Prints sideways\fP
  765. X.sp
  766. X.fm HN8H
  767. X\fMFont HN8H is Helvetica, Normal, 8 point, ASCII, Prints sideways\fP
  768. *-*-END-of-TestData/sampler-*-*
  769. echo x - TestData/hw1.w
  770. sed 's/^X//' >TestData/hw1.w <<'*-*-END-of-TestData/hw1.w-*-*'
  771. X.ce 10
  772. X\fBComputer Programming II
  773. XFirst Homework Assignment
  774. XDue: Friday, September 8, 1989\fP
  775. X.ce 0
  776. X.sp
  777. X.PP
  778. XYou are to prepare two charts.  The first chart is to
  779. Xconvert Farenheit to Celsius.  The second chart is to
  780. Xpresent
  781. Xa table of numbers, their squares, cubes, square roots, and
  782. Xreciprocals.  The range of numbers \fImust\fP include 0.
  783. X.PP
  784. XYour programs should each include five parts:
  785. X.sp 2
  786. X.nf
  787. X.in +5
  788. X1.  \f|Definition of problem
  789. X2.  \f|Preliminary Analysis
  790. X3.  \f|Chart
  791. X4.  \f|Actual code and a run
  792. X5.  \f|Conclusions
  793. X
  794. *-*-END-of-TestData/hw1.w-*-*
  795. echo Making directory bin
  796. mkdir bin
  797. echo end of sh-archive
  798.  
  799.