home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / vrac / cread213.zip / READ.ENG < prev    next >
Text File  |  1994-10-17  |  21KB  |  473 lines

  1.                              READ - A Text Browser
  2.                              =====================
  3.  
  4.                 (Siehe READ.DEU für deutsche Dokumentation)
  5.  
  6.  
  7. 0. Why READ?
  8. ------------
  9.  
  10. Archives, Public Domain disks and other software is often shipped with
  11. ready-to-print documentation (like this file); you just have to send it
  12. to your printer... and then you've got 100 sheets of paper less, and
  13. ribbons or toner cartridges cost money, too. So it's advisable to have
  14. a look at the documentation file first, maybe you don't need it printed.
  15. Just type TYPE PROGRAM.DOC | more <┘. But what was that just one screen
  16. ago? ****, same procedure again. Well, that's really not comfortable.
  17. You might say: 'Well, I've got a README.EXE or LIST.EXE (or something)
  18. to read texts.' Fine. Ever tried to read texts that are formatted with
  19. more than 80 columns? Sure, you can scroll horizontally, but maybe your
  20. video adapter is capable of some extended text modes... even if the
  21. manual doesn't specify them... READ uses them!
  22.  
  23. Text files often contain formfeed characters. Does your lister show them
  24. as a female sign, or does it show clear page separation? Can you leap
  25. page-wise through your text? Does your browser recognize the longest line
  26. on screen and scrolls horizontally as far as necessary to display the right-
  27. most character?
  28.  
  29. Does your lister recognize typical text files if you don't specify
  30. them?
  31.  
  32. Can your lister be used as a replacement for MORE? Can it accept data
  33. piped in from another program?
  34.  
  35. Does your lister understand UNIX files (without CR in front of LF)?
  36.  
  37. Is your browser able to show text files with different charsets? Like
  38. ISO-8859-1?
  39.  
  40. Can your lister be mostly operated with a mouse?
  41.  
  42. Is your lister capable of maintaining bookmarks, even with several
  43. files and even over several sessions?
  44.  
  45. Ever tried to list files with 1000 characters each line with other
  46. browsers? Or very large files of up to 4Gb? READ won't barf on them...
  47.  
  48.  
  49. Well, I hope you're convinced that READ is just what you've always wanted.
  50.  
  51.  
  52.  
  53. 1. Requirements
  54. ---------------
  55.  
  56. READ is fairly modest. It gets along with about 122k of memory (58k if
  57. you have enough EMS, and just 95k/31k if you use a small filetable), and
  58. it's already fast enough on an XT. Nearly every graphics card is supported,
  59. even in its special modes. DOS 3.xx is required, DOS 5.xx or 6.xx advisable.
  60. A hard disk is not needed. In DesqView(tm), READ runs in an 128k window if
  61. you zoom it; when idle, READ does not consume any considerable amount of
  62. CPU time in multitasking environments like DesqView and Windows.
  63.  
  64. [DesqView is a registered trademark of Quarterdeck Office Systems.
  65. Windows is a registered trademark of Microsoft Corp.]
  66.  
  67.  
  68.  
  69. 2. How to start READ
  70. --------------------
  71.  
  72. Simply specify one or more filenames on the command line, eg.
  73.  
  74.      READ *.TXT *.DOC 
  75.  
  76. One availabe switch is /S; if specified, READ takes its input from
  77. STDIN rather than files. This allows you to 'pipe in' text:
  78.  
  79.      DIR | READ /S
  80.      READ /S <text
  81.  
  82. If you didn't specify a unique file name (maybe you used wildcards), READ
  83. offers you a list of possible files (max. 128, configurable), from which
  84. you choose one with the cursor keys, PgUp, PgDn, Home, End, and Enter. Use
  85. Del to remove files from the list, or add others with Ins (of course you
  86. can give one or more templates at a time!). Abort READ with Q or Esc.
  87.  
  88. If you like to, you can sort the file list alphabetically or according to
  89. file size. Just press A, Shift-A, S or Shift-S.
  90.  
  91. You can also select a file with your mouse. Hold down the left button, then
  92. move mouse until the wished file is highlighted, then release the left button
  93. (to lock the mouse) and press the right button. If you press both buttons,
  94. READ quits.
  95.  
  96. Save the file data with W if you want to quit READ and continue reading later
  97. on. READ notes down all chosen files, all your bookmarks and other info
  98. (the charset you used, where you were reading, etc.) and allows you to read
  99. back this info by pressing R.
  100.  
  101. If you call READ next time with /R on the command line, READ will
  102. reload the previously saved file info.
  103.  
  104. There is another command line switch: '/M'. This switch makes READ
  105. minimize its memory usage (well, READ does that anyway, but with this
  106. switch the file table is never larger than 16 entries, no matter what
  107. you specified in the config file). This is useful if you call READ from
  108. another program.
  109.  
  110.  
  111.  
  112. 3. How to move round in your text
  113. ---------------------------------
  114.  
  115. Use the cursor keys to scroll one line up/down or some characters left/right.
  116. Ctrl & cursor left/right uses an alternate stepsize (see configuration).
  117. PgUp/PgDn jumps one screen page up or down, Ctrl-PgUp/PgDn jumps to the
  118. nearest formfeed character in the text or to the text start/end if there are
  119. none. If you wish to jump directly to the text start/end, press Ctrl-Home/End.
  120. Home/End does the same as with your full-screen editor: it aligns the screen
  121. in a way that allows you to see the leftmost/rightmost character of the
  122. longest line on screen. Q quits immediately, Esc takes you back to the file
  123. selection.
  124.  
  125. A special feature is the space bar: it moves to the next formfeed character
  126. if there's not more than one screen page to go; Otherwise, it acts like the
  127. PgDn key.
  128.  
  129. You can also move round with your mouse. See the chapter on mouse
  130. configuration.
  131.  
  132. Of course you can call DOS at any time: just press Alt-Z. Make sure you don't
  133. install any memory-resident programs. EXIT takes you back to READ; READ
  134. normally occupies 58k of memory when swapping to DOS (31k with a small
  135. file table, but just 29k if you have XMS or EMS memory (eg. if you installed
  136. HIMEM.SYS, EMM386.SYS or QEMM386.SYS).
  137.  
  138. Searching for a key-word? Press F to specify one; press N to search again. The
  139. search is case-insensitive as long as you don't press Shift-F instead of F.
  140.  
  141. Do you wish to drop bookmarks? Of course you can! Use Alt-1 to Alt-0 to mark
  142. positions within the text, then jump to those positions with 1 to 0.
  143.  
  144. READ remembers the current location and the bookmarks if you choose to read
  145. another text in the meantime. Bookmarks are text-specific!
  146.  
  147. You want to jump to a specific line? Type G, then enter the line number. This
  148. may take a while since READ must count the lines from the beginning of the
  149. text.
  150.  
  151. If you type Shift-G, READ calculates the line number of the upmost line on the
  152. screen and the total number of lines. With long files, this may take some
  153. seconds.
  154.  
  155. Of course you can abandon functions that take a while by pressing Esc. If you
  156. hit Q instead, READ quits immediately.
  157.  
  158.  
  159.  
  160. 4. How to influence the text display
  161. ------------------------------------
  162.  
  163. Well, READ makes use of up to 48 screen modes that can be selected with
  164. F1 to F12, combined with Shift, Ctrl or Alt, but they have to be defined first
  165. (see later on).
  166.  
  167. Then you can freely choose foreground and background color: use < and > for
  168. the foreground color and ( and ) for the background color.
  169.  
  170. Are there Tab characters within the text that don't refer to 8 colums margins?
  171. Adjust the tab spacing with T and Shift-T.
  172.  
  173. Does your text make use of the ISO-8859-1 charset? Select a charset with C.
  174.  
  175. Is your text taken from the Usenet and coded ROT13? Type R.
  176.  
  177. Don't you like the elevator bar to the right? Toggle it on/off with E.
  178.  
  179. Your text is narrow compared to the screen wide? Indent or unindent with I
  180. and Shift-I.
  181.  
  182. You prefer long lines to be wrapped-around rather than shifting the screen
  183. window horizontally? Switch to wrap-around mode with W. Note that one line
  184. is still one line internally, even if it is splitted into ten! But if
  185. you put a line "W 0 1" in your config file, READ tries to estimate the
  186. start of the screen lines in your text when you scroll back in wrap-
  187. around mode (without putting you in it at first, of course).
  188.  
  189.  
  190.  
  191. 5. Is that all?
  192. ---------------
  193.  
  194. No. READ is capable of printing, cutting and catenating text parts; charset
  195. conversions and ROT13 are taken into account if you wish.
  196.  
  197. Type P to select Printing. Then select a start and an end (READ offers you
  198. a list of salient points that can be used) and choose if the text in-between
  199. is to be sent to a printer port or to be written/appended to a file. Of course
  200. you can abort printing at any time with Esc. If you wrote the text to a file
  201. that is not already in the file selection list, READ suggests it to be added.
  202. Of course you may add or remove CRs...
  203.  
  204.  
  205.  
  206. 6. Am I to remember all these keys?!
  207. ------------------------------------
  208.  
  209. No, of course not. Just one: H. It displays a help screen.
  210.  
  211.  
  212.  
  213. 7. Well, READ is rather cute, but I don't like XXXXX. 
  214. -----------------------------------------------------
  215.  
  216. If XXXXX is a feature of READ, you can probably change it. READ has a config
  217. file that's called READ.CFG (change this if you renamed the executable, eg.
  218. if you renamed READ.EXE to LOOK.EXE you'll have to use LOOK.CFG). It's
  219. normally located in the same directory as READ.EXE itself, but you may specify
  220. another path using the environment variable READPATH=... (useful if several
  221. users use different configurations, eg. in a network).
  222.  
  223. And this is what the .CFG file looks like:
  224.  
  225. Each line contains one of the following:
  226.  
  227.         ;                       comment line (not evaluated)
  228.         F x                     foreground color, hex (00-0F, default: 0)
  229.         B x                     background color (00-07/00-0F, default: 7)
  230.     Z xx                    color of file selection screen (two hex digits;
  231.                                 the first one specifies the background color
  232.                                 while the second specifies the foreground
  233.                                 color; default: 07)
  234.         M dd                    initial mode (eg. 1=F1, 11=F11 etc.)
  235.         V dd xxxx xx dd dd      mode definition. See READ.EXA for details
  236.         O xx xx xx              mouse settings (see below)
  237.         K d d d d               Keyboard orientation: 1=normal, 2=inverted.
  238.                                 The first adjusts the cursor up/down keys,
  239.                                 the second adjusts the PgUp/PgDn keys
  240.                                 (0=normal, 1=QuickHelp, i.e. pressing an
  241.                                 operational key when help is being
  242.                                 displayed is effective to the text
  243.                                 display). The third digit sets the help
  244.                                 mode, and the fourth allows you to define
  245.                                 the operation of the Esc key during
  246.                                 text display: 0=normal, 1=if only one
  247.                                 file in the file list, exit immediately.
  248.         E d                     d=0: position display (elevator) off, 1=on
  249.         H dd dd                 Horizontal stepsize; 2nd value is
  250.                                 alternate stepsize (0-255, default 32 both)
  251.         T dd                    Tab spacing (0-16, default 8)
  252.         I dd                    Indent text (0-255, default 0)
  253.         X dd                    X scale with mouse movements (0-15,
  254.                                 default 5)
  255.         Y dd                    Y scale with mouse movements (0-15,
  256.                                 default 0)
  257.         C dd                    Charset (1=IBM, etc., as in the menue)
  258.         N cccccc...             Default file templates (eg. '*.txt *.doc')
  259.         W dd                    Wrap-around (0=off (default), 1=on)
  260.         R d                     Restart search when EOF encountered. If 0,
  261.                                 the user is prompted; if 1, yes is assumed.
  262.         P d                     Show page boundaries (form feeds) (0=off,
  263.                                 1=double line (default), 2=female sign)
  264.         A d                     Automatically write filetable on exit if 1
  265.                                 (as if you'd press 'W' on the file overview
  266.                                 screen prior to exit) or not if 0
  267.         U dd                    File table size. min 1, max 128. Each
  268.                                 entry needs about 240 bytes of memory.
  269.  
  270. xx is a hexadecimal, dd a decimal number, and c is a character. Leading zeroes
  271. can be omitted or added. Numbers are separated by spaces or tabs; spaces and
  272. tabs are ignored where they aren't necessary. Upper-/Lowercase is of no im-
  273. portance, and empty lines are allowed. Please regard that H, T, X, and Y allow
  274. 0 to be specified. T0 makes Tabs being ignored, X0 and Y0 select the highest
  275. mouse speed possible. H0 switches off horizontal movements of the mouse.
  276.  
  277.  
  278. 8. Mouse operation
  279. ------------------
  280.  
  281. If and how mouse movements result in screen scrolls can be specified
  282. by the user. It's possible to only allow scrolls in a certain direction
  283. if special conditions are met (that is, left/right mouse button pressed/not
  284. pressed and Shift or Ctrl key pressed/not pressed), and these
  285. conditions don't have to be the same for all directions.
  286.  
  287. The "O" line in the config file specifies the details; it has this format:
  288.  
  289. O <vmode> <hmode> <bmode>
  290.  
  291. <vmode>: vertical mode, range 00-FF hex
  292. <hmode>: horizontal mode, range 00-FF hex
  293. <bmode>: additional button settings
  294.  
  295. <vmode> and <hmode> are hex numbers and work as follows:
  296.  
  297. Bit 0: 1=enable direction, 0=disable direction
  298. Bit 1: 1=inverted scroll, 0=normal scroll
  299. Bit 2-4: normal speed settings
  300. Bit 5-7: high speed settings
  301. Bit 2/5: 0=left button not pressed, 1=left button pressed
  302. Bit 3/6: 0=right button not pressed, 1=right button pressed
  303. Bit 4/7: 0=Shift or Ctrl not pressed, 1=Shift or Ctrl pressed
  304.  
  305. Slow speed has higher priority if settings for slow and high speed are
  306. identical.
  307. Note that Bit 1 of <bmode> overrides some scroll conditions if it is set.
  308.  
  309. <bmode> is a hex number:
  310.  
  311. Bit 0: 0=vertical fast scroll half page wise, 1=full page wise
  312. Bit 1: 0=pressing both buttons has no special effect,
  313.        1=pressing both buttons does the same as pressing Esc,
  314.          no matter what the scroll conditions are.
  315. Bit 2-7: no operation; set them to 0 for compatibility with future
  316.          releases.
  317.  
  318. For those of you who are not familiar with hexadecimal and binary
  319. numbers, here's an example that should explain just as much as we need
  320. here. Write down the bit setting you like, starting with bit 7 and ending
  321. with bit 0, eg. "01000111". Then separate it into two halves, eg.
  322. "0100 0111". Each half is represented in hexadecimal by one digit; use
  323. this small conversion table:
  324.   0000 = 0    0001 = 1    0010 = 2    0011 = 3    0100 = 4
  325.   0101 = 5    0110 = 6    0111 = 7    1000 = 8    1001 = 9
  326.   1010 = A    1011 = B    1100 = C    1101 = D    1110 = E
  327.   1111 = F
  328. So our example is "47" hex.
  329.  
  330.  
  331. Some examples:
  332.  
  333. O 47 D7 2       This is the default setting. It means that pressing the
  334.                 left button enables slow scrolling, pressing the right
  335.                 button enables fast scrolling, pressing both buttons
  336.                 simultaneously works like Esc. If neither Shift nor Ctrl
  337.                 is pressed, the text is only scrolled vertically, while
  338.                 it is only scrolled horizontally if Shift or Ctrl is
  339.                 pressed. Moving the mouse seems to move a piece of paper
  340.                 before your eyes.
  341.  
  342. O A5 C9 1       Pressing the left button enables vertical scroll, pressing
  343.                 the right button enables horizontal scroll, and pressing
  344.                 both buttons allows both scroll directions at the same
  345.                 time. Whenever you press Shift or Ctrl with one or both of
  346.                 the mouse buttons, this results in faster scrolls. Moving
  347.                 the mouse results in text movements as if an imaginary
  348.                 cursor would reach the screen border in a text editor.
  349.                 Vertical fast scroll is page wise.
  350.  
  351. O 47 47 2       This is the default setting of old releases of READ.
  352.  
  353.  
  354.  
  355. 9. Now how about those video modes?
  356. -----------------------------------
  357.  
  358. You can define 48 different video modes which you can select with F1 to
  359. F12 - combined with Shift, Ctrl and Alt. This is of special interest if your
  360. graphics card offers extended text modes, which most VGA cards do. Just take
  361. a look at your manual, there should be a table of such modes in it. You find
  362. example definitions for several cards in READ.MOD. I've added a little
  363. program called MODES.EXE that determines your graphics card's video
  364. modes for you. See MODES.ENG for details.
  365.  
  366. A definition line consists of the following:
  367.  
  368.         V  F-key  base address  mode number  horizontal  vertical
  369. eg.     V    5       b800           3            80         25
  370.  
  371. V1-V12 equals F1 to F12, V13-V24 equals Shift-F1 to Shift-F12, V25-V36
  372. equals Ctrl-F1 to Ctrl-F12, and V37-V48 equals Alt-F1 to Alt-F12.
  373. That's enough for you? :)
  374.  
  375. Base address and mode number are hexadecimals! A base address of b800 should
  376. be adequate in most cases (monochrome cards: b000).
  377.  
  378. Most EGA/VGA cards are capable of additional text modes that are often
  379. not listed in the manual. READ activates them by manipulating the
  380. charset size. Just try the following modes; if you don't get a picture
  381. with the appropriate number of lines, that's bad luck. But it's most
  382. likely that it works fine.
  383.  
  384. EGA:
  385.         V ??  b800  80  80  43
  386. VGA:
  387.         V ??  b800  80  80  50
  388.         V ??  b800  81  80  28
  389. Note: Replace the ?? by a decimal number between 1 and 48.
  390. It's possible that if you have a monochrome monitor you'll have to use
  391. b000 instead of b800 with these modes (e.g. with a PS2).
  392.  
  393. If a video mode that's definitely supported by your graphics card doesn't
  394. work correctly this may be your monitor's fault. If it's not a
  395. MultiSync or a MultiScan, then it's rather unlikely that all modes work.
  396.  
  397. If your graphics card offers text modes that are not listed in READ.MOD,
  398. please tell me about them. I'll ship them with the next version.
  399.  
  400.  
  401.  
  402. 10. My, this function is slooooow....
  403. -------------------------------------
  404.  
  405. Probably it's a function that other browsers don't even offer used with a text
  406. that other browsers can't process. For example, it can take up to one second
  407. to find the rightmost character in a text with lines of up to 1000 characters
  408. viewed in a high resolution display mode. But that should only happen on very
  409. slow computers; on my old XT (10 MHz), READ is fast enough.
  410.  
  411. But there's one thing that can get on your nerves: if you don't have a cache
  412. installed, READ makes intense disk access showing texts with very long lines.
  413. This is due to the segmentation of the PC's memory and could only be avoided
  414. on the cost of speed (in normal operation) and space.
  415.  
  416. Anyway, READ isn't slow at all! It's completely written in assembly language
  417. that is highly optimized at critical points.
  418.  
  419.  
  420.  
  421. 11. What does READ cost me?
  422. ---------------------------
  423.  
  424. READ is Shareware. That is: You may copy it as often as you want, you may give
  425. copies to friends (as long as you copy READ completely and you get no benefit
  426. from it; postage and other expenses: OK). READ is not to be delivered with
  427. commercial products without my written consent! You are granted permission
  428. to test if READ matches your requirements for a period of four weeks and to
  429. add it to your archive. I also agree with uploading READ to BBSs or
  430. ftp-sites etc. AS LONG AS IT IS NOT FOR PROFIT. (See remarks for SysOps in
  431. SYSOP.DOC).
  432.  
  433. After four weeks you should have made a decision if READ is a program that
  434. you'd like to use permanently. If yes, you have to register. A donation of
  435. DM 5 (US $3 or other equivalent) should be OK for everybody and encourages
  436. me to keep working on the program, add new functionality etc., and it gives
  437. you the possibility to take influence on the development of READ since I'm
  438. thankful for any suggestions.
  439.  
  440.  
  441.  
  442. 12. And now for the usual: Disclaimer
  443. -------------------------------------
  444.  
  445. READ has been carefully programmed and should not be able to do any damage
  446. due to its structure. However, you are using READ at your own risk. I will
  447. not be liable in any way for any damage on neither your hardware nor your
  448. software. I also do not guarantee READ to fit for any purpose; you've got
  449. four weeks to try and find out yourself. If you don't agree with these
  450. terms, don't hesitate to delete READ right now!
  451.  
  452.  
  453.  
  454. 13. How can I contact the author?
  455. ---------------------------------
  456.  
  457. Either by snail mail or by email.
  458.  
  459. My snail address is:
  460.  
  461. Christian Blum, Friedrich-Ebert-Str. 50, 66578 Heiligenwald, Germany
  462.  
  463. You want to call? Sure, it's your money. :) Dial +49 6821 632589, but
  464. please make sure it's some decent time of day in Europe... eg. late
  465. evening.
  466.  
  467. Or email to:
  468.  
  469. chris@phil15.uni-sb.de  or  chbl@stud.uni-sb.de
  470.  
  471. BTW: I also talk to non-registered users... since I want to convince you!
  472.  
  473.