home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / ELM23-2 / ELM23-2.ZIP / doc / Form.guide (.txt) < prev    next >
Amigaguide Document  |  1990-04-28  |  11KB  |  284 lines

  1. .\" @(#)$Id: Form.guide,v 4.1 90/04/28 22:41:05 syd Exp $
  2. .\"  A guide to using the Elm Forms mode
  3. .\"  format with:
  4. .\"    'troff tmac.n - > Forms.format'
  5. .\"  Elm is now in the public trust. Bug reports, comments, suggestions, flames
  6. .\"  etc. should go to:
  7. .\"    Syd Weinstein        elm@DSI.COM (dsinc!elm)
  8. .\"  (C) Copyright 1986, 1987 Dave Taylor
  9. .\"  (C) Copyright 1988, 1989, 1990 Usenet Community Trust
  10. .\"  $Log:    Form.guide,v $
  11. .\" Revision 4.1  90/04/28  22:41:05  syd
  12. .\" checkin of Elm 2.3 as of Release PL0
  13. .po 1i
  14. .ds h0
  15. .ds h1
  16. .ds h2
  17. .ds f0
  18. .ds f1
  19. .ds f2
  20. .nr Hy 1
  21. .nr Pt 1
  22. .nr Pi 0
  23. .lg 0
  24. .\"  Define the big box macro for troff
  25. .de eb
  26. .sp -1
  27. .ie t \{\
  28. \h'-.5n'\L'|\\nau-1'\l'\\n(.lu+1n\(ul'\L'-|\\nau+1'\l'|0u-.5n\(ul'
  29. .el \{\
  30. \h'-.5n'\l'\\n(.lu+1n'
  31. .sv |3.0i
  32. .ce 99
  33. .ps 20
  34. .ss 18
  35. .vs 12
  36. \f3Elm Forms Mode Guide\f1
  37. .sp 3
  38. .ps 12
  39. .ss 14
  40. .vs 14
  41. \f2What Forms Mode is, how to use it to create
  42. custom forms, how to reply to forms, and how to
  43. use it for AT&T Mail messages\f1
  44. .sp 2
  45. Dave Taylor
  46. Hewlett-Packard Laboratories
  47. 1501 Page Mill Road
  48. Palo Alto CA
  49. 94304
  50. .sp 3
  51. email: taylor\s-1@\s+1hplabs.HP.COM  or  hplabs\s-1!\s+1taylor
  52. .sp 3
  53. >>> Elm is now in the public trust. Bug reports, comments, etc. to: <<<
  54. Syd Weinstein
  55. Datacomp Systems, Inc.
  56. 3837 Byron Road
  57. Huntingdon Valley, PA 19006-2320
  58. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  59. .sp 3
  60. .ps 18
  61. \f3\(co\f1\s12 Copyright 1986, 1987 by Dave Taylor
  62. .ps 18
  63. \f3\(co\f1\s12 Copyright 1988, 1989, 1990 by The USENET Community Trust
  64. .ps 10
  65. .ss 12
  66. .vs 12
  67. .bp 1
  68. .sv 5v
  69. .ps 14
  70. \f3A Guide to Forms Mode in Elm\f1
  71. .ds h0 "Forms Mode Guide
  72. .ds h1
  73. .ds h2 "Version 2.3
  74. .ds f0 "May 1, 1990
  75. .ds f1 "Page %
  76. .ps 10
  77. (Version 2.3)
  78. Dave Taylor
  79. Hewlett-Packard Laboratories
  80. 1501 Page Mill Road
  81. Palo Alto CA
  82. 94304
  83. email: taylor\s-1@\s+1hplabs.HP.COM  or  hplabs\s-1!\s+1taylor
  84. .sp 2
  85. >>> Elm is now in the public trust. Bug reports, comments, etc. to: <<<
  86. Syd Weinstein
  87. Datacomp Systems, Inc.
  88. 3837 Byron Road
  89. Huntingdon Valley, PA 19006-2320
  90. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  91. May 1, 1990
  92. .ce 0
  93. .sp 2
  94. While there are a lot of mail systems that allow the transmission
  95. of text and primitive pictures, to send and reply to more complex
  96. forms is simply not possible.  \f3Elm\f1, however, took
  97. the forms mode implemented as part of the AT&T Mail package and has
  98. expanded on it to be a smoothly fit part of the overall mail system.
  99. Forms mode gives you the ability to send `template' files to people
  100. and receive the filled-in replies.\s-2\u1\d\s0
  101. \f21. note that this feature assumes that the person on the other end
  102. is also using the Elm mail system.\f1
  103. Let's look at an example right off.
  104. Say we were going to use computer mail as a way to file defects with
  105. software.  There is a certain amount of information we want to be able
  106. to collect when each report is made, and if it is in a specific format
  107. we can use programs to file the defects upon receipt.
  108. The form we'll try to emulate starts out looking like:
  109. .\" A manual page break has been done because the 'sd' macro doesn't like
  110. .\" coming up right after the footer or just doesn't like going to a new
  111. .\" page by itself.  The bug has been reported.
  112. .ft CW
  113. .sd c
  114. .mk a
  115. .tl ''Defect Reporting Form''
  116. .tl 'Program:\ \l'2.3i-\w'Program:\ 'u'''Version:\ \l'1.7i-\w'Version:\ 'u''
  117. .tl 'Operating\ System:\ \l'2.3i-\w'Operating\ System:\ 'u'''Version:\ \l'1.7i-\w'Version:\ 'u''
  118. .tl 'Defect\ Type:\ \l'2.3i-\w'Defect\ Type:\ 'u'''
  119. .tl 'Date\ Found:\ \l'2.3i-\w'Date\ Found:\ 'u'''By\ Whom:\ \l'2.3i-\w'By\ Whom:\ 'u'\h'.2i''
  120. .tl 'Date\ Reported:\ \l'2.3i-\w'Date\ Reported:\ 'u'''Phone:\ \l'2.3i-\w'Phone:\ 'u'\h'.2i''
  121. .tl 'Description:\ \l'6.4i-\w'Description:\ 'u''
  122. .tl '\l'6.4i''
  123. .tl '\l'6.4i''
  124. .ft 1
  125. This form can actually be created almost exactly as listed above in
  126. the \f3Elm\f1 mail system by using your standard editor and can then
  127. be mailed about as needed.
  128. Let's say that we want a bit more information, however, especially with
  129. fields like ``Defect Type'', we want to list all the recommended answers.
  130. To create the actual form, we need merely to replace the underlines in
  131. the above form with spaces.  The multi-line comments can simply be
  132. indicated by a `:' by itself on a line;
  133. .ft CW
  134. .sd c
  135. .mk a
  136. .tl ''Defect Reporting Form''
  137. .tl 'Program:''Version:\h'1.7i-\w'Version:'u''
  138. .tl 'Operating System:''Version:\h'1.7i-\w'Version:'u''
  139. .tl '(Valid Defect Types are: user-error, doc-error, fatal, other)'
  140. .tl 'Defect Type:''
  141. .tl 'Date Found:''By\ Whom:\h'2.3i-\w'By\ Whom:'u''
  142. .tl 'Date Reported:''Phone:\h'2.3i-\w'Phone:'u''
  143. .tl 'Description'
  144. .tl ':'
  145. Thank you for filling in this form.
  146. .sp 2
  147. .ft 1
  148. As we can see, it is quite simple to create forms!!
  149. .sp 2
  150. Now that we have an idea what we're talking about, let's actually officially
  151. define the system...
  152. .ne 5
  153. .hu Forms Mode Specification
  154. [Note that this is all taken from the document \f2Standard for Exchanging
  155. Forms on AT&T Mail\f1, Version 1.9 of 6/7/86, from AT&T]
  156. The forms mode is really quite simple.  Simple enough that it is amazing
  157. that it hadn't been implemented before AT&T Mail came along!!
  158. In a nutshell, each field is delimited by a `:' followed by a number of
  159. blank spaces or tabs that represent the valid size for that field.  That
  160. is, if we have a line in the form like;
  161. .ti .5i
  162. ``Phone (area-code):\0\0\0\0\0Number:\0\0\0\0\0\0\0\0\0\0''
  163. The area-code field will be limited to three characters and the number to nine.
  164. (this is kind of hard to see with the proportionally spaced formatted copy,
  165. alas).
  166. The only exception to the rule is that a `:' by itself on a line represents
  167. a field that is as large as the user entering the data desires.
  168. The actual form that is transmitted, in AT&T Mail parlance, is a ``SIMPLE''
  169. forms handler message (as opposed to the ``ADVANCED'' handler).  This means
  170. that it contains three sections;
  171. .ne 8
  172. .in .5i
  173. .ft 2
  174. The Message Header
  175. .ft CW
  176. [\&OPTIONS-SECTION]
  177. [\&FORMS-IMAGE]
  178. [\&RULES-SECTION]\f1
  179. .in 0
  180. \f3Elm\f1 generates form messages with the ``options'' section filled out,
  181. but ignores it when receiving mail.  The filled out section is:
  182. .ft CW
  183. .in .5i
  184. WIDTH=80
  185. TYPE=SIMPLE
  186. OUTPUT=TEXT\f1
  187. .in 0
  188. The FORMS-IMAGE section is that described above.  The RULES-SECTION can
  189. contain explicit rules about the possible values of each field, but
  190. this is currently ignored by \f3Elm\f1, being a ``SIMPLE'' forms mode
  191. mail system.
  192. Forms also have the header ``Content-Type: mailform'' to indicate to the
  193. mail system (either \f3Elm\f1 or AT&T Mail) that a form is being sent.
  194. \f3Elm\f1 further indicates that a form has been received by having an
  195. ``F'' as the status character in the header display section (instead of
  196. ``N'' for new, etc).
  197. .ne 5
  198. .hu Composing and Sending a Form
  199. The first step to enable sending forms is to change the setting of
  200. the variable \f2forms\f1 in your \f2.elm/elmrc\f1 file to ``ON''.  E.g.:
  201. .ti .5i
  202. forms = ON
  203. The next step is to send the message to someone using the `m' (\f2mail\f1)
  204. command.  This then will drop you into an editor.  Type in the form as
  205. indicated above, with appropriate colons and comments, and end the entry
  206. by leaving the editor.
  207. The prompt is now;
  208. .ft CW
  209. .tl ''Choose: E)dit msg, edit H)eaders, M)ake form, S)end or F)orget : @''
  210. .ft 1
  211. so we choose `m' \(em \f2Make form\f1.  The program then will either
  212. rewrite the prompt without the M)ake form option, indicating that
  213. the form has been accepted, or will indicate the problem and give you
  214. a chance to correct it.
  215. Once it has been accepted, simple use the `s' \(em \f2send message\f1 -
  216. command and it's off!
  217. \f2Note that you cannot reply to a message with a Form.\f1
  218. .ne 6
  219. .hu Replying to a Form
  220. Let's reply to the form message we generated now.  The header page of the
  221. \f3Elm\f1 mail system will indicate that the message is a form by having
  222. an `F' next to it.  So we use `r' to reply and the screen is immediately
  223. cleared and we're prompted, field by field, for the data requested.
  224. Each field has underscores in the input area to indicate the size field that
  225. is expected.
  226. After answering all the questions we'll have a screen that looks like;
  227. .ft CW
  228. .sd c
  229. .mk a
  230. .tl ''Defect Reporting Form''
  231.  Program:  \f3The Elm Mail System\f1\l'3i-\w'\f3The Elm Mail System'u'
  232.  Version:  \f31.5\f1\l'3i-\w'\f31.5'u'
  233.  Operating System:  \f3HP-UX\f1\l'3i-\w'\f3HP-UX'u'
  234.  Version:  \f35.141 C\f1\l'3i-\w'\f35.141 C'u'
  235.  (Valid Defect Types are: user-error, doc-error, fatal, other)
  236.  Defect Type:  \f3fatal\f1\l'5i-\w'\f3fatal\f1'u'
  237.  Date Found:  \f310/9/86\f1\l'3i-\w'\f310/9/86\f1'u'
  238.  By Whom:  \f3Dave Taylor\f1\l'3i-\w'\f3Dave Taylor\f1'u'
  239.  Date Reported:  \f310/9/86\f1\l'3i-\w'\f310/9/86\f1'u'
  240.  Phone:  \f3(415) 857-6887\f1\l'3i-\w'\f3(415) 857-6887\f1'u'
  241.  Description
  242.  (Enter as many lines as needed, ending with a `.' by itself on a line)
  243.    \f3When running it on a CPM system I cannot compile successfully.\f1
  244.    \f3.\f1
  245.  Thank you for filling in this form.
  246. .tl ''Choose: E)dit form, edit H)eaders, S)end or F)orget : @''
  247. .ft 1
  248. Quite simple.  Notice, however, that the order of prompting is left to
  249. right on each line, so the fields that on the form are placed in what
  250. seems like a logical place, ``By Whom:'' and ``Phone:'' turn out to be
  251. confusing when filling in the actual form since it isn't clear what
  252. ``Phone:'' is being asked for because of the intervention of the
  253. ``Date Reported:'' field.
  254. The message that will actually be sent out from this will have the
  255. fields in a more acceptable format;
  256. .\" Force page break, as there seems to be a bug in the .sd macro
  257. .ft CW
  258. .mk a
  259.  WIDTH=80
  260.  TYPE=SIMPLE
  261.  OUTPUT=TEXT
  262. .tl ''Defect Reporting Form''
  263. .tl ' Program: The Elm Mail System''Version: 1.5\h'1.5i-\w'Version: 1.5'u''
  264. .tl ' Operating System: HP-UX''Version: 5.141 C\h'1.5i-\w'Version: 5.141 C'u''
  265. .tl ' (Valid Defect Types are: user-error, doc-error, fatal, other)'
  266. .tl ' Defect Type: fatal''
  267. .tl ' Date Found: 10/9/86''By Whom: Dave Taylor\h'2.3i-\w'By Whom: Dave Taylor'u''
  268. .tl ' Date Reported: 10/9/86''Phone: (415) 857-6887\h'2.3i-\w'Phone: (415) 857-6887'u''
  269. .tl ' Description'
  270.     When running it on a CPM system I cannot compile successfully.
  271. .tl ' Thank you for filling in this form.'
  272. .ft 1
  273. .hu Comments on Forms Mode
  274. As was said at the beginning, this way of sending about forms could
  275. prove to be very helpful and useful in a variety of contexts.  On the
  276. other hand, until a more sophisticated forms language is used for the
  277. forms, this should be sufficient to embody the power of the idea.
  278. I welcome any comments and thoughts on this system and also welcome
  279. possible enhancements.
  280. I also gratefully thank Dale DeJager of AT&T Information Systems
  281. for sending me more
  282. information on AT&T Mail than I could possibly digest in any finite
  283. amount of time.
  284.