home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / wp / rubicon5.zip / MANUAL.2 < prev    next >
Text File  |  1989-11-08  |  23KB  |  513 lines

  1.  
  2.                 ______________________________________
  3.                |                                      |
  4.                |  Section 2: OPERATION AND STRUCTURE  |
  5.                |______________________________________|
  6.  
  7.  
  8. CONTENTS
  9.  
  10. 2.1 General Description
  11. 2.2 Operating Environment
  12. 2.3 Outline of Operating Procedure
  13. 2.4 Run-Time Options
  14. 2.5 Tag Command Syntax
  15. 2.6 Units of Measurement
  16. 2.7 "Include" Files
  17. 2.8 Default Style Sheet: SETUP.TAG
  18. 2.9 Order of Processing Text and Instructions
  19. 2.10 "Push" and "Pop"
  20.  
  21. 2.1 GENERAL DESCRIPTION
  22.  
  23. The Publisher is a computer software product which performs 
  24. functions equivalent to the traditional task of typesetting: that 
  25. is, the formatting and arrangement in type, page by page, of written 
  26. text, in the page layouts, type fonts, etc., chosen by the user.
  27.  
  28. The Publisher consists of two main parts: (1) a typesetting language
  29. consisting of "tags" (instructions) concerning page layout, font
  30. selection, etc., which can be inserted by the user at appropriate
  31. locations in a computer text file; and (2) an executable "batch
  32. processor" program which, upon command, accepts a computer text file
  33. including such tag instructions, interprets and acts on the tags, and
  34. transmits the results directly to a printer (or, optionally, to a disk
  35. file for later transmission to the printer). 
  36.  
  37. The Publisher is both user-friendly and sophisticated. The novice, 
  38. or casual user, who has no detailed technical knowledge of typesetting 
  39. techniques, and is familiar with only the most basic of the Publisher's 
  40. instruction tags, can copy or adapt the examples given later in this 
  41. Manual to generate documents of professional appearance in a variety 
  42. of single- and multi-column layouts and formats. In the hands of a 
  43. more knowledgeable user, the Publisher is capable of producing work 
  44. equivalent to the finest conventional typesetting, as found in books 
  45. and magazines of high quality.
  46.  
  47. 2.2 OPERATING ENVIRONMENT
  48.  
  49. COMPUTER
  50.  
  51. The Publisher supports the IBM personal computers (PC/XT, PC/AT or PS/2)
  52. and other compatible microcomputers. If a printer using soft fonts is
  53. employed, the computer should have sufficient hard disk space for
  54. storage of the soft fonts. The short procedure for installing the
  55. Publisher on such a computer has been explained in Section 1.
  56. More complete information about installation is given in the Appendix.
  57.  
  58. OPERATING SYSTEM
  59.  
  60. The Publisher supports the MS-DOS operating system, version 2.1 or
  61. newer. 
  62.  
  63. PRINTER
  64.  
  65. The Publisher supports the Hewlett-Packard LaserJet printer, printers
  66. which are set up to emulate a LaserJet, and also supports Postscript
  67. devices. The model of printer being used is specified by the instruction
  68. tag <model=>; see the Appendix. 
  69.  
  70. PHOTO TYPESETTER 
  71.  
  72. The Publisher supports any Postscript device.
  73.  
  74. FONTS SUPPORTED
  75.  
  76. The Publisher supports a variety of fonts: the available selection
  77. depends on the type of printer (or other output device) being used. 
  78.  
  79. For LaserJet printers, the Rubicon fonts supplied with the Publisher, 
  80. namely the Trajan (serif) and Renner (sans serif) families, are supported. 
  81. The Publisher also supports the following Hewlett Packard families 
  82. of fonts, which the user may already own or may acquire: Courier, Line
  83. Printer, Times Roman, and Helvetica. Installation procedures to make
  84. these Hewlett Packard fonts accessible to the Publisher are given in
  85. the Appendix.
  86.  
  87. For Postscript devices, the 35 standard Postscript fonts are supported, 
  88. using Adobe font names.
  89.  
  90. TEXT INPUT
  91.  
  92. For efficient use of the Publisher, the available software should
  93. include a good text editor or word processor capable of producing and
  94. editing standard ASCII text files. Most well-known MS-DOS based word
  95. processors will produce standard ASCII files, either in normal operation
  96. or in an available optional mode of operation. 
  97.  
  98. 2.3 OUTLINE OF OPERATING PROCEDURE
  99.  
  100. The Publisher is designed for the batch processing of ASCII-format text
  101. files. Accordingly, the first step in publishing a piece of text (or
  102. "document"), is to produce or obtain the desired text in the form of a
  103. plain ASCII text file. 
  104.  
  105. Text files are, of course, created on computers, using text editing,
  106. word processing, or other software. If a text file is being created for
  107. the purpose of eventual publication using the Publisher, it should be
  108. created in plain ASCII format. If a document to be published is
  109. contained in a text file originally created for some other purpose, it
  110. may or may not be a plain ASCII file, depending on the text editor
  111. originally used to create it, and on whether it includes any
  112. enhancements, such as bolding, underlining or italics, supported by the
  113. original text editor. Fortunately, simple procedures are usually
  114. available to convert non-ASCII word processor text files to ASCII
  115. format, and to locate and delete embedded commands, etc., used by the
  116. original word processor. 
  117.  
  118. Once this has been done, the plain ASCII text file containing the 
  119. document is further edited, using the text editor mentioned above, 
  120. to insert the embedded instructions (known as tags) required to set 
  121. up the desired page layout and format, and to implement all desired 
  122. font changes and enhancements.
  123.  
  124. A file ready for publication will typically begin with one or both 
  125. of: (1) A set of tags setting up page layout and format, running headers
  126. and footers, the page numbering scheme, etc.; or (2) An <include> tag
  127. implementing a "style sheet", i.e. a collection of tags setting up page
  128. layout and format, running headers and footers, the page numbering
  129. scheme, etc., which has been previously prepared and stored in a
  130. separate file, so that it can be utilized in any desired document file
  131. without being repeated each time. 
  132.  
  133. After this, the text will appear, with tags inserted at appropriate 
  134. locations to implement font changes, subscripts, superscripts, and 
  135. other such features.
  136.  
  137. When the document file is believed to be ready for publication, it 
  138. is saved to disk in its final form.  The user then exits from the
  139. word-processing software to the operating system, changes to the
  140. directory on which the publisher has been installed (if not already
  141. there), and invokes the Publisher by the command PUB. 
  142.  
  143. EXAMPLE: The document file is named SPECIMEN.TXT, and is located on a
  144. directory named WORK on Drive C. The Publisher is installed in the
  145. directory RUBICON on Drive C [standard setup].  After reaching the
  146. operating system prompt "C>", the command syntax to publish the document
  147. would be:
  148. CD\RUBICON [return]
  149. PUB \WORK\SPECIMEN.TXT [return]
  150.  
  151. NOTE: BE PATIENT! The Publisher takes a significant amount of time to
  152. format and print a page, especially when fonts are being downloaded.  The
  153. time required depends on your hardware setup, the number of different fonts
  154. used in your document, etc., but a MINIMUM processing time of BETWEEN ONE
  155. AND TWO MINUTES PER PAGE should be expected. During much of this processing
  156. time, the Publisher may not appear to be doing anything.  If you are
  157. worried that the program may not really be running, we suggest that you
  158. make use of the run-time switch "/T" to invoke the "Tracers" option, as
  159. described below in Section 2.4. 
  160.  
  161. The output from the Publisher ordinarily goes directly to a laser printer,
  162. which produces a hard copy of the document in the layout, format, etc.
  163. specified by the tags in the file. (Optionally, the output can be stored in
  164. a disk file for later transmission to the printer, as described under
  165. "Run-Time Options".) 
  166.  
  167. Ideally, this concludes the publication process. In practice, of course, a
  168. careful proofreading of the hard copy will often reveal previously-
  169. undetected errors or omissions in the text, or in the typesetting, or both.
  170. These may be corrected by retrieving the document file, making the
  171. necessary changes, saving it to disk in its amended form, and running it
  172. through the Publisher again to produce an amended version of the hard copy.
  173. This process may be repeated as necessary, until a satisfactory result is
  174. obtained. The degree of perfection which is considered to be satisfactory,
  175. and the number of proofs needed to attain the same, will of course depend
  176. on such factors as the nature and purpose of the document, and its length
  177. and complexity. 
  178.  
  179. 2.4 RUN-TIME OPTIONS
  180.  
  181. In addition to the normal operating mode described above, the program
  182. can be instructed to implement certain options, by means of "switches"
  183. added to the Publisher command line. The following switches are
  184. currently available: 
  185.  
  186. /D   Print to Disk. This option directs the Publisher not to send its
  187. output directly to the printer, but rather to send it to the computer's
  188. disk for storage, under the file name PUB.PRN 
  189.  
  190. For example, entering the command:
  191.  
  192. PUB \WORK\SPECIMEN.TXT /D [Return]
  193.  
  194. will cause the Publisher to process the file SPECIMEN.TXT from the
  195. directory WORK and store the resulting formatted version on disk under
  196. the file name PUB.PRN. The file thus stored can be printed later by
  197. entering the command: 
  198.  
  199. COPY PUB.PRN PRN /B [Return]
  200.  
  201. That is, "copy the file PUB.PRN to the printer". The /B is the MS-DOS
  202. "binary" option for printing files containing nontextual binary codes.
  203.  
  204. /T   Tracers. This option causes the Publisher to take each line of
  205. output text, and echo (trace) it to the screen, as it is being printed.
  206. This permits the user to preview the line breaks, and follow the
  207. progress of the line formatting. Other information is also displayed on
  208. the screen, for example a listing of all run-time switches which have
  209. been selected, and a report of each font being downloaded to the
  210. printer. The command syntax to invoke this option is 
  211.  
  212. PUB \WORK\SPECIMEN.TXT /T [Return]
  213.  
  214. In general, this option enables the user to watch what the program is
  215. doing while it is actually running. 
  216.  
  217. /L    Load Font. This option enables the automatic font downloading
  218. function. It is effective for LaserJet printers, but does not apply to
  219. Postscript devices. If selected, the Publisher automatically deletes all
  220. soft fonts from the printer's memory before printing the file, and then
  221. downloads each soft font used in the document, as it is required. The
  222. command syntax to invoke this option is 
  223.  
  224. PUB \WORK\SPECIMEN.TXT /L [Return]
  225.  
  226. This option may also be selected by inserting the instruction tag
  227. <download=1> at the beginning of the document file being typeset. Note
  228. that if either of the run-time switches /L or /X is used, any
  229. <download=> tag in the document file will be disregarded. 
  230.  
  231. /X    Cancel Load. This option disables the automatic font downloading
  232. function; that is, the Publisher will not delete any soft fonts from the
  233. printer's memory, nor will it download any fonts to the printer. If
  234. selected, the only available fonts will be those which are resident in
  235. the printer, or have previously been downloaded and not deleted. The
  236. command syntax to invoke this option is 
  237.  
  238. PUB \WORK\SPECIMEN.TXT /X [Return]
  239.  
  240. The automatic deletion of all soft fonts from the printer's memory
  241. before printing a file, and subsequent downloading of each soft font
  242. used in the document, is a lengthy process, particularly if numerous
  243. fonts are used. If several successive drafts of the same document, or a
  244. series of documents each requiring the same group of fonts, are being
  245. formatted and printed, this results in the repeated deleting and then
  246. downloading of the same group of fonts, which is obviously inefficient
  247. and a waste of time. To avoid this, the /X option may be invoked after
  248. the first document in the series has been processed, that is, for the
  249. second and all subsequent drafts or documents in the series. Of course,
  250. this option will work successfully only if the group of soft fonts being
  251. used is small enough (or the printer's memory large enough) that the
  252. printer can store the whole group in memory at the same time. 
  253.  
  254. This option may also be selected by inserting the instruction tag
  255. <download=0> at the beginning of the document file being typeset. Note
  256. that if either of the run-time switches /L or /X is used, any
  257. <download=> tag in the document file will be disregarded. 
  258.  
  259. /num    Multiple copies. Selecting this option causes the printer to
  260. print "num" copies of each page of the document, where "num" is an
  261. integer (that is, a whole number) in the range of 1 to 99. For example,
  262. entering the command 
  263.  
  264. PUB \WORK\SPECIMEN.TXT /7 [Return]
  265.  
  266. will cause the printer to print 7 copies of each page of the file
  267. SPECIMEN.TXT. After a file is printed the formatter automatically resets
  268. itself, and the attached printer, to the default state of single copy
  269. printing. 
  270.  
  271. 2.5 TAG COMMAND SYNTAX
  272.  
  273. As previously explained, a major component of the Publisher 
  274. is a typsetting language, in the form of instruction tags which can 
  275. be inserted into an ordinary text file using any suitable text editor. 
  276. When such a file is submitted to the Publisher's batch processor program, 
  277. it prints the file using the fonts, format and page layout specified 
  278. by these tags.
  279.  
  280. The tags are identified, i.e. delimited from the rest of the text, by
  281. being enclosed between a left-chevron "<" and a right-chevron ">", as
  282. follows: <Tag>. The first element of any tag is a "keyword", which may
  283. be an abbreviation of one or more letters. 
  284.  
  285. Some tags consist of nothing but the keyword. EXAMPLE: <RC> Rag 
  286. Center (Center each line of type on the page, so that both left and 
  287. right margins are "ragged").
  288.  
  289. Some tags require other elements, such as parameter names and values,
  290. and designations of units, to give them meaning.  EXAMPLE: the tag
  291. <margin> means nothing by itself, but the tag 
  292. <margin top=20mm left=15mm bottom=230mm right=190mm> 
  293. defines the sizes in millimeters of the top, left, bottom and right
  294. margins which form the limits of the page interior. 
  295.  
  296. There are three basic kinds of tags: isolated keywords, keywords with 
  297. a single parameter, and keywords with one or more sub-parameters. 
  298. Examples of each are, respectively:
  299.  
  300. <XR> Cancel Rag
  301.  
  302. <Times10B> Times 10 point bold
  303.  
  304. <underline thick=2pt descent=1pt> Underline thickness and descent 
  305.  
  306. SYNTAX FLEXIBILITY
  307.  
  308. Tag keywords may be entered in upper or lower case, i.e. the tags 
  309. <XR> and <xr> represent the same instruction. Subparameters are optional, 
  310. and may be specified in any order. This margin tag is equivalent to 
  311. the one just above:
  312. <margin bottom=230mm right=190mm top=20mm left=15mm>
  313.  
  314. This margin tag is permissible:
  315. <margin bottom=230mm right=190mm>
  316.  
  317. PARAMETER TYPES
  318.  
  319. Parameter input types may be single characters, character strings 
  320. (like the name of a file), or integers (like the number 10). "Rational 
  321. numbers", that is "floating point decimal numbers" like 2.664 are 
  322. also used; these will be referred to simply as "numbers", as opposed 
  323. to integers.
  324.  
  325. The various tags included in the Publisher's typsetting language, and
  326. their functions, are listed in Section 3 of this manual. 
  327.  
  328. PUNCTUATION OF INSTRUCTIONS
  329.  
  330. Lines in a document or instruction file which consist entirely of 
  331. instruction tags, must normally be punctuated by means of Quad tags 
  332. at the end of each such line, to prevent unwanted blank lines and 
  333. spaces from appearing in the published document, or other undesirable
  334. results. The tag most commonly used for this purpose is: 
  335.  
  336. <QZ> Quad left, zero advance.
  337.  
  338. This is particularly important in lines of instruction tags located in
  339. the initialization sequence, or in files INCLUDED in the "initialization
  340. sequence" (the basic setup and format instructions which must be given
  341. to the Publisher at the start of processing) , since the initialization
  342. sequence MUST NOT CONTAIN ANY PRINTABLE CHARACTERS. (To the computer, a
  343. blank space is a printable character: ASCII character number 32.) 
  344.  
  345. The following Publisher tags are classed as DIRECTIVES and do not
  346. require Quad tags for punctuation. 
  347.  
  348. <include>
  349.  
  350. <header>
  351.  
  352. <footer>
  353.  
  354. <bullets>
  355.  
  356. <list>
  357.  
  358. <end>
  359.  
  360. Unlike other tags, A DIRECTIVE MUST APPEAR BY ITSELF ON A SEPARATE LINE.
  361. That is, there should be no other material whatsoever on the same input
  362. line as the directive tag, either before or after it. 
  363.  
  364. 2.6 UNITS OF MEASUREMENT 
  365.  
  366. Each parameter representing a linear measure or distance, such as margin
  367. width or column width, has a default unit (normally the "dot", 1/300
  368. inch) which will be understood if no other unit is specified. For
  369. example, the tag <margin top=150> will be understood by the Publisher
  370. as specifying a top margin of 150 dots, that is, one-half inch. 
  371.  
  372. To specify a different unit, the Publisher's abbreviation for the 
  373. unit is inserted immediately after the paramenter value. For example, 
  374. the tag <margin top=0.5in> specifies a top margin of 0.5 inches, that 
  375. is, one-half inch. The units recognized by the Publisher, and their 
  376. abbreviations, are as follows:
  377.  
  378. ABBREVIATION    NAME OF UNIT        CONVERSION TO INCHES
  379.  
  380. dt              dots                300dt = 1 inch
  381.  
  382. pc              picas               6pc = 1 inch
  383.  
  384. pt              points              72pt = 1 inch
  385.  
  386. in              inches              1in = 1 inch
  387.  
  388. cm              centimeters         2.5400cm = 1 inch
  389.  
  390. mm              millimeters         25.4001mm = 1 inch
  391.  
  392. ln              lines               the interline leading
  393.  
  394. em              em-widths           the point size
  395.  
  396. cl              column-widths       the column-width
  397.  
  398. ex              ex-height           height of `x' in current font
  399.  
  400.  
  401. 2.7 "INCLUDE" FILES
  402.  
  403. One of the most important convenience features of the Publisher is its
  404. ability to read and act upon sets of instruction tags which have been
  405. previously stored in disk files separate from the text file being
  406. processed. This is accomplished by means of the tag: 
  407.  
  408. <INCLUDE filename>  
  409.  
  410. If a set of instructions is stored in a file called (say) COMMAND.SET,
  411. the set can be invoked at any point in any text file by inserting the
  412. tag <include command.set> in the text file. 
  413.  
  414. This means that any set of tags which is going to be used frequently 
  415. only needs to be entered once, and stored in a separate file with 
  416. a suitable name. It can then be invoked whenever needed by means of 
  417. a single <include> tag.
  418.  
  419. The include tag is a DIRECTIVE, and must appear by itself on a separate
  420. line. That is, there should be no material on the same line as the
  421. <include> tag, either before or after. 
  422.  
  423. A form of instruction file which is particularly useful is a STYLE
  424. SHEET, which contains complete instructions for the format and layout of
  425. some particular type of document. The user can easily maintain style
  426. sheets on disk for the most frequently used document layouts, and
  427. utilize them as required by means of the <include> directive tag. 
  428.  
  429. 2.8 DEFAULT STYLE SHEET: SETUP.TAG
  430.  
  431. When the Publisher starts to process a document file, it automatically
  432. "includes" the file SETUP.TAG. This file normally contains a set of
  433. document format and page layout instruction tags intended to govern the
  434. operation of the Publisher in the absence of instructions to the
  435. contrary. It may also contain special publisher "system" tags,
  436. regarding the model of printer being used, or the location on disk of
  437. the available soft fonts. The file SETUP.TAG is generated automatically
  438. during the installation of the Publisher, and can be edited by the user
  439. by means of the usual text editor. It is normally set up to specify the
  440. format and layout most often required. 
  441.  
  442. 2.9 ORDER OF PROCESSING TEXT AND INSTRUCTIONS 
  443.  
  444. The Publisher processes the input text and instructions in the following
  445. order: 
  446.  
  447. 1.   The file SETUP.TAG (which must not contain any printable matter,
  448. including blank lines or blank spaces). 
  449.  
  450. 2.  The initial part of the document file, preceding the first printable
  451. character or space. (When an <include> instruction is encountered, the
  452. effect is the same as if the entire contents of the "included" file were
  453. inserted in the document file at the point where the <include>
  454. instruction is located.) 
  455.  
  456. 3.   Runtime switches (Print to disk, etc.) 
  457.  
  458. 4.   The text and embedded instruction tags in the document file, in the
  459. order in which they appear, starting with the first printable character
  460. or space. 
  461.  
  462. Note: Certain commands may only be placed in the "initialization
  463. sequence", which consists of the SETUP.TAG file, the initial portion of
  464. the document file (preceding the first printable character), and files
  465. "included" in the initial portion of the document file. EXAMPLES: 
  466.  
  467. <model=>   Laserjet or Postscript
  468.  
  469. <landscape=>    On or Off
  470.  
  471. Common sense can be used here: Any information the printer needs to
  472. start printing must be given to it before it actually prints anything. 
  473.  
  474. The operation of the Publisher as it proceeds through the document 
  475. file is continually governed by the MOST RECENT instructions it has
  476. received. It will therefore operate in accordance with the instructions
  477. in SETUP.TAG unless and until these instructions are replaced by new
  478. instructions contained in the document file, or in a file "included"
  479. in the document file, or conveyed by means of run-time switches. When
  480. new instructions are encountered, the Publisher will start operating in
  481. accordance with them at the point in the document file where they are
  482. encountered, and will continue to so operate until they are replaced by
  483. still further instructions. 
  484.  
  485. If a document file contains no format or layout instructions, the
  486. Publisher will process the whole document in the format and layout
  487. prescribed by SETUP.TAG, subject to any run-time switches. 
  488.  
  489. 2.10  "PUSH" AND "POP"
  490.  
  491. The tags:
  492.  
  493. <push> and
  494.  
  495. <pop>
  496.  
  497. can save substantial amounts of time and effort, and reduce the risk 
  498. of inadvertent errors and omissions, when publisher parameters are 
  499. being changed temporarily: for example, when a heading is being printed 
  500. in a different font, or when a passage of text is being printed with 
  501. a different paragraph style from the rest of the document.
  502.  
  503. The tag <push> saves a record of the current state of many publisher
  504. variables, including font and indentation, and the tag <pop> restores
  505. the state of the publisher which was most recently "pushed".
  506. Accordingly, if a <push> tag is inserted BEFORE the instruction tags
  507. which are used to implement the temporary changes, it will be possible
  508. to cancel the temporary changes (after they have served their purpose)
  509. by means of a single <pop> tag, instead of using a series of instruction
  510. tags to change the publisher variables back to their previous values one
  511. by one. 
  512.  
  513.