home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / robot-pd / 12400.ZIP / 12400B.DSK / manual08.txt < prev    next >
Text File  |  1998-04-30  |  9KB  |  322 lines

  1.                 ╩C H A P T E R   S E V E NΩ
  2.  
  3.  
  4. ╩7 The FORMAT UtilityΩ
  5.  
  6. ╩FormatΩ :╔FORMAT <selectors> <src file>Θ
  7.  
  8. The FORMAT program takes the given source file and formats
  9. it according to the  given  selector.  FORMAT  is  a  very
  10. powerful program which can be used to produce high quality
  11. documents.
  12.  
  13. FORMAT makes use of imbedded commands. These commands  are
  14. double letter words prefixed by a dot ("."). They tell the
  15. program to perform certain  operations  on  the  following
  16. text.
  17.  
  18. The invocation selectors accepted are:-
  19.  
  20. &A - Source file is true ASCII, causes FORMAT to  read  it
  21. as such.
  22. &W - Use WYSIWYG output.  Simulate  printer  typefaces  on
  23. screen.
  24. &P - Activate printer output
  25. &v - Deactivate VDU output.
  26. &L<file.path> - Load PCC Data File (See later).
  27.  
  28.  
  29. ╩7.1 FORMAT Dot CommandsΩ
  30.  
  31. ╩SyntaxΩ :.ch "<Heading>" <chapter number> {FF -}
  32.  
  33. FORMAT will automatically  underline  and  centre  chapter
  34. headings when it finds them. It will also make a  note  of
  35. the page number and produce a contents table at the end of
  36. the text. In order for these operations to be carried  out
  37. correctly, FORMAT must be  told  when  a  chapter  heading
  38. occurs.
  39.  
  40. The chapter number should  be  given  after  the  heading.
  41. Remember that  the  double  quote  character  (")  is  not
  42. displayed as such by EDTEXT or any other  program.  FORMAT
  43. will, however, honour the converted character.
  44.  
  45. If the word "FF" is appended to the line  instead  of  the
  46. "-", FORMAT will cause a Form Feed to be output before the
  47. chapter heading.
  48.  
  49. Setting the chapter number will cause  subsequent  section
  50. numbers   to   be   correctly   numbered.   FORMAT    will
  51. automatically insert the PCCs  to  cause  the  heading  to
  52. appear underlined.
  53.  
  54. The .ch command does not automatically isolate the chapter
  55. heading. If you wish a gap around  the  heading  when  not
  56. using the "FF" option, then you must make the gap  in  the
  57. source text eg;
  58.  
  59.                 ╔<....some...text...>Θ
  60.  
  61.                 ╔.ch etc.Θ
  62.  
  63.                 ╔<....more...text...>Θ
  64.  
  65.  
  66. ╩SyntaxΩ :.{ <paragraph>
  67.  
  68. Indicates  the  start  of  a  paragraph.  Text  within   a
  69. paragraph is affected by the current format settings. Text
  70. outside is left largely  unaltered.  the  {  command  also
  71. causes indentation, if a value has been specified with the
  72. .pi command.
  73.  
  74.  
  75. ╩SyntaxΩ :<paragraph> .}
  76.  
  77. Indicates the end of a paragraph. Text after this  command
  78. will not be altered  except  to  fit  the  current  margin
  79. settings.
  80.  
  81.  
  82. ╩SyntaxΩ :.nl
  83.  
  84. Format stores each word in a buffer which it  prints  when
  85. the buffer becomes full. This command causes the  contents
  86. of the buffer to be output followed by a  carriage  return
  87. and line feed.
  88.  
  89.  
  90. ╩SyntaxΩ :.el
  91.  
  92. Causes the contents of the buffer to be output followed by
  93. a carriage return and line feed. If the  buffer  is  empty
  94. then no action is taken.
  95.  
  96.  
  97. ╩SyntaxΩ :.pm {SKIP WAIT IGNORE}
  98.  
  99. Sets the paging mode. When FORMAT reaches  the  end  of  a
  100. sheet of paper it has  a  choice  of  ignoring  the  fact,
  101. skipping over the perforations or waiting for the user  to
  102. sort things out. The .pm command allows the  user  to  set
  103. the required option.
  104.  
  105.  
  106. ╩SyntaxΩ :.pn <page.number> {- TOP BOTTOM}
  107.  
  108. Sets the value for the next page number and  the  position
  109. it is to be printed at. The dash indicates  that  no  page
  110. numbers  are  required  from  now  on.  Page  numbers  are
  111. displayed in the form:-
  112.  
  113.            ╔< <number> >Θ  eg;  ╔< 5 >Θ
  114.  
  115. The number is also isolated by blank lines both above  and
  116. below.  These blank lines have the  affect  of  forcing  a
  117. "half skip" when the perforation setting is IGNORE.
  118.  
  119.  
  120. ╩SyntaxΩ :.sh <depth> "<heading>"
  121.  
  122. This command is provided for the same reason  as  the  .ch
  123. command. It operates  in  a  similar  way  except  that  a
  124. section depth value must be specified. For a first section
  125. this value is 1 ie;
  126.  
  127.                     ╔1.1 First SectionΘ
  128.  
  129. For a subsection the value is two ie;
  130.  
  131.                     ╔1.1.1 SubsectionΘ
  132.  
  133. Note that, like .ch, you must isolate section headings  in
  134. the source text if you want them to  be  isolated  in  the
  135. final document.
  136.  
  137.  
  138. ╩SyntaxΩ :.fl <length>
  139.  
  140. Allows the user to tell FORMAT of the  current  number  of
  141. lines╙╔Printable on a╙single sheetΘ note that  this  value
  142. is ╩notΩ the ╙form-length. FORMAT will  decide╙  the  true
  143. form-length by calculating the number of lines  "lost"  to
  144. page numbers and perforation gaps.
  145.  
  146.  
  147. ╩SyntaxΩ :.ls <value>
  148.  
  149. Sets the number of times  the  printer  moves  down  after
  150. printing a  line  of  text.  A  line  spacing  of  two  is
  151. recommended  if  the  document  is  to  be  submitted  for
  152. critical appraisal as it allows  comments  to  be  written
  153. between the lines.
  154.  
  155.  
  156. ╩SyntaxΩ :.ct "<text>"
  157.  
  158. Centres the given text within the current margin settings.
  159.  
  160. ╩SyntaxΩ :.rt "<text>"
  161.  
  162. Prints the given text against the right edge of the paper.
  163.  
  164.  
  165. ╩SyntaxΩ:.nc
  166.  
  167. Disables output of contents list.
  168.  
  169.  
  170. ╩SyntaxΩ :.lm [+]<value>
  171.  
  172. Allows the user to adjust the current setting for the left
  173. margin. The "+"  option  allows  the  user  to  specify  a
  174. relative offset-positive or negative.
  175.  
  176.  
  177. ╩SyntaxΩ :.rm [+]<value>
  178.  
  179. Allows the user to adjust the right margin. See above  for
  180. details.
  181.  
  182.  
  183. ╩SyntaxΩ :.ju {ON OFF}
  184.  
  185. Controls automatic text  justification.  The  ON  and  OFF
  186. options are fairly self explanatory.  Remember  that  text
  187. outside a paragraph is not justified anyway.
  188.  
  189.  
  190. ╩SyntaxΩ :.ff
  191.  
  192. Instructs FORMAT to terminate the current  page  and  skip
  193. forward to the start of the next sheet. The  page  numbers
  194. will, of course, still be printed correctly.
  195.  
  196.  
  197. ╩SyntaxΩ :.fw [+]<value>
  198.  
  199. Allows the user to set the width of paper between the  two
  200. margins. FORMAT will  automatically  centre  the  page  of
  201. text. The "+" option allows the user to specify a relative
  202. size change.
  203.  
  204.  
  205. ╩SyntaxΩ :.da "{<date expression> -}"
  206.  
  207. Causes FORMAT to evaluate the date expression-if given-and
  208. to insert the literal result into the text. The  resulting
  209. text will still be justified if applicable.
  210.  
  211. If `-' is given then the current  date  will  be  inserted
  212. into the text, eg; .da "-"
  213.  
  214.  
  215. ╩SyntaxΩ :.ti
  216.  
  217. Causes FORMAT to insert the current  time  into  the  text
  218. which will still be justified if applicable.
  219.  
  220.  
  221. ╩SyntaxΩ :.ip "<prompt message>"
  222.  
  223. Instructs FORMAT to fetch  a  section  of  text  from  the
  224. user-in response to the prompt-and incorporate the  result
  225. into the text. As with .da and  .ti  the  result  will  be
  226. justified if applicable.
  227.  
  228.  
  229. ╩SyntaxΩ :.in "<file path>" [FF]
  230.  
  231. Instructs FORMAT to break off reading the  current  source
  232. file. FORMAT will then attempt to read the contents of the
  233. given file. The given file can,  itself,  contain  further
  234. .ip commands, but such nesting is only  allowed  up  to  a
  235. maximum of ten suspended files.
  236.  
  237. Provided no more than ten files are suspended at  any  one
  238. time, there is no limit to the number of .ip commands  you
  239. can use. When the end of a file is  reached,  FORMAT  will
  240. return to the last suspended file at a point after the .ip
  241. command.
  242.  
  243. The "FF" directive instructs FORMAT to issue a  form  feed
  244. before continuing printing.
  245.  
  246.  
  247. ╩SyntaxΩ :.vc {START STOP}
  248.  
  249. Instructs FORMAT to buffer the text in between  the  START
  250. and STOP options. When the buffer is  full  (or  when  the
  251. STOP option  is  invoked)  the  text  will  be  vertically
  252. centred.
  253.  
  254.  
  255. ╩SyntaxΩ :.pi <value>
  256.  
  257. Allows the user to set the number of spaces used to indent
  258. a paragraph when the .{ command is invoked.
  259.  
  260.  
  261. ╩SyntaxΩ :.go
  262.  
  263. This command MUST be used to start text output.
  264.  
  265.  
  266. ╩SyntaxΩ :.pr <list<PCC code>>
  267.  
  268. Outputs the given list of  PCC  codes.  The  list  can  be
  269. terminated by any none valid PCC or by the end of a  line.
  270. This option should be used to send codes to the printer to
  271. initialise it before printing starts.
  272.  
  273.  
  274. ╩7.2 Default SettingsΩ
  275.  
  276. Format initialises to a standard document printing status.
  277. This status can be used  to  print  any  report  or  large
  278. document. It is recommended, however, that  users  set  up
  279. ALL initial conditions themselves.
  280.  
  281.          PAGE LENGTH                   : A4 / 70
  282.          PAGE WIDTH                    : 60
  283.          PERFORATION MODE              : SKIP
  284.          PAGE NUMBERS                  : TOP (1+)
  285.  
  286.  
  287. ╩7.3 PCC Data FilesΩ
  288.  
  289. These define the specific values to be sent to the printer
  290. when each PCC is encountered. The default setting  is  for
  291. NULL codes, ie; no codes are sent.  These  default  values
  292. will produce DRAFT output.
  293.  
  294. The code should be given in the following pattern:-
  295.  
  296. <list
  297.  <Letter>
  298.  <list
  299.   <numeric values>
  300.  >
  301. >
  302. -
  303.  
  304. An example could be:-
  305.  
  306. K
  307. 27
  308. 45
  309. 1
  310. -
  311.  
  312. Which would set up  the  underline  ON  option  for  EPSON
  313. printers.╒
  314. $     ╩C H A P T E R   S E V E NΩ
  315.  
  316.  
  317. ╩7 The FORMAT UtilityΩ
  318.  
  319. ╩FormatΩ :╔FORMAT <selectors> <src file>Θ
  320.  
  321. The F