home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / APPS / DATABASE / FDVW233.ZIP / FOODVIEW.DOC < prev    next >
Encoding:
Text File  |  1991-11-27  |  27.1 KB  |  730 lines

  1. WELCOME TO...
  2.  
  3.             ┌────╖                  ┌─╖ ┌─╖  ┌─╖ ┌─╖
  4.             │ ╔══╝                  │ ║ │ ║ ┌┘ ║ ╘═╝
  5.             │ ╙─╖  ┌────╖ ┌────╖ ┌──┘ ║ │ ║┌┘ ╔╝ ┌─╖ ┌────╖ ┌─╖   ┌─╖
  6.             │ ╔═╝  │ ╔╕ ║ │ ╔╕ ║ │ ╔╕ ║ │ ╙┘ ╔╝  │ ║ │ ╔╕ ║ │ ║┌─╖│ ║
  7.             │ ║    │ ╙┘ ║ │ ╙┘ ║ │ ╙┘ ║ │   ╔╝   │ ║ │ ╙┴─╢ │ ╙┘ ╙┘ ║
  8.             ╘═╝    ╘════╝ ╘════╝ ╘════╝ ╘═══╝    ╘═╝ ╘════╝ ╘═══════╝
  9.  
  10.  
  11.  
  12. General
  13. ▀▀▀▀▀▀▀
  14.  
  15. FOODVIEW allows you to browse USENET recipe files that are in TROFF format.
  16.  
  17.  
  18. Program Info
  19. ▀▀▀▀▀▀▀▀▀▀▀▀
  20.  
  21. Version:......... 2.33
  22. Date:............ 12-Nov-91
  23. Programmed by:... Paul G.W. Hosken
  24.                   Kirchstr. 23
  25.                   8082 Grafrath
  26.                   West Germany
  27.  
  28. FOODVIEW(tm) - Copyright (c) 1991 Paul G.W. Hosken - All rights reserved
  29.  
  30.  
  31. Installation
  32. ▀▀▀▀▀▀▀▀▀▀▀▀
  33.  
  34. The program comes as a ZIP file and should contain the following files:
  35.  
  36.     DEMO    .REC -- Demonstation TROFF file.
  37.     FOODVIEW.DOC -- Program documentation.
  38.     FOODVIEW.EGA -- Screen for EGA displays.
  39.     FOODVIEW.EXE -- Main program.
  40.     FOODVIEW.H1  -- Help file (1 of 4)
  41.     FOODVIEW.H2  -- Help file (2 of 4)
  42.     FOODVIEW.H3  -- Help file (3 of 4)
  43.     FOODVIEW.H4  -- Help file (4 of 4)
  44.     FOODVIEW.PRN -- Printer info. file (initially only an outline).
  45.     FOODVIEW.HRC -- Screen for Hercules displays.
  46.     HPLJ2P  .PRN -- Example printer info file for HP Laserjet 2P.
  47.     LICENSE .DOC -- License information.
  48.     READ    .ME  -- Last minute information.
  49.     REGISTER.FRM -- Registration form (copy to printer).
  50.  
  51. To install the program set your current directory to the one where you want 
  52. the program files to be stored. E.g:
  53.  
  54.     cd \
  55.     md FOODVIEW
  56.     cd FOODVIEW
  57.  
  58. Then unpack the file. E.g:
  59.  
  60.     PKUNZIP FDVWxxx
  61.  
  62. (where 'xxx' represents the version number of the program (i.e. FDVW233 for 
  63. version 2.33).
  64.  
  65. The files listed above should then exist in your current directory. Please 
  66. note that only the files with the name FOODVIEW are essential to the running
  67. on the program, the rest are for information or demonstration purposes.
  68.  
  69. To be able to run the program from outside this directory define the 
  70. environment variable FDVWPATH to point at the directory where the program 
  71. files are. E.g:
  72.  
  73.     set FDVWPATH=C:\FOODVIEW
  74.  
  75. If this variable is not set then the program may not be able to find the help
  76. or printer files. Also, to make life easier you may wish to include this
  77. directory in the PATH environment variable. This would allow the program to be
  78. started just by typing 'FOODVIEW'.
  79.  
  80. There is just one last thing to do for the installation to be complete, and 
  81. that is to edit the printer information file (FOODVIEW.PRN) to include the 
  82. escape sequences for your printer. This is explained in detail in the section
  83. 'Printer Information File'. I would recommend leaving this step until later as
  84. the file is not required until you want to print a recipe.
  85.  
  86. The program should now be 'ready for action', and all you need are some recipe
  87. files. Included with the program is a demonstration file called DEMO.REC which
  88. you can use when playing with the program for the first time.
  89.  
  90.  
  91. The Command Line
  92. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  93.  
  94. To start the program simply type:
  95.  
  96.     FOODVIEW
  97.  
  98. However, a number of parameters can be included on the command line. The full
  99. syntax is as follows:
  100.  
  101.     FOODVIEW {input_file_name} {switch1 {switch2 {switch3 ... }}}
  102.  
  103. where:
  104.     {input_file_name} is the name (and path) of a recipe file.
  105.             E.g:  DEMO.REC
  106.     {switch} can be one or more of the following:
  107.             -H = monocrome (Hercules) output
  108.             -K = keyboard only (do not use mouse)
  109.             -M = set default mesurements to metric
  110.             -R = register program
  111.             -T = text only (i.e. suppress ANSI sequences to screen)
  112.  
  113. Note that the switches can be preceeded by a '-' (as above) or '/', and can be
  114. in upper or lower case.
  115.  
  116. Example command line input:
  117.  
  118.     FOODVIEW DEMO.REC -H -K -M
  119.  
  120. This instructs the program to start and to use the recipe file DEMO.REC. 
  121. Screen output will be in monochrome and no mouse input will be accepted. The
  122. recipes will have any measurements displayed in metric instead of imperial
  123. (default).
  124.  
  125.  
  126. Using FOODVIEW with a Mouse
  127. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  128.  
  129. FOODVIEW supports the use of a mouse. The program will automatically detect if
  130. a mouse is available and display a mouse symbol (assuming that the program has
  131. not been started with the -K switch). The mouse symbol will vary depending on
  132. the currect program function that is active, i.e. in the main screen it will
  133. be a small sun, whereas in a select screen it will be a small arrow. The mouse
  134. window also varies along with the function. This may be a little confusing the
  135. first time you use the program, but it will not take long to familiarise
  136. yourself with its operation.
  137.  
  138.  
  139. The Recipe Viewing Screen (Main Screen)
  140. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  141.  
  142. After starting FOODVIEW the mask for the main screen will be displayed. The 
  143. function of this screen is to allow you to view the recipes in the file. If 
  144. the name of a recipe file was included on the command line then this file will
  145. be opened and read in. During this time the message 'WAIT' will be displayed
  146. on the bottom right of the screen. After the recipes have been read and
  147. indexed the first page of the first recipe will be displayed.
  148.  
  149. If no recipe file was specified then the program will ask you to enter one. 
  150. Entering a blank file name will terminate the program.
  151.  
  152. When a page of a recipe is being displayed the top line of the screen will 
  153. contain the UNIX filename, recipe codes, recipe source and date. The bottom 
  154. line is a status line and will contain a set of mouse icons and status 
  155. infomation.
  156.  
  157.  
  158. The Status Line
  159. ═══════════════
  160.  
  161. The bottom line of the screen contains a set of icons for use with a mouse, 
  162. and four status values as follows:
  163.  
  164.  FOODVIEW │xxxxxx│ « │  │  │ » │   │  │ √ │ ? │ ■ │   1│  16│   1│  16
  165.  
  166.            └─┬──┘                                     └┬─┘ └┬─┘ └┬─┘ └┬─┘
  167.              │                                         │    │    │    │
  168.              └────────────────────────────────────┐    │    │    │    │
  169.                                                   │    │    │    │    │
  170.         Free memory (bytes)───────────────────────┘    │    │    │    │
  171.         Number of current recipe (in selected list)────┘    │    │    │
  172.         Number of recipes selected──────────────────────────┘    │    │
  173.         Number of current recipe (in file)───────────────────────┘    │
  174.         Number of recipes in file─────────────────────────────────────┘
  175.  
  176.  
  177. Input
  178. ═════
  179.  
  180. The left-hand set of four icons on the status line control movement within the
  181. recipe file, or within a recipe, as follows:
  182.  
  183. « - Fast rewind
  184.     Mouse left button:   Go back 1 page in recipe    (F1)
  185.     Mouse right button:  Go back 10 recipes          (CTRL/F1)
  186.  
  187.  - Rewind
  188.     Mouse left button:   Go back 1 line in recipe    (F2)
  189.     Mouse right button:  Go back 1 recipe            (CTRL/F2)
  190.  
  191.  - Forward
  192.     Mouse left button:   Go forward 1 line in recipe (F3)
  193.     Mouse right button:  Go forward 1 recipe         (CTRL/F3)
  194.  
  195. » - Fast forward
  196.     Mouse left button:   Go forward 1 page in recipe (F4)
  197.     Mouse right button:  Go forward 10 recipes       (CTRL/F4)
  198.  
  199. The right-hand set of four icons relate to action functions as follows:
  200.  
  201.  - Display 'mark/select recipe' screen
  202.     Mouse left or right button, or (F5 or CTRL/M)
  203.  
  204. √ - Display options menu
  205.     Mouse left or right button, or (F6 or CTRL/O)
  206.  
  207. ? - Display help screen
  208.     Mouse left or right button, or (F7)
  209.  
  210. ■ - Exit from program (return to DOS)
  211.     Mouse left or right button, or (F8 or CTRL/X)
  212.  
  213. Apart from these commands there are four others that can only be entered from
  214. the keyboard:
  215.  
  216. Home   - Go to first recipe.
  217.  
  218. End    - Go to last recipe.
  219.  
  220. Delete - Deselect recipe being viewed and move on to next one.
  221.  
  222. CTRL/A - Select all recipes in file.
  223.  
  224.  
  225. Mark/Select Recipe Screen
  226. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  227.  
  228. After choosing this function a list of all the recipes in the file will be 
  229. displayed. This list can be scrolled and the individual recipes can be
  230. selected/deselected for viewing. Only selected recipes will be displayed on 
  231. the 'recipe viewing screen'.
  232.  
  233. Here the mouse region is the left-hand column of the screen. The cursor can be
  234. moved either by using the mouse or the up/down arrow keys (or F2/F3). The
  235. commands are as follows:
  236.  
  237. On RECIPE line
  238.     Mouse left button:   Select/deselect recipe      (ENTER)
  239.     Mouse right button:  Select/deselect ALL recipes (CTRL/ENTER)
  240.  
  241.  - Scroll list up
  242.     Mouse left button:   Scroll up 1 page            (F1 or PgUp)
  243.     Mouse right button:  Scroll up 5 pages           (CTRL/F1 or CTRL/PgUp)
  244.  
  245.  - Scroll list down
  246.     Mouse left button:   Scroll down 1 page          (F4 or PgDn)
  247.     Mouse right button:  Scroll down 5 pages         (CTRL/F4 or CTRL/PgDn)
  248.  
  249. √ - Display 'select' options menu
  250.     Mouse left button, or (F6 or CTRL/O).
  251.  
  252. ■ - Exit from menu
  253.     Mouse right button, or (F8 or CTRL/X).
  254.  
  255. Note: The mouse can be simulated by using the arrow keys to position the 
  256. cursor, ENTER for the left button, and CTRL/ENTER for the right button. For 
  257. example, to scroll the list up by 5 pages press the up arrow key until the 
  258. cursor is at the top of the screen and then press CTRL/ENTER).
  259.  
  260. Apart from these commands there are six others that can only be entered from
  261. the keyboard:
  262.  
  263. Home      - Go to top of screen.
  264.  
  265. End       - Go to bottom of screen.
  266.  
  267. CTRL/Home - Go to first recipe in list.
  268.  
  269. CTRL/End  - Go to last recipe in list.
  270.  
  271. CTRL/R    - Reverse all selections (i.e. all selected recipes become
  272.             deselected and all unselected become selected).
  273.  
  274. F7        - Display help screen
  275.  
  276. Here is an example of how to select a single recipe for display:
  277.  
  278.     1) Deselect all recipes by positioning mouse on any recipe line and
  279.        pressing the right button (keyboard: CTRL/ENTER).
  280.     2) Scroll list up/down until the required recipe is visible on the
  281.        screen. To do this position the mouse on the appropriate arrow
  282.        symbol and press the right/left button (keyboard: use PageUp and
  283.        PageDn keys to scroll)
  284.     3) Select recipe by positioning the cursor on the desired recipe line
  285.            and pressing the left mouse button (keyboard: use the arrow up/
  286.            down keys to position the cursor and the ENTER key to select).
  287.  
  288. After doing this and exiting from this screen (press the right button when the
  289. mouse is at the bottom of the screen, of press CTRL/X, F8, or CTRL/ENTER) the
  290. contents of your selected recipe will be displayed.
  291.  
  292. When a recipe file is newly loaded all recipes are automatically selected.
  293.  
  294.  
  295. Mark/Select Options Menu
  296. ════════════════════════
  297.  
  298. This menu is entered from the 'Select Recipe Screen' (using F6, CTRL/O, or by
  299. positioning the cusor at the bottom of the screen and pressing the left mouse
  300. button). The following menu is then displayed:
  301.  
  302.     Select recipes using:
  303.       -KEYWORDS
  304.       -RECIPE CODES
  305.       -TEXT SEARCH
  306.       -Exit from menu
  307.  
  308. This menu allows you to select the recipes in groups according to keywords, 
  309. recipe codes or the result of a text search. To select one of the items in the
  310. menu position the cursor next to the option and press either of the mouse
  311. buttons or the ENTER key. After choosing an option, selecting some recipes and
  312. then returning to the 'Select Recipe Screen' the recipes that correspond to
  313. the keywords, codes, etc. will be marked as selected.
  314.  
  315.  
  316. Selecting Recipes by KEYWORDS
  317. ─────────────────────────────
  318.  
  319. After selecting this option a list of all keywords that have been found in the
  320. recipe file will be displayed in alphabetical order. After each keyword
  321. appears a number, this is the number of recipes that contain this keyword. The
  322. entry .None. (usually the last keyword in the list) represents any recipes
  323. that have no keywords at all. Selecting keywords is exactly the same as
  324. manually selecting recipes, use the mouse or arrow keys to position the cursor
  325. and then select using the mouse buttons or ENTER key. Following is a full list
  326. of available commands.
  327.  
  328. On KEYWORD line
  329.     Mouse left button:   Select/deselect recipe      (ENTER)
  330.     Mouse right button:  Select/deselect ALL recipes (CTRL/ENTER)
  331.  
  332.  - Scroll list up
  333.     Mouse left button:   Scroll up 1 page            (F1 or PgUp)
  334.     Mouse right button:  Scroll up 5 pages           (CTRL/F1 or CTRL/PgUp)
  335.  
  336.  - Scroll list down
  337.     Mouse left button:   Scroll down 1 page          (F4 or PgDn)
  338.     Mouse right button:  Scroll down 5 pages         (CTRL/F4 or CTRL/PgDn)
  339.  
  340. ■ - Exit from menu
  341.     Mouse left or right button, or (F8 or CTRL/X).
  342.  
  343. Note: The mouse can be simulated by using the arrow keys to position the 
  344. cursor, ENTER for the left button, and CTRL/ENTER for the right button. For 
  345. example, to scroll the list up by 5 pages press the up arrow key until the 
  346. cursor is at the top of the screen and then press CTRL/ENTER).
  347.  
  348. Apart from these commands there are five others that can only be entered from
  349. the keyboard:
  350.  
  351. Home      - Go to top of screen.
  352.  
  353. End       - Go to bottom of screen.
  354.  
  355. CTRL/Home - Go to first KEYWORD in list.
  356.  
  357. CTRL/End  - Go to last KEYWORD in list.
  358.  
  359. F7        - Display help screen
  360.  
  361. Note: It is possible to achieve interesting results when combining keyword 
  362. selection with the reverse selection command (CTRL/R) in the 'select recipe
  363. menu'. For example, assuming that the keyword MICROWAVE is in the list then
  364. you can select all recipes that do not contain this keyword by first selecting
  365. the keyword and exiting from that screen, and then pressing CTRL/R. This
  366. negates the keyword selection and achieves the desired result.
  367.  
  368.  
  369. Selecting Recipes by RECIPE CODES
  370. ─────────────────────────────────
  371.  
  372. After selecting this option a list of the recognised recipe codes will be
  373. displayed. The process for selecting RECIPE CODES is exactly the same as for
  374. KEYWORDS, use the mouse or arrow keys to position the cursor and then select
  375. using the mouse buttons or ENTER key. Following is a full list of available
  376. commands.
  377.  
  378. On RECIPE CODE line
  379.     Mouse left button:   Select/deselect recipe      (ENTER)
  380.     Mouse right button:  Select/deselect ALL recipes (CTRL/ENTER)
  381.  
  382. ■ - Exit from menu
  383.     Mouse left or right button, or (F8 or CTRL/X).
  384.  
  385. Apart from these commands there are three others that can only be entered from
  386. the keyboard:
  387.  
  388. Home      - Go to top of screen.
  389.  
  390. End       - Go to bottom of screen.
  391.  
  392. F7        - Display help screen
  393.  
  394.  
  395. Selecting Recipes by TEXT SEARCH
  396. ────────────────────────────────
  397.  
  398. After selecting this option a small submenu will be displayed:
  399.  
  400.     Search method__________HEADER
  401.     Start search
  402.     Exit from menu
  403.  
  404. The 'search method' is the way in which each recipe is searched. By
  405. positioning the cursor at this option and selecting the displayed method will
  406. change. The possible values are:
  407.  
  408.     HEADER -------- Only search recipe headers (i.e. lines that start with
  409.                         .RH or .RZ - see section 'Recipe Files - The
  410.                         Commands').
  411.     INGREDIENTS --- Only search the ingredient lines (i.e. lines that
  412.             start with .IG - see section 'Recipe Files - The
  413.                         Commands').
  414.     FULL ---------- As the name implies, this searches all recipe lines
  415.             for a text match. (This can take sometime depending on
  416.                         how large the recipe file is).
  417.  
  418. After the search method has been set select 'start search'. You are then asked
  419. to input a text string of upto 32 characters. This string will automatically
  420. be converted to uppercase while being input. Don't worry about this because
  421. the search is not case dependant. After entering the string press ENTER to
  422. start the search.
  423.  
  424. Any recipes found to contain the search string will be marked as selected when
  425. returning to the 'Select Recipe Screen'. You can see the number of successes
  426. by looking at the value of the 'recipes selected' indicator on the status
  427. line.
  428.  
  429.  
  430. Options Menu
  431. ▀▀▀▀▀▀▀▀▀▀▀▀
  432.  
  433. This menu is entered from the 'recipe viewing screen' (using F6, CTRL/O or by
  434. positioning the mouse on the 'v' symbol in the status line and pressing either
  435. button). The following menu is then displayed:
  436.  
  437.     Imperial/metric
  438.     ANSI/text
  439.     Load recipe file
  440.     Output recipe
  441.     Exit from menu
  442.  
  443. Here you can set display parameters, load a new recipe file or output recipes
  444. to the printer or to a file. To select one of the items position the cursor
  445. next to the option and press either of the mouse buttons or the ENTER key.
  446.  
  447.  
  448. Display Parameter - Imperial/Metric
  449. ═══════════════════════════════════
  450.  
  451. Each time this item is selected it causes this parameter to toggle between 
  452. 'IMPERIAL' and 'METRIC'. The current value is displayed to the right of this
  453. item. The value selected governs which measuring system to use when displaying
  454. a recipe (if a choice of measurements is available).
  455.  
  456.  
  457. Display Parameter - ANSI/Text
  458. ═════════════════════════════
  459.  
  460. Each time this item is selected it causes this parameter to toggle between 
  461. 'ANSI' and 'TEXT'. The current value is displayed to the right of this item.
  462. The value selected governs the use of ANSI escape sequences for displaying
  463. recipes (i.e. if coloured/underlined/bold/reverse text attributes are used).
  464. The option 'TEXT' means that only text is output to the screen, no escape
  465. sequences are used.
  466.  
  467.  
  468. Load Recipe File
  469. ════════════════
  470.  
  471. After selecting this you will be asked to enter the file name (including path)
  472. of a new recipe file. The recipes displayed on the 'recipe viewing screen'
  473. will be the contents of this file. This option can be aborted by pressing the
  474. ESC key.
  475.  
  476.  
  477. Output Recipe
  478. ═════════════
  479.  
  480. Selecting this item will cause the following sub-menu to be displayed:
  481.  
  482.     Function
  483.     Destination
  484.     Index options
  485.     Start output
  486.     Exit from menu
  487.  
  488. The menu items displayed here can be selected in the usual way by positioning
  489. the cursor and pressing a mouse key or ENTER.
  490.  
  491.  
  492. Function
  493. ────────
  494.  
  495. This controls the format of the output. By pressing the ENTER key or a mouse
  496. button you can select one of the following:
  497.  
  498.     PRINTER -- Output selected recipes with printer escape sequences.
  499.     INDEX ---- Output index of all recipes.
  500.     TROFF ---- Output selected recipes in troff format (i.e., the same 
  501.            format as in the input file.
  502.     TEXT ----- Output selected recipes as plain text (no escape
  503.                    sequences).
  504.  
  505.  
  506. Destination
  507. ───────────
  508.  
  509. This controls where the output goes to - direct to PRINTER or to a FILE. If 
  510. the output is to bo written to a file you will be later asked to enter the 
  511. name of this file.
  512.  
  513.  
  514. Index options
  515. ─────────────
  516.  
  517. Selecting this causes a sub-menu to be displayed:
  518.  
  519.     Group By
  520.     Order By
  521.     Exit from menu
  522.  
  523. These options only effect output in INDEX format (i.e. when FUNCTION = INDEX).
  524.  
  525. Group By ... this can be one of the following:
  526.  
  527.     NO GROUPING -- No grouping of the recipe titles will occur. The titles
  528.                        will simply be listed.
  529.     KEYWORD ------ Group recipes according to any KEYWORDS that they 
  530.                contain.
  531.     CODE --------- Group recipes according to the recipe code found in the
  532.                        recipe header.
  533.  
  534. Order By ... this can be one of the following:
  535.  
  536.     NO ORDERING -- The recipe titles will be listed in the same order that
  537.                they occur in the input file.
  538.     TITLE -------- Order recipes by their title.
  539.     UNIX NAME ---- Order recipes by their 14 character Unix file name.
  540.  
  541.  
  542. Start output
  543. ────────────
  544.  
  545. After setting the relevant options mentioned above, the output can be started
  546. by selecting this option. If the output is to go to a file then you will be 
  547. asked to input the name for the output file. As the recipes are output a count
  548. of the recipes output is displayed on the righthand side of the status line.
  549. The name of the recipe currently being output is displayed on the lefthand
  550. side of the top line of the screen. If an INDEX is being output the the
  551. current state of the program is also displayed next to the recipe count on the
  552. status line. When the output is complete the normal status line is
  553. redisplayed.
  554.  
  555.  
  556. Recipe Files
  557. ▀▀▀▀▀▀▀▀▀▀▀▀
  558.  
  559. The Commands
  560. ════════════
  561.  
  562. The format of the recipes files is similar to that used by the USENET Cookbook 
  563. (alt.gourmand newsgroup). This is basically a subset of the commands used by
  564. the text formating program ROFF and is known as TROFF. This format was chosen
  565. so that recipes obtained from this newsgroup can immediately be used with
  566. FoodView. The basic idea behind Troff is to format a file using as few
  567. commands as possible. The commands are embedding in the text as small strings
  568. that begin with either the symbol '.' or '\', most of which must occur at the
  569. start of a text line. Below is a list of the commands that FoodView 
  570. understands:
  571.  
  572. CMD - Description             Parameters
  573. ════  ═══════════════════════ ═══════════════════════════════════════════════
  574. .AB - Measurement conversions "Imperial value", "metric value", punctuation
  575. .B  - Bold text               "Text string"
  576. .I  - Italic text             "Text string"
  577. .IG - Ingredient line         "Imperial value", "description", "metric value"
  578. .IH - Ingredient header       "Imperial value", "metric value"
  579. .IP - Indented paragraph      "Text string"
  580. .KY - Keyword                 List of keywords separated by spaces
  581. .NX - Notes header
  582. .PD - Paragraph distance      Distance
  583. .PH - Procedure header
  584. .PP - Paragraph break
  585. .RE - Relative indent. end
  586. .RH - Recipe header           Source, Unix file, recipe code, "date", year
  587. .RS - Relative indent. start
  588. .RZ - Recipe title            "Title", "brief description"
  589. .SH - Sub-header              "Text string"
  590. .SK - Procedure step          Step number
  591. .SM - Small text              "Text string"
  592. .TE - Temperature             "Farenheit", "centigrade", punctuation
  593. .WR - Wrap up
  594. .br - Start new line
  595. .fi - Fill (text float) on
  596. .nf - Fill (text float) off
  597.  
  598. NOTE: The commands .if, .ds and .ta are supported by the USENET Cookbook but
  599. not by FoodView. (I havenot been able to find an exact description of these
  600. commands and would be grateful for any help, so that they can be included in
  601. future versions of FoodView).
  602.  
  603. The above commands must be at the start of a new line, which must contain any
  604. parameters required, and should not contain any recipe text other than this.
  605. Below is a list of the 'in-text' commands that may occur anywhere on a normal
  606. text line (or within a command parameter).
  607.  
  608. \fB     - Bold on
  609. \fI     - Italic on
  610. \fP     - Bold/italic reset
  611. \fR     - Bold/italic reset
  612. \z\(aae - 'e' acute accent (?)
  613. \z\(gaa - 'a' grav accent (?)
  614. \**:o   - 'o' umlaut (?)
  615. \-      - dash (-)
  616. \(12    - half (?)
  617. \(14    - quarter (?)
  618. \(34    - three quarters (?)
  619. \(em    - minus (-)
  620. \(mu    - multiplication (x)
  621. \(de    - degrees (?)
  622.  
  623. Try examining the included recipe DEMO.REC to see have these commands are
  624. used. The following is a 'skeleton' recipe:
  625.  
  626.     .RH RECIPE-SOURCE RECIPE-ID CODE "23 Sep 91" 1991
  627.     .RZ "RECIPE TITLE IN CAPITALS" "Recipe description"
  628.     .KY PARTY GREEK
  629.     Introductory text (use .PP between paragraphs).
  630.     .IH "Makes 4 cups" "Makes 900 ml"
  631.     .IG "2 oz" "butter" "50 g"
  632.     .IG "1" "onion,"
  633.     finely chopped
  634.     .PH                             <-- Procedure header
  635.     .SK 1                           <-- Procedure step
  636.     Prepare onion.                  <-- Text for step
  637.     .SK 2                           <-- and so forth
  638.     Fry onion slowly. \fBDO NOT BURN\fR.
  639.     .NX
  640.     Notes (commentary) goes here. (Use .PP to separate paragraphs).
  641.     .SH RATING                      <-- Sub-header
  642.     .I Difficulty:
  643.     easy.
  644.     .I Time:
  645.     10 mins.
  646.     .I Precision:
  647.     Approximate measurements.
  648.     .WR                             <-- Wrapup information, e.g:
  649.     Paul Hosken
  650.     RMCB@DLRVM
  651.  
  652.  
  653. Measurement System
  654. ══════════════════
  655.  
  656. Most countries in the world use metric measurements for their recipes. The 
  657. U.S. and England defiantly use an imperial system that uses teaspoons, cups, 
  658. pints, onces, etc. (Be careful, the U.S. and English systems are slightly 
  659. different). Attempts to convert U.S. cooks to the metric system have failed,
  660. and many American cooks have never seen a metric recipe. With this in mind the
  661. Troff format tries to cater for both systems of measurements by including both
  662. values in the body of the recipe. The format of commands that reference the
  663. measurement system is to first include the imperial value and then the metric
  664. one. (Note: by imperial I mean the American measuring system, and not the
  665. English one - the English are partly converted to the metric system and should
  666. have no problem with metric measurements). If a metric value has not been
  667. specified in a command that expects one then the imperial value is used.
  668.  
  669.  
  670. Printer Information File
  671. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  672.  
  673. When outputing a recipe to a printer the program uses a file called 
  674. FOODVIEW.PRN, which it assumes to contain the escape sequences needed to 
  675. control the printer. Two PRN files are included in the package, the first 
  676. (FOODVIEW.PRN) is a demonstration file and contains dummy escape sequences. 
  677. This file must be edited to contain the escape sequences that match your 
  678. printer before a recipe can be sensibly printed. The second PRN file 
  679. (HPLJ2P.PRN) is a completed printer file for a HP Laserjet IIP laser printer.
  680. To use this file rename it as FOODVIEW.PRN .
  681.  
  682. The format of a PRN file can be easily understood by studying the initial 
  683. FOODVIEW.PRN file. In general this file simply contains a list of escape 
  684. sequences in a specific order. Comments lines may be put anywhere in this
  685. file. A comment line must begin with the character ';' . The order of the 
  686. information in the printer file is as follows:
  687.  
  688.     1)  Page width (integer)
  689.     2)  Printer reset (escape sequence)
  690.     3)  Attributes off (esc. seq.)
  691.     4)  Bold on (esc. seq.)
  692.     5)  Italics on (esc. seq.)
  693.     6)  Attributes for headers, i.e. bold, underline, etc. (esc. seq.)
  694.     7)  Attributes for recipe title (esc. seq.)
  695.     8)  Attributes for notes title (esc. seq.)
  696.     9)  Attributes for procedure step numbers (esc. seq.)
  697.     10) Small printing on (esc. seq.)
  698.  
  699. (Note: The format used in this file has two drawbacks; (i) escape sequences 
  700. that start with the character ';' will be treated as comments, (ii) because 
  701. the program reads this file a string at a time the character zero cannot be 
  702. included in an escape sequence because it marks the end of a string. This is
  703. not so problematic as many printers offer alternavite ways on coding a zero.)
  704.  
  705. If the program is unable to find the printer file, or unable to assign any of
  706. the escape strings then no escape sequence will be output. This means that if
  707. you don't wish to bother with printer escape sequences then just delete the
  708. FOODVIEW.PRN file. (The default value for the page width is 80 characters.)
  709.  
  710.  
  711. Registration
  712. ▀▀▀▀▀▀▀▀▀▀▀▀
  713.  
  714. If you complete the registration form and send it to me along with the fee,
  715. you will receive a registration code. To enter this code start the program
  716. with the -R switch as follows:
  717.  
  718.     FOODVIEW -R
  719.  
  720. If the program has not already been registered you will be asked to enter this
  721. registration number and your name. Registering the program will suppress and
  722. registration messages and possibly allow the use of extra functions in future
  723. versions.
  724.  
  725. The registration code will be valid for ALL versions of FOODVIEW.
  726.  
  727. The version 2.33 of FOODVIEW is pre-registered. This is so that users can try
  728. out all aspects and functions of the program and, hopefully, send me any
  729. comments or ideas they have about improving the program.
  730.