home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / me / install.nr < prev    next >
Text File  |  1980-02-17  |  6KB  |  282 lines

  1. .ds N \s-1NROFF\s0
  2. .ds T \s-1TROFF\s0
  3. .ds U \s-1UNIX\s0
  4. .ds R \s-1ROFF\s0
  5. .he '\-ME INSTALLATION INSTRUCTIONS''%'
  6. .+c
  7. .sp 5
  8. .ce 10
  9. .sz 14
  10. .b "\-ME INSTALLATION INSTRUCTIONS"
  11. .sz
  12. .sp 2
  13. .ul
  14. Eric P. Allman
  15. .sp
  16. Electronics Research Laboratory
  17. University of California, Berkeley
  18. Berkeley, California  94720
  19. .ce 0
  20. .sp 4
  21. .pp
  22. The \-me macros provide a much more flexible environment
  23. than most other macro packages available
  24. for \*N\(dg and \*T\(dg,
  25. .(f
  26. \(dg\*N, \*T, and \*R are Trademarks of Bell Laboratories.
  27. .)f
  28. including the \-ms macros,
  29. and include many more self check facilities.
  30. Many hooks are included in the macros
  31. to allow user personalization
  32. of the macros,
  33. it is felt that the rather common practice
  34. of redefining internal \-ms macros
  35. can be almost completely eliminated
  36. by tweaking parameters
  37. and grabbing onto hooks.
  38. Unlike \-ms and other packages,
  39. \-me follows a rigid and consistant
  40. internal naming convention
  41. to avoid name conflicts
  42. with user-defined macros,
  43. strings,
  44. and number registers.
  45. The \-me macros are largely compatible with \*R\(dg;
  46. the notable exception is that single and double spacing
  47. must be accomplished with the
  48. .b .ls
  49. command.
  50. .pp
  51. In order to run \-me,
  52. you must already have the version seven
  53. phototypesetter package,
  54. including \*N and \*T.
  55. It is easy to tell if you have the correct version
  56. of this software, as follows:
  57. .(l
  58. .in +5
  59. .ti -5
  60. Version 6:
  61. Source Language: assembly language
  62. Documentation: separate for \*N and \*T
  63. .ti -5
  64. Version 7:
  65. Source Language: C
  66. Documentation: single, integrated manual
  67. .)l
  68. .pp
  69. ..To read in the tape,
  70. ..create a temporary directory somewhere
  71. ..and chdir into it.
  72. ..The tape is flat;
  73. ..no subdirectories need be created.
  74. ..Read the tape into this directory.
  75. ...(b
  76. ..mkdir <temp>
  77. ..chdir <temp>
  78. ..tp xm0
  79. ...)b
  80. ...pp
  81. The
  82. .b \-me
  83. macro package for \*N and \*T
  84. expects to reside
  85. in the directory
  86. .b /usr/lib ,
  87. on version 6 systems, or in
  88. .b /usr/lib/tmac.e
  89. on version 7 systems.
  90. In addition,
  91. a subdirectory
  92. .b /usr/lib/me
  93. is expected
  94. which contains special features
  95. which are loaded as needed.
  96. All special features
  97. are in files
  98. with names which end
  99. .q .me .
  100. The directory
  101. .b /usr/lib/me
  102. should be created
  103. mode
  104. .b 755 ,
  105. and the file
  106. .b /usr/lib/tmac.e
  107. and all files in
  108. .b /usr/lib/me
  109. should be mode 644;
  110. all of these should be owned by some
  111. appropriate user,
  112. probably
  113. .b bin .
  114. All documentation resides in
  115. the directory 
  116. .b doc/me
  117. on this tape.
  118. ..files with names
  119. ..which end in
  120. ...q .nr ;
  121. ..this information should be copied to some safe place.
  122. .pp
  123. In order to speed the loading of the macros,
  124. the comments should be stripped out of them.
  125. However, you should keep a copy of the macros unstripped
  126. in case you ever have to read them.
  127. A shell file
  128. .b strip-me.ed
  129. will strip out the comments.
  130. ...(b
  131. ..mkdir /usr/lib/me
  132. ..chmod 755 /usr/lib/me
  133. ..chown bin /usr/lib/me
  134. ..cpall *.nr tmac.e *.me <safeplace>
  135. ..sh strip-me tmac.e *.me
  136. ..cp tmac.e /usr/lib/tmac.e
  137. ..cpall *.me /usr/lib/me
  138. ..chmod 644 /usr/lib/tmac.e /usr/lib/me/*
  139. ..chown bin /usr/lib/tmac.e /usr/lib/me/*
  140. ..rm tmac.e *.me
  141. ...)b
  142. The shell script
  143. .b make.script
  144. in this directory will install and strip the macros.
  145. .pp
  146. If you wish to move the special options
  147. to a directory other than
  148. .b /usr/lib/me ,
  149. change the string
  150. .b |\||
  151. to be the name of the directory
  152. in which they reside.
  153. This string is defined
  154. in the file
  155. .b tmac.e ;
  156. the line may be found
  157. by searching in the editor with
  158. .(b
  159. /ds |\||/
  160. .)b
  161. .pp
  162. Also included with this tape
  163. for interested souls
  164. are some updated copies
  165. of some of the terminal driver tables
  166. for \*N.
  167. These files describe what to print
  168. for each character on output.
  169. The files
  170. .b 300.pica10
  171. and
  172. .b 300.courier10
  173. are copies of the file
  174. .b code.300
  175. in the directory
  176. .b troff/terminals
  177. which came with the version 7 \*N/\*T tape.
  178. These files are tuned for the
  179. pica10 and courier10
  180. dasy-style typewheels respectively.
  181. Along with providing nicer copy
  182. for many of the greek and special characters,
  183. several more characters are defined.
  184. The files
  185. .b tabtn300.c
  186. and
  187. .b tab37.c
  188. are revisions of the files
  189. of the same name
  190. in the
  191. .b troff/terminals
  192. directory;
  193. they have more of the special characters defined.
  194. .pp
  195. To use these code files,
  196. copy them into the directory
  197. .b troff/terminals .
  198. Select the 300.* file
  199. which you want to be your standard
  200. for DTC-type terminals;
  201. copy that file into the file
  202. .b code.300
  203. (included by the files
  204. .b tab300.c ,
  205. .b tab300s.c ,
  206. .b tab300s12.c ,
  207. and possibly others).
  208. You should then use the
  209. .b termrc
  210. shell file to recompile the code tables
  211. for the terminals you use.
  212. For example:
  213. .(b
  214. termrc tn300
  215. .)b
  216. will create a new character table
  217. for terminet 300 style terminals
  218. (that is,
  219. any terminal without half line capabilities
  220. or other goodies).
  221. It is pretty easy
  222. to define two types of terminals
  223. for the different typewheels if you want;
  224. create files
  225. .b tabpica.c
  226. and
  227. .b tabcourier.c
  228. as copies of the file
  229. .b tab300s.c
  230. (or
  231. .b tab300.c
  232. as appropriate for your installation)
  233. and change the line which reads
  234. .(b
  235. # include "code.300"
  236. .)b
  237. to include
  238. .b 300.pica10
  239. and
  240. .b 300.courier10
  241. respectively.
  242. Then compile the code tables
  243. for types
  244. .b pica
  245. and
  246. .b courier .
  247. .(b
  248. cpall 300.* tab*.c <??>/troff/terminals
  249. chdir <??>/troff/terminals
  250. cp 300.pica10 code.300
  251. termrc tn300
  252. termrc 37
  253. termrc 300s
  254. termrc 300
  255. .)b
  256. .pp
  257. Lastly, there are some test programs
  258. to check out certain characters.
  259. The file
  260. .b testdiacrit
  261. tests the special characters and diacritical marks
  262. defined in
  263. .b /usr/lib/me/chars.me ;
  264. .b testgreeks
  265. tests the special and greek characters
  266. which are in the terminal driver tables.
  267. You can save these somewhere
  268. or chuck them out.
  269. .b Testdiacrit
  270. acts on a local copy of
  271. .b chars.me ;
  272. make a copy before testing them.
  273. Both of these tests
  274. run outside of \-me.
  275. .(b
  276. chdir <temp>
  277. nroff -T300s testgreeks
  278. cp /usr/lib/me/chars.me .
  279. nroff -T300s testdiacrit
  280. troff testdiacrit
  281. .)b
  282.