home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d595 / p-writer.lha / P-Writer / P-Writer.doc < prev    next >
Text File  |  1992-02-01  |  14KB  |  318 lines

  1. PRE1
  2.                       P - W R I T E R V3.2 
  3.   Introduction
  4.  
  5.      P-Writer is designed for the production of illustrated texts for display
  6.   by P-Reader.  It does not compete with word-processors or with full-featured
  7.   editors like EMACS.  Its special features are:
  8.  
  9.      Inclusion of illustration "command-lines".
  10.      Loads and saves texts in compressed or uncompressed form.
  11.      Full screen available for text, no waste in overlaps.
  12.      Page and line sizes match P-Reader.
  13.      Escape codes for text colour and style tied to keys of the numeric pad.
  14.      Colour and style implemented immediately as well as being included in text
  15.      Control by function keys, numeric pad, and header strip gadgets.
  16.      Continuous display of cursor position.
  17.      No line scrolling. Page appears as it will be seen in P-Reader.
  18.  
  19.   Calling
  20.  
  21.       From CLI:   P-Writer <FILE>    File is optional.
  22.       From Workbench:  Click the icon. 
  23.  
  24.   Operation
  25.  
  26.      Two buffers are provided, each with its own window.  The full range of
  27.   commands is available in either window.  The programme is controlled mainly
  28.   by the ten function keys, as shown in the Help screen (press <Help>).   To 
  29.   produce an F-key strip index, switch on the printer and double-click the
  30.   picture below with the RIGHT mouse button.  Cut out, write "P-Writer" on
  31.   the back, and sandwich between two layers of clear Con-Tact film. 
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. #! 1 1 10 0 writer.key
  42.  
  43.  
  44.  
  45.   F1: Move to Page [x].  To move to any page press F1, enter the number of 
  46.   the required page, press RETURN.
  47.  
  48.   F2, F3: Press F2 or F3 to get the first or last pages respectively.
  49.  
  50.   F4: Search.  Requester will appear.  Enter the string to be found, set case
  51.   sensitivity, press RETURN, and click OK (or Cancel). The search always starts
  52.   at the beginning  of the file.   A cursor will appear immediately before the
  53.   found string.
  54.  
  55.   F5: Search again.  Search will continue from the last instance found.
  56.  
  57.        WARNING    Search window must remain active during the search 
  58.        process. If your pointer automatically activates the window   
  59.        on which it is placed, make sure that it is over the search   
  60.        window.                                                       
  61.         
  62.    F6: Search & Replace.  Enter the string to be replaced, set case sensitivity
  63.    and click OK.  When the requester re-appears enter the replacement and click
  64.    OK.  Cursor will show each instance of the string found.  Click Y to replace
  65.    N to pass over, R to replace all further instances, Q to quit.  
  66.   
  67.    F7: Deletes the line carrying the cursor.
  68.  
  69.    F8: Half-page down.  Text moves forward half a page.  The symbol % will
  70.    appear before the page UP gadget as a warning whenever the last line does 
  71.    not represent the end of a true page.
  72.  
  73.    F9: Load.  Brings up file requester.  New files can be selected at any time.
  74.  
  75.    F10: Save.  Raises the usual file-requester - enter the destination.  OK
  76.    then brings up a requester carrying four gadgets (plus OK and Cancel)
  77.    Click COMP to compress the text, or UNCOMP to leave it uncompressed.  Press
  78.    ILLUST if the text calls up pictures or animations, or NORMAL if it is a
  79.    plain text.  The last two gadgets set a header which tells P-Reader the 
  80.    mode and screen size to use when displaying the text.  
  81.  
  82.     If you do not have Arp Library installed, Load and Save requesters will
  83.    appear showing a simple string gadget.  Enter the file name required and
  84.    press OK or CANCEL.
  85.  
  86.    SHIFT-F1:  Set Mark.  To mark the start of a section to be cut out, press
  87.    <SHIFT><F1> together.  An asterisk will appear before the Page UP gadget.
  88.  
  89.    SHIFT-F2:  Cut.  The section of text between a mark and the current cursor
  90.    position is cut out and placed in the file ram:cut (opened if necessary). 
  91.    This file remains even after P-Writer has closed.
  92.  
  93.    Shift-F3:  Paste. The cut section is placed into the text starting at the 
  94.    current cursor position.  Calling "Paste" immediately after a "Cut" restores
  95.    the text to its original state.  The content of ram:cut is always used,
  96.    regardless of its origin,  whether a previous cut has been made or not, and
  97.    it can be inserted any number of times.   If a number of P-Writer texts are
  98.    running at the same time, text can be exchanged between them, giving the
  99.    equivalent of multiple buffers.
  100.  
  101.    SHIFT-F4.  Re-draw page.  Use when necessary to correct appearance after
  102.    inserting style or colour changes.
  103.  
  104.    SHIFT-F5.  Split window.  Either window (but not both) can be split.  Window
  105.    1 will appear in the top half, window2 in the lower half.  Click above or
  106.    below the dividing line to select the window required.
  107.  
  108.    SHIFT-F6.  Full window.  Cancels the Split Window command.
  109.  
  110.     After operations that change the window no header strip, or one that does
  111.     not extend to the full width, indicates that the window needs to be clicked
  112.     in to activate it.  Occasionally some of the header-strip gadgets may not
  113.     be visible - click their normal position and they will re-appear.
  114.  
  115.    SHIFT-F7.  Clear.  Clears the current active window.
  116.  
  117.    SHIFT-F8.  Half-page up.  Text moves back half a page.  The symbol % is
  118.    shown as in "half-page-down". 
  119.  
  120.    Additional functions are performed by page header gadgets. 
  121.  
  122.       Window close - Normal Intuition function. 
  123.       Page UP      - Just click on it (L mouse button).
  124.       Page DOWN    - Just click on it.
  125.       Depth       - Change to other window.
  126.  
  127.    The header strip shows: current file reference (shortened), total number of 
  128.    pages, current page, line, and column.   Note that if the mouse is clicked
  129.    with the cursor beyond a line's end the cursor will go the end of the line
  130.    but the actual position clicked on will be shown in the header. Current
  131.    buffer is shown in the space between the page Up and Down gadgets.
  132.  
  133.    Operation of other keys, such as backspace, delete etc, is where possible 
  134.    like Emacs.  Visible line length is limited to 79 characters, (cursor needs 
  135.    the 80th to park on),  actual line length, which will include escape
  136.    sequences, is limited to 160 characters.
  137.  
  138.    TABs can only be entered if there is room available for them on the line.
  139.  
  140.  Text colour and style - Numeric Pad Keys
  141.  
  142.    Pen colour is set by the numeric pad keys 1 2 3 to pen 1, pen 2, and pen 3 
  143.    respectively. 
  144.  
  145.    Background colour is set by the keys 4 5 6 to pen 1, pen 2, and pen 3.
  146.  
  147.    Style is set by keys 7 8 9 to Bold, Italic  and  Underlined.
  148.  
  149.    RESET to normal colour and style with numeric pad key 0.   
  150.  
  151.    A new pen setting cancels the previous one;  a new background setting
  152.   cancels a previous one.  Bold and Italic cancel each other.  Otherwise they
  153.   are cumulative. For example pressing 6 2 7 9
  154.  
  155.                               produces this
  156.  
  157.  Presence of invisible escape codes can affect backspace, delete, and return.
  158. TO CHANGE A LINE HAVING A COLOUR/STYLE CHANGE IT IS BEST TO DELETE (F7) AND
  159. RETYPE THE WHOLE LINE.
  160.  
  161.    Use of colour/style changes can produce unexpected results.  For example if 
  162.   a background colour is left open it can under some circumstances take over
  163.   the whole screen, (correct with a RESET at the end).  Where a colour or style
  164.   is applied to consecutive lines the settings should be repeated at the start
  165.   and cancelled at the end of each line.  Use SHIFT-F4, where necessary, to
  166.   correct the appearance of a line after completing a colour/style change.
  167.  
  168.   For reference, the escape sequences are:  (^[ represents the CSI)
  169.    key 0   ^[[0;40m         key 4   ^[[41m           key 7   ^[[1m
  170.    key 1   ^[[31m           key 5   ^[[42m           key 8   ^[[3m 
  171.    key 2   ^[[32m           key 6   ^[[43m           key 9   ^[[4m
  172.    key 3   ^[[33m
  173.  
  174.                             ILLUSTRATIONS 
  175.  
  176.    In this version four types of illustration can be called :
  177.  
  178.  ILBMs (IFF pictures)                      
  179.   
  180.    True ILBMs produced by DPaint or any of the standard drawing software can
  181.    be used, provided that:
  182.  
  183.      Size is no greater than 640 X 256 (PAL) or 640 X 200 (NTSC).
  184.      No HAM or HALFBRITE.
  185.      Depth is three planes (eight colours).
  186.  
  187.    The picture shares a screen with the text, so the palette used by the
  188.    picture will affect screen colours.  Wherever possible the first four 
  189.    colours of the picture should be close to 000, FFA, 3F3, F20.  The rest of
  190.    the default palette is 45F, FC8, A60, 0A0.  The small utility P-Check can
  191.    be used to check suitability and to get the width and height of a picture.
  192.  
  193.       Calling syntax:     <#><!> 1 [Left edge] [Top edge] [Cycling] File
  194.             
  195.    # followed immediately by ! is the Command Introducer or CI.   P-Reader
  196.    treats this as an escape sequence introducer and any characters following
  197.    it are not printed. (Never put a command sequence in the middle of a line!).
  198.    The numeric pad key <.> prints the CI.
  199.     #! 1 61 15 1 tree
  200.     1:          Enter 1 to indicate Type ILBM.
  201.   
  202.     Left edge:  Position of left edge of picture - column.
  203.   
  204.     Top Edge:   Position of top of picture - row.
  205.  
  206.     Cycling:    Enter 1 to enable cycling, 0 to inhibit        Click LMB to
  207.                                                               stop cycling.
  208.     File:       Full path and filename.              
  209.   
  210.    The sequence may be placed anywhere on the page, but is best put at the
  211.   bottom so that all text is displayed first.
  212.   #! 2 0 0 0 fight.anim
  213.  Animations                                     
  214.                                                     
  215.    This version supports straightforward ANIM5 animations as produced by
  216.  DPaint,Videoscape, The Projector, P_Animator and others.  Full information on
  217.  how to create animations for P-Reader is given in P_Animator.
  218.                                                           Click LMB to start
  219.    The command syntax is:                                 Click again to stop
  220.                                 
  221.              <#><!> 2 0 0 0 File  
  222.                
  223.    The sequence starts with the same CI as before.  
  224.  
  225.    2:     Type 2.  Animation.  
  226.    0 0 0  (For future expansion;  do not omit). 
  227.    File:  Full path and filename.  
  228.  
  229.    The sequence can go anywhere on the page.
  230.    There should be no text directly under the
  231.  anim.
  232.  
  233.     THREE ILBMS OR ONE ANIM MAY BE CALLED ON EACH PAGE
  234.  
  235.   Sounds
  236.  
  237.    Sound effects can be included if they are in the normal 8SVX format.
  238.  #! 4 yuppy
  239.    Command syntax:   <#><!> 4 File
  240.    
  241.    Sequence starts with the CI.
  242.       4:       Type 4 - Sound effect.
  243.       File:    Full path and filename.
  244.  
  245. Borders
  246.  
  247.    Provides a standard Intuition Border which may be used to enclose text or
  248.   pictures.
  249.   
  250.    Command syntax :  <#><!> 3 [Left edge] [Top line] [Width] [Height][Pen] 
  251.  
  252.    The sequence starts with the same CI as before.
  253.       3:           Type 3 - Border.
  254.       Left edge:    First column to be included in the box.  
  255.    Top line:     First line to be included.
  256.    Width:        Number of columns wide.                        This is
  257.    Height:       Number of lines high.                      CI 3 60 3 17 3 6
  258.    Pen:          Pens 0 to 7 may be used.
  259.        #! 3 60 2 17 3 6  
  260.    The command sequence may be placed anywhere on the page, however to prevent 
  261.    the border from being over-written by text it is best put on a line below 
  262.    where the border will appear. 
  263.  
  264.     WARNING  Never put any command sequence on the bottom line of a page.
  265.  
  266.  Identification
  267.  
  268.   Illustrated files can be identified by the initial word PRE. (Not re-produced
  269.   by P-Reader).  This is followed by a number to indicate page height (0 = 256 
  270.   lines, 1 = 200 lines).  LH indicates that the file is compressed.
  271.  
  272.                            P-CHECK UTILITY    
  273.  
  274.    P-Check is used to check whether a supposed IFF pic or anim is suitable for
  275.    use as an in-text illustration, and to get information on width, height,
  276.    and whether cycling is active.  Files must not be compressed. 
  277.  
  278.    Syntax:   P-Check [file].
  279.  
  280.    Any warning it gives on suitability ONLY applies to in-text use. The 
  281.    criteria used do not apply when P-Reader is used as a stand-alone reader
  282.    for the display of pictures or animations.
  283.  
  284.                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  285.  
  286.    Credit:  YUPPEE sound stolen from Nic Wilson's Sam programme.
  287.  
  288.    To Do:
  289.  
  290.        P-Writer does not always handle tabs properly - low priority since I
  291.      hate tabs and never use them - if files are going to be compressed tabs
  292.      save little or nothing anyway.
  293.  
  294.        Many of the functions are slow and generally operations are not as
  295.      smooth as they should be.  Should improve steadily.
  296.  
  297.        An infuriating bug somewhere occasionally causes the visual screen
  298.      to get out of sync with its buffer. Use of SHIFT-F4 usually corrects
  299.      things. The bloodhounds are out.
  300.  
  301.     P-Writer and P-Check are Freeware.  They may be copied and distributed
  302.   freely and used without charge for non_profit-making purposes.  Authority
  303.   for profit-making use should be obtained from the author below.
  304.  
  305.     No responsibility can be accepted for any loss occasioned by use of these
  306.   programmes.
  307.  
  308.     Comments, suggestions, bug-reports all welcome.
  309.  
  310.    Chas A. Wyndham,
  311.    1265 Canning Mills Road,
  312.    Roleystone,
  313.    WA 6111.
  314.    Australia 
  315.  
  316.  
  317.  
  318.