home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / TEXT / UTILITY / DRC.ZIP / README.SRC < prev   
Encoding:
Text File  |  1991-11-28  |  9.8 KB  |  268 lines

  1. %%*
  2. %%*  README.SRC
  3. %%*  User's guide for David's Readme Compiler
  4. %%*  (c) 1991, David Harris, all rights reserved.
  5. %%*
  6. %%*  Compile an executable readme from this file using
  7. %%*  the command 'RCOM README.SRC'.
  8. %%*
  9. %%*  This line is a comment.
  10. %%*  The next line is the title for the main screen (note the %%T).
  11. %%T  0, David's Readme Compiler - User's Guide
  12. %%*
  13. %%*      The next line is the first top-level entry in the file (note
  14. %%*      the type of 0). The second integer means that this entry leads
  15. %%*      to a sub-menu of items of type 100 in the file.
  16. %% 0, 100, About the Readme Compiler
  17. %%*
  18. %%*      The next entry is a top level item with no sub-entries: when
  19. %%*      selected, its associated text will display at once.
  20. %% 0, 0, Installing the Readme Compiler
  21.  
  22. To install David's Readme Compiler, place the files
  23. README.BIN and RCOM.EXE in a directory somewhere.
  24. Actual location doesn't matter, so long as both are
  25. in the same place.
  26.  
  27. The programs can be on the path if you wish, but
  28. they don't have to be.
  29. %%*
  30. %%*     The next line is an index entry for items of
  31. %%*     type 300: when it is selected, all the items
  32. %%*     of type 300 in the file will be collected into
  33. %%*     a menu and displayed. Notice that the index
  34. %%*     entry itself has no associated text.
  35. %%*
  36. %% 0, 300, Creating a Readme source file
  37. %%*
  38. %%*     Next, we have the first entry of type 100: this
  39. %%*     and the other type 100 entries will be displayed
  40. %%*     as a submenu when the index entry (above,
  41. %%*     "About the readme compiler") is chosen.
  42. %%*
  43. %% 0, 0, Compiling the source file
  44.  
  45. To create a standalone guide, enter the command
  46.  
  47.          RCOM <filename>
  48.  
  49. where <filename> is the name of the source file you
  50. have created. RCOM will make a temporary file, and
  51. will then bind it to README.BIN as a .EXE file with
  52. the same name as the input file. That's all there 
  53. is to it!
  54. %% 0, 0, Using the compiled readme
  55.  
  56. Once you have compiled and bound your readme, you can use
  57. it at once simply by typing its name. 
  58.  
  59. By default, DRC clears and paints the screen, but you can
  60. force it to come up over the top of the current screen by
  61. by invoking it with a /S switch: when it terminates, the
  62. screen will be left as it was on entry. This is useful if
  63. you want to use DRC to generate a help system which is
  64. spawned by a parent program.
  65. %%*
  66. %% 100, 0, What the Readme compiler is...
  67.  
  68. It's a very rare PC software package indeed these days which
  69. doesn't have a profusion of readme files associated with it.
  70. Readme files can get lost, and it's not immediately intuitive
  71. what you do with them. What's more, it's almost impossible to
  72. create a Readme file which presents the necessary information
  73. in an accessible way.
  74.  
  75. David's Readme Compiler attempts to provide a better way of
  76. creating readme files. It's a set of programs which allow
  77. you to create executable user guides - one program contains
  78. it all, no need for extra files. You create a simple text
  79. file which tells DRC how to present your guide, run it
  80. through the compiler (RCOM.EXE), and violà! All done!
  81. %% 100, 0, And what it can do ...
  82.  
  83. DRC allows you to "nest" text, effectively creating a
  84. hierarchical menu structure. You can do this to an
  85. arbitrarily deep level.
  86.  
  87. DRC supports colour, and allows printing and extracting 
  88. of text. You can highlight words in a message.
  89.  
  90. DRC has a search command which can look through a file
  91. in a free-text form for keywords.
  92. %% 100, 0, Then, some applications ...
  93.  
  94. You can use DRC for more than just readme files: here are
  95. some ideas I've come up with.
  96.  
  97.     On-line manuals for software.
  98.     Help systems, maybe for your LAN.
  99.     Presentations
  100.     Reference systems
  101.  
  102.    ... and so on. Pretty much anything which involves
  103.    organizing text for reference.
  104. %% 100, 0, Licensing (good news!)...
  105.  
  106. The good news about DRC is that it is totally free. You
  107. may use it in any way you wish, without restriction,
  108. obligation, liability or responsibility. Commercial
  109. organizations may distribute all, or any part of David's
  110. Readme Compiler with products if they wish.
  111.  
  112. The ONLY restriction on David's Readme Compiler, is that
  113. you may not sell it directly, although it's OK to include
  114. it as part of another system.
  115.  
  116. If you want to include a small credit in any readme you
  117. create using DRC, I'd always be grateful, but I don't
  118. even require this.
  119.  
  120. I hope you enjoy using DRC!
  121. %% 100, 0, And contacting the author.
  122.  
  123. DRC is written by David Harris, P.O. Box 5451, Dunedin,
  124. New Zealand. If you have problems or questions, I can
  125. be reached by e-mail as david@otago.ac.nz (or from
  126. CompuServe, >internet:david@otago.ac.nz).
  127.  
  128. Cheers!
  129. -- David --
  130. 27 Nov '91.
  131. %% 300, 0, 94, 90, The sample file
  132.  
  133. The source file used to create this readme file
  134. is supplied with the system as README.SRC.
  135.  
  136. You can refer to it to get a general feel for
  137. how the source file needs to be prepared.
  138. %% 300, 0, The general format
  139.  
  140. The source file for DRC is a single relatively simple
  141. text file, which contains special markers to indicate
  142. topics and section headings. Marker lines are always
  143. introduced by two percentage signs (%%) at the start
  144. of a line. Some marker lines require a character in
  145. the third position - these are the following:
  146.  
  147.    %%*    Comment: text to end-of-line is ignored.
  148.    %%T    Title: the title on the main screen. An
  149.           optional integer can be included which sets
  150.           the video attribute of the title bar. For
  151.           a list of values, see Setting Colour in
  152.           Windows later in this menu.
  153.  
  154. The other type of marker line is a topic heading: this
  155. consists of 2 mandatory integers, 2 optional integers
  156. and a title. 
  157.  
  158.   The first integer is a type field, which is simply
  159.    a numeric tag for the entry. A file can have several
  160.    entries with the same type number, which will make 
  161.    up a menu. Type 0 entries are always the top-level 
  162.    entries, and a file must have at least one of these.
  163.  
  164.   The second integer is either 0, in which case the
  165.    entry has text which should be displayed when the
  166.    item is selected, or a positive value. If it is
  167.    the latter then it indicates that the entry is an
  168.    index for another type of entry: when the item is
  169.    chosen, DRC scans the file for all other entries
  170.    of the type specified and creates a sub-menu from
  171.    them, which it presents to the user.
  172.  
  173.   The optional integers specify the video attributes
  174.    for text in a the window, and the window frame
  175.    respectively. A table of values is provided in the 
  176.    menu (see Colour changes in Windows). You can omit
  177.    one or both of these, in which case DRC will assume 
  178.    default values.
  179.  
  180.   The title is displayed in the text window, and as
  181.    the choice in the menu.
  182.  
  183. Example: the line used to create the entry The Sample
  184. File in this menu:
  185. %% 300, 0, 94, 90, The sample file
  186. ^   ^   ^  ^   ^   ^──  The title
  187. │   │   │  │   └──────  Frame colour (Lt Green/Magenta)
  188. │   │   │  └──────────  Text colour (Yellow/Magenta)
  189. │   │   └─────────────  Entry is not an index field
  190. │   └─────────────────  The type for this entry
  191. └─────────────────────  The marker line prefix  
  192. %%*
  193. %% 300, 0, Highlighting text
  194.  
  195. DRC automatically sizes the window for text according to
  196. the maximum line width, and the number of lines. If there
  197. are more lines than will fit in the Window, the user can
  198. scroll using the arrow and page keys.
  199.  
  200. You can highlight text in a topic by enclosing it in ^A
  201. characters (the IBM smiley face). You can reverse text
  202. by enclosing it in ^B characters.
  203. %% 300, 0, Colour changes in windows
  204.  
  205. The colour fields in entry headers are numeric values
  206. which represent IBM screen attributes, according to 
  207. the following table:
  208.  
  209.       Colour          │   Text   │ Background
  210.      ─────────────────┼──────────┼───────────
  211.       Blue            │    1     │  add 16
  212.       Green           │    2     │  add 32
  213.       Cyan            │    3     │  add 48
  214.       Red             │    4     │  add 64
  215.       Magenta         │    5     │  add 80
  216.       Brown           │    6     │  add 96
  217.       Light grey      │    7     │  add 112
  218.       Dark grey       │    8     │  --na--
  219.       Light blue      │    9     │  --na--
  220.       Light green     │    10    │  --na--
  221.       Light cyan      │    11    │  --na--
  222.       Light red       │    12    │  --na--
  223.       Light magenta   │    13    │  --na--
  224.       Yellow          │    14    │  --na--
  225.       White           │    15    │  --na--
  226.      ─────────────────┴──────────┴─────────
  227.  
  228.       Example: 
  229.          Yellow text on Magenta background
  230.          = 14 + 80 
  231.          = 94
  232. %% 300, 0, Colour changes in text
  233.  
  234. Colour changes in text are a little more tricky, and
  235. may not work satisfactorily on monochrome systems.
  236. To imbed a colour change, enter a ^C character in the
  237. text, followed immediately by one of the following
  238. characters:
  239.  
  240.     A   Blue text             B   Green text
  241.     C   Cyan text             D   Red text
  242.     E   Magenta text          F   Brown text
  243.     G   Light grey text       H   Dark grey text
  244.     I   Light Blue text       J   Light Green text
  245.     K   Light Cyan text       L   Light Red text
  246.     M   Light Magenta text    N   Yellow text
  247.     O   Bright white text
  248.  
  249.    Example: CCyan, DRed, NYellow, JLight-Green@
  250.  
  251.    ^C@ has a special meaning - it means "change to
  252.    whatever the original video colour was".
  253. %% 300, 0, Limitations and notes
  254.  
  255. No single entry may be larger than about 16KB and
  256. the file cannot at this stage have more than 512
  257. total entries.
  258.  
  259. The source file MUST end with a single '%%' pair
  260. on a line of its own.
  261.  
  262. If running under Novell NetWare, a guide compiled
  263. with DRC must not be flagged Execute-only, although
  264. it can be set to read only.
  265. %%*
  266. %%*  Note that the file MUST end with a blank '%%' pair.
  267. %%
  268.