home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / bbs / ff767.lha / FF767 / TextRead / TextRead.doc < prev    next >
Text File  |  1992-11-21  |  22KB  |  420 lines

  1.  
  2.                              TextRead release 1.03
  3.  
  4.                                  User's guide
  5.  
  6.                          Copyright © 1992 Martin Blom
  7.  
  8.                            Released 7 November 1992
  9.  
  10.  
  11.                                     Preface
  12.                                     ~~~~~~~
  13.  The programs and files in this distribution are freely distributable, but
  14. copyrighted. They may be freely distributed as long as no more than a nominal
  15. fee is charged to cover time and copying costs. No commercial usage is permitted
  16. without written permission from the author. Everything in this distribution must
  17. be kept together, in original unmodified form.
  18. The above is generally known as freeware (and also 99% quoted from the doc to
  19. PPMore by Nico François).
  20.  I take no resposibility for any trouble TextRead may cause. Use at own risk.
  21.  
  22.  If you want to use TextRead in you software packages you need to ask for
  23. written permission. Write to this address:
  24.  
  25.     Martin Blom
  26.     Solängsvägen 19
  27.   S-556 26 Jönköping
  28.     SWEDEN
  29.  
  30.                                  Introduction
  31.                                  ~~~~~~~~~~~~
  32.  TextRead is (surprise!) a textreader for the Amiga computer, used to read
  33. ascii files. It can of course handle PowerPacked textfiles, encrypted too.
  34. It can also show all ascii and nonascii charters (except TAB and LF, they're
  35. not shown). TextRead was written for two reasons 1) I wanted to learn how
  36. to code system friendly programs under Release 2 and 2) I didn't think
  37. PPMore's textroutines were fast enough... :-) Note that the screen is not
  38. double buffered, I think this is waste of chip memory.
  39.  This is of course only yet another textreader, but I wanted one that I
  40. liked, so I wrote it. Since TextRead is a kind of clone of PPMore and More,
  41. most keys means the same thing in all three programs. TextRead was designed
  42. with "Amiga User Interface Style Guide" beside the keyboard, so I think you
  43. will feel comfortable with the layout.
  44.  
  45.  TextRead *requires* V37 of the system libraries (Release 2.04), V37 of
  46. ReqTools.library and V35 of Powerpacker.library.
  47.  
  48.  TextRead is copyright © Martin Blom.
  49.  PowerPacker.library and Reqtools.library are copyright © Nico François.
  50.  
  51.                                      Usage
  52.                                      ~~~~~
  53.  The following files should be included in this package:
  54.  
  55.      libs (dir)
  56.   Drawer.NoInfo                    Install
  57.   Install.info                     TextRead
  58.   TextRead.doc                     TextRead.doc.info
  59.   TextRead.info                    TextRead.prefs
  60.   TextRead.prefs.info              
  61.  
  62.  To install TextRead and the libraries, execute Install from Workbench. This
  63. will install Reqtools och Powerpacker libraries in LIBS: and TextRead in
  64. sys:Utilities or an user specified drawer (will be created if it doesn't
  65. exists).
  66.  
  67.  Once installed, TextRead can be started either from the Shell or from the
  68. Workbench.
  69.  
  70. Starting TextRead from the Shell
  71. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  72.  Type TextRead ? to get the standard AmigaDOS template:
  73.  
  74. FILE,TABS/K/N,UNIT/K/N,SETTINGS/K:
  75.  
  76.  Type TextRead ?? to get this text:
  77.  
  78. TextRead 1.03 ©1992 Martin Blom.
  79. Usage: TextRead [[FILE] <file>] [TABS <n>] [UNIT <n>] [SETTINGS <name>]
  80.  
  81.  If you supply a filename, that file will be loaded, decrunched (if
  82. necessary), and show on TextRead's custom screen. If you don't, the screen
  83. will open, some info will be displayed and then you will be asked for a
  84. filename.
  85.  If the file was encrypted, you will be asked for a password.
  86.  The other arguments are options;
  87.  
  88.         TABS <n>        Selects the tabsize (on screen, not printer).
  89.         UNIT <n>        Selects the unit of printer.device to use when
  90.                         printing. Useful if you've got more than one
  91.                         parallel or serial port.
  92.         SETTINGS <name> Selects a settings file to use instead of the
  93.                         default settings file or the build-in settings.
  94.  
  95.  Here are some examples:
  96.  
  97. 1> TextRead TextRead.doc TABS 3
  98. 1> TextRead TABS 3 FILE TextRead.doc
  99.  
  100.  These two command do the same thing, they load TextRead.doc and show it
  101. with tabsize set to 3.
  102.  
  103. 1> TextRead TABS 8 UNIT 1 SETTINGS ENV:TextRead.prefs
  104.  
  105.  This command sets the tabsize to 8, selects the second parallel or serial
  106. port for printing and uses the settings file found i ENV:. You will be
  107. prompted for a file to view.
  108.  
  109. 1> TextRead dh1:Docs TABS 4 SETTINGS sys:Utilities/TextRead.interlace.prefs
  110.  
  111.  Sets tabsize to 4 and since dh1:Docs isn't a file but a directory, a
  112. requester will pop up, listing the files in dh1:Docs/. Very useful!
  113. A settings file in sys:utilities will be used.
  114.  
  115. Starting TextRead from the Workbench
  116. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  117.  This is really simple. Just doubleclick on it icon, and you will be
  118. prompted for a filename. You can also select TextRead's icon and then
  119. doubleclick on another icon to view  that file (or, if it was a settings
  120. file, to use that settings). If you doubleclicked on a drawer or disk, the
  121. filerequester will appear and list the files in thar directory.
  122.  Another way to start TextRead is to set the icon's default tool to TextRead.
  123. Just select an icon and chose Information from the Workbench Icons menu.
  124.  
  125.  Here are the tooltypes supported:
  126.  
  127.         FILETYPE=PREFS  Tells TextRead that this is a settings file.
  128.         TABS=<n>        Selects the tabsize (on screen, not printer).
  129.         UNIT=<n>        Selects the unit of printer.device to use when
  130.                         printing. Useful if you've got more than one
  131.                         parallel or serial port.
  132.         SETTINGS=<name> Selects a settings file to use rather than the
  133.                         default settings file or the build-in settings.
  134.  
  135. NOTE: - Powerpacker.library will add '.pp' to the filename when the file
  136.         wasn't found. This is very useful in the WorkBench enviroment: you
  137.         can make an icon for 'text.doc' but name the file 'text.doc.pp'.
  138.         Now the WorkBench will show an icon with 'text.doc' as name, but if
  139.         you doubleclick it 'text.doc.pp' will be displayed (As long as there
  140.         is no 'text.doc' file in the directory!).
  141.       - TextRead CANNOT, like PPMore, be made resident. BEWARE!
  142.       - TextRead does not support multiple files (yet!).
  143.       - TextRead doesn't detach itself from the Shell.
  144.  
  145.                                     Control
  146.                                     ~~~~~~~
  147.  Once you have started TextRead, you have several options via the menus.
  148. Below is a full description of each menu. To get brief information from
  149. within the program, hilite a menu and press »HELP«. A requester will pop
  150. up. If you press »HELP« alone, you'll get a summary of all the keyboard
  151. commands. Press a key to view the textfile again.
  152.  At the bottom of the screen you will notice a info box and a scroll bar.
  153. The info box shows current linenumber and percentage. The scroll bar is
  154. used to scroll the screen. And the arrows... guess!
  155.  When you have loaded a text, you can edit it with your favorite text editor
  156. by pressing <Shift-E>. The editor specified in ENV:Editor will be run and
  157. the text will be loaded. However, only the filename is passed to the editor,
  158. so if the text was powerpacked, you editor must be PowerPacker compatible
  159. (or you can use PP Patch by Michael Berg). One way to solve this (by me) is
  160. the send the decrunched file via PIPE: to the editor, but then you must
  161. specify a name when you want to save it, and I don't like this. Take a look
  162. at PP Patch, maybe that's what you're looking for...
  163.  You can also set and jump to up to ten bookmarks. Set them with <Shift>
  164. and a funktion key, and jump with a funktion key. The bookmarks will be
  165. cleared when a new file is loaded.
  166.  
  167.  Here are the menus:
  168.  
  169. Project menu
  170. ¯¯¯¯¯¯¯¯¯¯¯¯
  171. Open...                 Will bring up the ReqTools' filerequester and ask
  172.                         for a filename. You can select the pattern and if
  173.                         icons shall be showed. If you cancel the requester,
  174.                         your old textfile will be intact. If you chose
  175.                         'Open', the file will be loaded, decrunched (if it
  176.                         was powerpacked) and printed on the screen. If the
  177.                         file was encrypted, you will be asked for a
  178.                         password. Then the memory the previous file was
  179.                         occupying will be freed.
  180. Print                   Will send your text to the printer using your
  181.                         settings (see below). Unfortunately, this will lock up
  182.                         TextRead until the printing is finished. This is
  183.                         unacceptable and I will fix this in a later version.
  184.                  NOTE - Make sure that 'printer.device' and either
  185.                         'serial.device' or 'parallel.device' is in DEVS:
  186.                         and you Printer preferences are correct (especially
  187.                         the number of lines).
  188.                         If your (parallel) printer isn't on-line, this command
  189.                         will return immediately.
  190. Print as...             Will open a window with several gadgets. See
  191.                         separate section below (Print options).
  192. Iconify                 Will close the screen,open an icon in the Workbench
  193.                         window and put TextRead to sleep. When you
  194.                         doubleclick on the icon, the screen will reopen and
  195.                         the text you were viewing will be redisplayed.
  196. About...                Will open a requester showing the current version, a
  197.                         copyright message and the current textfile's name
  198.                         and length in bytes/charters.
  199. Quit... or
  200. Quit                    Will either quit immediately och ask if you are
  201.                         sure, depending on the 'Verify Quit' flag (see
  202.                         below). When confirmed, the screen will be closed,
  203.                         and all memory that were used by TextRead will be
  204.                         returned to the system memory pool (of course).
  205.  
  206. Setting menu
  207. ¯¯¯¯¯¯¯¯¯¯¯¯
  208. Create icons?           Selects if icons will be saved together with your
  209.                         settings files. The icons is useful if you have
  210.                         different settings. To use a setting, just
  211.                         doubleclick on that settings file and TextRead will
  212.                         be run using the wanted settings. However, if you
  213.                         only runs TextRead from the Shell, the icons could
  214.                         be waste of diskspace. If so, simply turn this
  215.                         option off.
  216. Wrap words?             Turns wordwrap on or off. If on, no words will be
  217.                         cut at the end of each line. This should usually
  218.                         be on, I think...
  219. Verify Quit?            Selects if a 'Are you sure'-requester should pop up
  220.                         each time you quit TextRead. These kinds of
  221.                         requesters can be quite annoying, but also quite
  222.                         useful. You may chose what you want. Note that you
  223.                         can bypass the requester by pressing Shift-Escape
  224.                         to quit, even if 'Verify Quit' is on.
  225. Select tab size...      Lets you select a new tabsize for the screen (not
  226.                         the printer). The maximum value is 16, but this is
  227.                         far to high. 8 is default and looks often good,
  228.                         especially when you're viewing assembler sources,
  229.                         but a lower tabsize is better when looking at
  230.                         C-sources (3 is a good choice!).
  231. Text font »
  232.  Select text font...    Lets you select a new font to be used. However,
  233.                         only a 8*8 pixel font will be accepted. This is
  234.                         because I prefer speed in front of cool fonts. I
  235.                         don't anybody else has another opinion. I you have,
  236.                         get another textreader! ;-)
  237.  Default font           Selects the System default font, specified in Font
  238.                         preferences.
  239.                  NOTE - If no font is suitable, the ROM Topaz font will be
  240.                         used. This is also often the System default font.
  241. Colours »
  242.  Select screen colours  Lets you select new colours to be used. Just make
  243.                         sure that the colors don't mess up the 3D-look!
  244.  Default colours        Selects the default colours. That is, the colours
  245.                         used when TextRead was started will be used.
  246. Screen  »
  247.  PAL: Hires             Selects a PAL screen (at least 640*256).
  248.  PAL: Hires-Interlace   Selects a interlaced PAL screen (at least 640*512).
  249.  NTSC: Hires            Selects a NTSC screen (at least 640*200).
  250.  NTSC: Hires-Interlace  Selects a interlaced NTSC screen (at least 640*400).
  251.  Productivity           Selects a Productivity screen (at least 640*480).
  252.  Use Prefs Screen font? Turns the use of Screen font on and of. If on, the
  253.                         font used in menus are rendered with the Screen
  254.                         font, which may be proportional.
  255.                  NOTE - The screen is opened as a Text Overscan screen, so
  256.                         the display area may be bigger than the dimensions
  257.                         stated above. This actually means that the screen
  258.                         will be as big as the Workbench screen.
  259.                         If you're using a PAL Amiga, you'll need the ECS Agnus
  260.                         to be able to use the NTSC screenmodes, and if you
  261.                         have a NTSC Amiga, you need the chip to use the PAL
  262.                         modes.
  263.                         Productivity requires both ECS Agnus and ECS Denise.
  264. Load settings...        Lets you chose a settings file to use. This means
  265.                         that you can save the preferred tabsize, colours,
  266.                         screenmode and so on to disk, and then chose
  267.                         between different configurations.
  268.                         When TextRead is started, it first looks in the
  269.                         icon's tool type array for a name of an settings
  270.                         file or, if started from the Shell, it searches the
  271.                         arguments for the file. If not found, it tries to
  272.                         load the file 'TextRead.prefs' from the same
  273.                         directory as TextRead is in. If this file isn't
  274.                         present the build-in settings will be used.
  275.                  NOTE - When doubleclicking a settings file TextRead
  276.                         will only believe it is a settings file if the icon
  277.                         has a 'FILETYPE=PREFS' tool type.
  278. Save settings           Saves your current setting using the same name the
  279.                         setting file was loaded as. If no setting file was
  280.                         previously loaded, you settings will be saved as
  281.                         'TextRead.prefs' in the TextRead directory.
  282. Save settings as...     Saves your current settings using the name you type
  283.                         or select.
  284. Search »
  285.  Search for             Asks for a string to be searched for, and then
  286.                         searches forward in text. If found, the screen will
  287.                         be positioned so the top line contains the string
  288.                         (if it not was too close to the end of the file).
  289.  Search next            Searches forwards in text for the string.
  290.  Search previous        Searches backwards for the string.
  291.                  NOTE - If nothing was found, the screen will flash (If you
  292.                         have WB 2.1, you may hear a sound too).
  293.  Case sensitive?        This selects how the string entered will be
  294.                         treated. If on, the search routines will look for
  295.                         an exact match of the entered string. But if it's
  296.                         off it doesn't matter what case the string was
  297.                         entered in. That means that if you want to find
  298.                         the word 'assembler', TextRead will find
  299.                         'assembler', 'ASSEMBLER', 'Assembler'...
  300.                         TextRead's search routine can handle all national
  301.                         charters if you have 'local.library' loaded (WB 2.1).
  302.                         First it makes a convert table and then uses its
  303.                         own (fast) routines.
  304.  
  305.                                  Print options
  306.                                  ~~~~~~~~~~~~~
  307.  When you select 'Print as...' from the project menu, a window with some
  308. gadgets will open. No online help is available from here so read this!
  309.  
  310. The field buttons       Used to control the header of each page.
  311.                         The left filed may contain the name of the file or
  312.                         a title, max 30 charters long.
  313.                         The middle ane right filed may contain todays date
  314.                         or page number.
  315.                         If you don't want any header, simply set all fields
  316.                         to 'Nothing'. If the header is on, you loose 2
  317.                         lines on each page.
  318. Header style            Selects how the header will be printed. Bold,
  319.                         underlined, or italic.
  320. Title                   Max 30 charters of text. See above.
  321. Tab size                Selects the tabsize for the printer. Note that all
  322.                         tabs are converted to spaces before printed, so you
  323.                         printer doesn't need to support different tab sizes.
  324. Wrap words              Selects wordwrap on or off. See Settings menu,
  325.                         'Wrap words?' above.
  326. Print                   Starts the printing. See Project menu, 'Print'.
  327. Use                     Closes the window.
  328. Cancel                  Restores the options and closes the window.
  329.  
  330.  
  331.                            Improvements to come (!?)
  332.                            ~~~~~~~~~~~~~~~~~~~~~~~~~
  333. I know a lot of things that could be included in a text viewer:
  334.  
  335. A better name! Send suggestions, please... ;^)
  336. Multiple texts
  337. ARexx interface
  338. Local versions
  339. Use AmigaGuide.library
  340. Memory display
  341. Range mode for printing
  342. Scrolling with the mouse
  343. Faster scrollingspeed
  344. Finescroll (one pixel)
  345. Ansi control codes
  346. Extraction of IFF chunks
  347. 'Light' version (smaller (5-8 kB), KS 1.3 comp)
  348. and much more...
  349.  
  350. But who cares? I don't, if you don't. So send me suggestions, bug reports
  351. or anything but Jazz music, please!
  352.  
  353.  
  354.                           Credits and Acknowledgments
  355.                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  356.         TextRead was coded in pure assembler by Martin Blom.
  357.         TextRead was coded on a slow Amiga 500 with 1 MB of Chip memory
  358.         and 2 MB of true fast memory, a 52 MB Supra Harddrive, a Philips
  359.         8CM852 Monitor, Citizen external diskdrive, a Golden Image
  360.         GI-6000 optical mouse and AmigaOS 2.1.
  361.         TextRead has only been tested on a few other computers, sorry for
  362.         that... Please send bug reports.
  363.         The ROM Kernel Reference Manuals were often needed.
  364.         Sourcecode Rescuer II v1.3f (also by me) was often needed.
  365.         Length of code: 28572 bytes.
  366.         Assembling time: 18 seconds.
  367.         I want a A4000/8/425! Please send.
  368.  
  369. One big thank must go to Nico François for his Reqtools and Powerpacker
  370. libraries... »»» THANKS!
  371.                                                 / Martin Blom
  372.  
  373. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  374.                                 Program History
  375.                                 ~~~~~~~~~~~~~~~
  376. Release 1.00
  377. ¯¯¯¯¯¯¯¯¯¯¯¯
  378.         V37.0           First release. (12.9.92)
  379.         V37.01          Minor bugfix. (12.9.92)
  380.         V37.10          Finally got the docs to Powerpacker.library!
  381.                         Thanks, David of Iceland! (12.9.92)
  382.         V37.11          Now accepts a directory instead of a file from
  383.                         the Shell too.
  384.                         When you load a new file, the textposition will be
  385.                         reset the top of file.
  386.                         Screen will now flash if nothing was found when
  387.                         searching.
  388.                         Fixed a bug in the screen print routine.
  389.                         This ^ led to another bug. Fixed! (13.9.92)
  390. Release 1.01
  391. ¯¯¯¯¯¯¯¯¯¯¯¯
  392.         V37.13          Silly bug removed (division by zero).
  393.                         Another silly bug removed in print options window.
  394.                         Thanks, Mungwall... (18.9.92)
  395.         V37.14          Decreased the size of settings file.
  396.                         Added arrowgadgets to the scrollbar.
  397.                         Fixed the last (!?) bug... (20.9.92)
  398. Release 1.02
  399. ¯¯¯¯¯¯¯¯¯¯¯¯
  400.         V37.15          LAME bug removed: IntuiTicks forced the Helppage to
  401.                         disappear!
  402.                         TextRead now checks if your (parallel) printer is
  403.                         online before it tries to print.
  404.                         The number of lines won't be recalculeated if
  405.                         the user cancels the Tabsize-requester.
  406.                         Added bookmarks on F1-F10. (24.10.92)
  407. Release 1.03
  408. ¯¯¯¯¯¯¯¯¯¯¯¯
  409.         V37.16          TextRead was kind of slow when you looked at the end of
  410.                         a 600 kB text. Fixed...
  411.                         The number of lines won't be recalculeated if
  412.                         the user doesn't change the tabsize in the Tabsize-
  413.                         requester.
  414.                         <Alt> and cursor up/down moves 100 lines.
  415.                         Fixed bug: Strange textoutput if big overscan was used.
  416.                         Removed the annoying 'copyright' requester. (7.11.92)
  417.  
  418. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  419. $VER: TextRead doc 37.16 (7.11.92)
  420.