home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / decus / RB130 / sedsup05.arc / SUPLMENT.DOC < prev   
Text File  |  1988-11-27  |  24KB  |  470 lines

  1.  
  2.                               A Supplement To SEDT
  3.  
  4.                                        By
  5.  
  6.                                  David P. Maroun
  7.                                9395 Windsor Street
  8.                                  Chilliwack, BC
  9.                                      Canada
  10.                                      V2P 6C5
  11.                              Telephone (604)792-4071
  12.  
  13.                            Version 5.00,  8-Apr-1988
  14.  
  15.  
  16.  
  17.            I use Anker Berg-Sonne's SEDT editor as a word processor; in
  18.       particular, I use it to prepare the Vancouver Area Rainbow Users
  19.       Group's newsletter, and to write letters in either English or
  20.       French.  To these ends, I have developed modified key definition
  21.       and help files, ruler files, and fairly involved command files
  22.       that prepare documents for printers.  I am making these available
  23.       to others to help them adapt SEDT to their own purposes.  It is
  24.       unlikely that anyone besides myself will want to use my command
  25.       files as they are.  However, I hope that other people will be able
  26.       to use them as beginnings for command files that they want.  I
  27.       also hope that my work will allow others to appreciate SEDT, which
  28.       has become one of my favorite pieces of software.
  29.  
  30.            In this package you should find the following:
  31.  
  32.            CHAR                 A list of special characters that
  33.                                 LTR05C.105 can handle;
  34.  
  35.            HISTORY              A brief history of this package;
  36.  
  37.            LTR05C.105           A command file that prepares an SEDT
  38.                                 document as a letter to be printed on a
  39.                                 Tandy DMP-105 printer;
  40.  
  41.            RBHLP.TXT            The help file for the key definition
  42.                                 file;
  43.  
  44.            RBKEY.TXT            My modified key definition file;
  45.  
  46.            REVIEW.DOC           A review of SEDT 3.3(219) that I wrote
  47.                                 for the VARUG newsletter;
  48.  
  49.            RNL05AC.LSR          A command file that prepares the first
  50.                                 twenty pages of an SEDT document as a
  51.                                 VARUG newsletter to be printed on a
  52.                                 Hewlett-Packard LaserJet printer with a
  53.                                 92286J Math Elite font cartridge;
  54.  
  55.            RNL05B.LSR           A command file that prepares the second
  56.                                 twenty pages of the VARUG newsletter for
  57.                                 the LaserJet printer;
  58.  
  59.            RNL05C.EPS           A command file that prepares the first
  60.                                 twenty pages of an SEDT document as a
  61.                                 VARUG newsletter to be printed on an
  62.                                 Epson or Epson-compatible printer;
  63.  
  64.            RULER0.TXT
  65.            RULER1.TXT
  66.            RULER2.TXT
  67.            RULER3.TXT
  68.            RULER4.TXT
  69.            RULER5.TXT           Six ruler files;
  70.  
  71.            SUPLMENT.DOC         This document.
  72.  
  73.  
  74.            Comments are included in the command files LTR05C.105,
  75.       RNL05AC.LSR, and RNL05C.EPS but not in RNL05B.LSR since that last
  76.       file uses commands very similar to those in RNL05AC.LSR.  If you
  77.       wish to reduce the size of a file by leaving out the comments,
  78.       note that each comment line begins with ';'.
  79.  
  80.  
  81.       Why Use SEDT?
  82.       -------------
  83.  
  84.            SEDT appeals to me because it is fast, allows editing up to
  85.       four files at once, allows horizontal scrolling (I have used over
  86.       20 000 columns), and has an extensive command language that
  87.       permits the user to tailor the editor to his or her own purposes.
  88.       Furthermore, SEDT allows saving a fully-formatted document in
  89.       ASCII format, with printer controls embedded, so that one can
  90.       print without using SEDT for the final task.  That last feature
  91.       has allowed me to prepare the Vancouver Area Rainbow Users Group
  92.       newsletter on a Rainbow but print it on an IBM-compatible computer
  93.       connected to a laser printer.  I carry out the interchange between
  94.       the two computers by using the Rainbow to put the IBM 40-track
  95.       single-sided format on a diskette, copying the formatted
  96.       newsletter to that diskette, and taking the diskette to the
  97.       IBM-type computer.  The MS-DOS COPY command serves to send the
  98.       file to the laser printer.  Thus, SEDT helps arrange compatibility
  99.       between a DEC Rainbow and so-called IBM compatibles or actual IBM
  100.       PCs.
  101.  
  102.            Many other SEDT features also attract me.  Among them are the
  103.       various undelete commands, the learn mode, the ability to deal
  104.       with any ASCII character in a document, the ability to repeat the
  105.       same command a specified number of times, and the ability to deal
  106.       with columns as well as with lines.  I also very much like seeing
  107.       text on the screen as it will appear on paper, and SEDT lets me do
  108.       that.  Since SEDT saves files in ASCII format, it is compatible
  109.       with any printer that I have ever used.
  110.  
  111.  
  112.            Version 3.3(219) has three other very valuable features:
  113.       (1)  The program can edit non-text files.  I find that convenient
  114.       in many cases.
  115.       (2)  The version of SEDT included in this package will run on
  116.       either a Rainbow or an IBM-compatible machine, and make use of the
  117.       special features of each computer.  The editor itself is thus
  118.       quite portable.
  119.       (3)  SEDT allows using context files, thus permitting me to leave
  120.       an editing session and return to the same set-up I left.
  121.  
  122.  
  123.       Why Did I Develop Supplementary Files?
  124.       --------------------------------------
  125.  
  126.            My key definition file is a modification of the RBKEY.GLD
  127.       file supplied by SEDT's author with previous versions of SEDT.  I
  128.       developed my own version partly to correct some apparent mistakes
  129.       in the original, and also to incorporate some features that I find
  130.       useful.  I changed the RBHLP.GLD help file to suit the new key
  131.       definition file.  Of course, much of what is in those files
  132.       remains just as Anker Berg-Sonne wrote it.
  133.  
  134.            The command files allow me to set up a document with ANSI
  135.       codes that the Rainbow recognizes, then convert these codes to
  136.       printer codes.  Thus, I can insert the screen code for bold type
  137.       into text, use the MS-DOS TYPE command to display the text with
  138.       the bold sections evident, and then use a command file to prepare
  139.       the text for a printer.  I could use the printer codes at the
  140.       beginning, but that would not allow me to preview the printed copy
  141.       on the screen.
  142.  
  143.            Another purpose of the command files is to provide page
  144.       breaks, page headings, and page footings, sparing me the need to
  145.       insert each one individually.
  146.  
  147.            SEDT's author suggests using a formatter like TEXTF to
  148.       arrange page breaks, headers, and footers.  I tried TEXTF and
  149.       found that it inserted control characters (such as form feeds)
  150.       which some printers I used did not recognize.  TEXTF also
  151.       eliminated many other control characters that I wanted preserved.
  152.       Besides, SEDT's command language is extensive enough to provide
  153.       plenty of formatting, so I prefer not to use a separate program if
  154.       I can avoid it.
  155.  
  156.            The printer I usually have available is a Tandy DMP-105.  At
  157.       the time I got it, it was the cheapest plain-paper printer I could
  158.       find.  I like it, but it lacks many features of more expensive
  159.       machines.  It does not recognize form feeds or tab characters, has
  160.       no codes for subscripts or superscripts, cannot backspace, and
  161.       cannot make the paper move backwards.  It also uses different
  162.       codes for some characters that both it and the Rainbow can
  163.       produce.  My command file LTR05C.105 allows overcoming many of
  164.       these limitations, and so may be a good starting point for anyone
  165.       wanting to adapt to a variety of printers.  I suggest, for
  166.       example, that users of DEC LA100s may want to study my way of
  167.       getting subscripts and superscripts on the DMP-105 since the
  168.       LA100, without a special reverse-feed tractor, provides these
  169.       features only with friction feed.
  170.  
  171.            The LaserJet is perhaps at the other end of the price and
  172.       features scale from the DMP-105, but has its own peculiarities.
  173.       For example, it does not recognize tab characters, and requires a
  174.       form feed to print the last page.  The LaserJet also does not
  175.       provide double-width print with the Math Elite font cartridge that
  176.       I use.  My RNL05AC.LSR and RNL05B.LSR files are designed to deal
  177.       as well as possible with these limitations.
  178.  
  179.            Epson printers use codes that have become an industry
  180.       standard.  I developed RNL05C.EPS to make my package and SEDT more
  181.       versatile.  Note also that a printer operating in IBM-compatible
  182.       mode, even if it is an Epson brand printer, does not use the same
  183.       codes.  However, IBM-compatible and Epson codes are similar enough
  184.       that converting for IBM compatibility becomes relatively (I
  185.       emphasize that word) simple.
  186.  
  187.  
  188.       How To Use SEDT
  189.       ---------------
  190.  
  191.            In this section, I shall provide some general directions for
  192.       using SEDT with the files I developed.  Please note that more
  193.       documentation is included in LTR05C.105, RBHLP.TXT, RBKEY.TXT,
  194.       REVIEW.DOC, RNL05AC.LSR and RNL05C.EPS.  I assume that you have
  195.       SEDT-33.ARC and SEDT-DOC.ARC, which contain Anker Berg-Sonne's own
  196.       documentation.
  197.  
  198.            To begin editing, you should have SEDT.EXE version 3.3(219),
  199.       RBKEY.TXT, and RBHLP.TXT available on disk.  SEDT.EXE is not
  200.       included in the present package; it is distributed in the archive
  201.       SEDT-33.ARC.  You may also need the ruler and command files
  202.       supplied in the present package.
  203.  
  204.            Enter the command
  205.  
  206.            SEDT [OLDNAME.DOC NEWNAME.DOC -Lxxxx -J -E -F -B -R -xx]  .
  207.  
  208.            The items in square brackets are all optional.  OLDNAME.DOC
  209.       is the original name of the document that you wish to edit and
  210.       NEWNAME.DOC is the name you wish to give to the edited version.
  211.       -Lxxxx limits the amount of memory used for editing to the number
  212.       xxxx, so that -L300000 allows use of no more than 300 000
  213.       characters of memory.  The -L option helps assure that enough
  214.       memory is left over for, say, making a temporary exit to MS-DOS.
  215.       The -J option disables journaling--the automatic recording on disk
  216.       of progress during editing.  The -E places a control-Z at the end
  217.       of the document when it is saved.  The -F keeps the cursor on the
  218.       middle line of the screen with the text scrolling away from it.
  219.       The -B suppresses creation of a backup copy of the document being
  220.       edited.  The -R places a carriage return at the end of the
  221.       document.  Finally, the -xx places the cursor on line number xx at
  222.       the start of editing.
  223.  
  224.            There are other options, as Anker Berg-Sonne's documentation
  225.       mentions.
  226.  
  227.            According to my trials, specifying both '-E' and '-R' places
  228.       a carriage return after a control-Z, thus nullifying the return.
  229.  
  230.            You probably should not to use the '-E' and '-R' options if
  231.       you are editing a non-text file.
  232.  
  233.            What you do when you have SEDT loaded is, I think, reasonably
  234.       clear from RBHLP.TXT and the documentation included in SEDT-33.ARC
  235.       and SEDT-DOC.ARC.  However, I would now like to point out some
  236.       features of my adaptation.
  237.  
  238.            There is a keystroke sequence, <PF1> <Interrupt>, defined in
  239.       RBKEY.TXT for saving a portion of text.  You can also execute an
  240.       SEDT command to get the same effect.  In either case, you must
  241.       first move the cursor to one end of the section to be saved and
  242.       press the <Select> key.  Then move the cursor to the other end of
  243.       the section.  If you wish to delete the section from the document
  244.       and copy it into memory, press the <Remove> key; if you wish to
  245.       copy without deleting, press <PF1> <Remove>.  Then press <PF1>
  246.       <Interrupt> and, in response to the prompt, give the name of the
  247.       file to which you wish to save the text.  Alternately, press <PF1>
  248.       <Do>.  In answer to the prompt, type
  249.  
  250.            :PS\d:filename.ext\<Return>  ,
  251.  
  252.       with 'filename.ext' being the name you choose for the saved text
  253.       and d: the drive on which you want it saved.  If you type
  254.  
  255.            :PS\PRN\<Return>
  256.  
  257.       you will send the text to the printer.  Similarly,
  258.  
  259.            :PS\CON\<Return>
  260.  
  261.       will send the text to the screen.  You can use a variety of other
  262.       characters besides '\' as a delimiter, as long as you use the same
  263.       character at each end of the name.
  264.  
  265.            Generally, you can execute an SEDT command (by the <PF1> <Do>
  266.       sequence) rather than by typing a keystroke sequence specifically
  267.       set up for the command.
  268.  
  269.            Suppose that you wish to separate two items by a blank but
  270.       otherwise keep them together; for example, suppose that you want
  271.       to keep '18 km' on the same line despite any later insertions into
  272.       the same paragraph or reformatting.  Enter the '18', type <Ctrl>
  273.       <]>, then enter 'km'.  On the screen you will see either a ']' in
  274.       reverse video or '<GS>' between the '18' and the 'km', depending
  275.       upon how SEDT displays control characters.  SEDT will treat
  276.       everything from the initial '1' to the final 'm' as one word and
  277.       keep it together.  When you run one of the command files to
  278.       prepare the document for printing, the control-] character will be
  279.       turned into a space.
  280.  
  281.            To insert superscripts, press <ESC> <ESC> <M> (that must be a
  282.       capital 'M'), type in the superscript, then press <ESC> <ESC> <D>
  283.       (again, use upper case for the 'D').  Pressing the <ESC> key twice
  284.       inserts an escape character.
  285.  
  286.            For example, the sequence
  287.  
  288.            <P> <ESC> <ESC> <M> <5> <ESC> <ESC> <D>
  289.  
  290.       will insert a 'P' with a '5' as a superscript into the final text;
  291.       that is, the final text will show P raised to the power 5.  For
  292.       best results, skip a line before each line that has superscripted
  293.       symbols on it.
  294.  
  295.            To insert subscripts, press <Ctrl> <K>, type in the
  296.       subscript, and then type <ESC> <Up-arrow>.  The <ESC> <Up-arrow>
  297.       sequence inserts '<ESC>[A' into the text.  For example,
  298.  
  299.            <P> <Ctrl> <K> <5> <ESC> <Up-arrow>
  300.  
  301.       will produce 'P' with '5' as a subscript in the final text.  For
  302.       best results, leave a line blank after each line that has
  303.       subscripted symbols on it.
  304.  
  305.             You can see the superscripts and subscripts on the screen by
  306.       saving the file to disk, leaving SEDT, and using the MS-DOS TYPE
  307.       command to display the file.  If you can accept a screen width of
  308.       eighty characters, you can use TYPE without leaving SEDT.  First,
  309.       press the <Do> key, and respond to the prompt with
  310.  
  311.            TYPE d:filename.ext<Return>
  312.  
  313.       with d: being the drive on which the file is located and
  314.       'filename.ext' the name you have given to the document.
  315.  
  316.            To make a line appear double-width on the screen, insert the
  317.       sequence '<ESC>#6' (without the quotation marks) into the text.
  318.       You must repeat the sequence for each line that is to appear
  319.       double-width.  To insert the 'ESC' character, press the <ESC> key
  320.       twice, just as for superscripts or subscripts.  To see the
  321.       double-width, proceed as for seeing subscripts.  You will likely
  322.       have to adjust your margins to suit double-width lines.
  323.  
  324.            To prepare a document as a letter for the Tandy DMP-105
  325.       printer (or another printer that uses Tandy codes), load SEDT and
  326.       edit LTR05C.105.  Use search and replace operations to put in the
  327.       page headings and footings that you want.  Then save the file to
  328.       disk.  Next, load the document that you want formatted.  Type
  329.       <PF1> <X> and in response to the prompt type in
  330.  
  331.            LTR05C.105<Return>  .
  332.  
  333.       Wait until the commands complete their job.  You will be able to
  334.       inspect the final document on the screen before sending it to the
  335.       printer, just in case something went wrong.
  336.  
  337.            The procedure for formatting a document for the LaserJet
  338.       printer is similar, but you must use the RNL05AC.LSR and
  339.       RNL05B.LSR command files.
  340.  
  341.            When it is time to send the finished document to the printer,
  342.       perhaps the best procedure is to save to disk (say, under the name
  343.       'B:FILE.DOC'), leave SEDT, get the printer ready, and enter
  344.  
  345.            COPY B:FILE.DOC PRN<Return>  .
  346.  
  347.            If you prefer to print without leaving SEDT, you can press
  348.       the <Do> key and then enter the above MS-DOS command in response
  349.       to the prompt.
  350.  
  351.            Alternatively, while SEDT is loaded, you can use the print
  352.       command, <PF1> <Ctrl> <P>, and specify
  353.  
  354.            PRN<Return>
  355.  
  356.       in response to the prompt.  SEDT will send the file to the
  357.       printer, and will send a form feed at the end.  If your printer is
  358.       a Tandy DMP-105, it will respond to the form feed by printing a
  359.       small hourglass-like figure, not by advancing the paper.
  360.  
  361.            My advice:  Spare yourself trouble; use the MS-DOS COPY
  362.       command.
  363.  
  364.            If you wish to adapt the command files for some other
  365.       printer, you must go through your printer manual and replace the
  366.       printer codes in the command files by those for your printer.
  367.       Plan to make a number of trials before you use a new command file
  368.       for serious purposes; you probably will not get a satisfactory
  369.       command file the first time.
  370.  
  371.            As a matter of fact, I am not completely satisfied with some
  372.       aspects of my own command files, notably the treatment of
  373.       subscripts and superscripts on some printers.  On the Tandy
  374.       DMP-105, subscripts and superscripts are just as big as the main
  375.       symbols.  I would prefer to have smaller print for the raised and
  376.       lowered characters.  Failure to skip a line before superscripts
  377.       and after subscripts may not only result in characters touching
  378.       each other, but in some cases may cause an incorrect number of
  379.       lines on a page.  These are perhaps minor problems; I can live
  380.       with them, but I would like to solve them someday.
  381.  
  382.            The LaserJet, of course, provides a somewhat more appealing
  383.       treatment of subscripts and superscripts as well of most other
  384.       text.
  385.  
  386.            The command file RNL05C.EPS for Epson printers produces
  387.       subscripts that are too high and superscripts that are too low.  I
  388.       sometimes have a bit of trouble recognizing them as subscripts or
  389.       superscripts.  Subscripts look best on capital letters and
  390.       superscripts on lower-case letters.
  391.  
  392.            A great many printers use Epson codes, and the results of
  393.       printing depend on which printer is used.  On an Epson FX-80, I
  394.       did not get bold type; apparently the printer would not provide
  395.       bold (or "emphasized") type while in near-letter-quality mode.
  396.       That problem did not arise with an Epson FX-286e nor with an Epson
  397.       LQ1050.
  398.  
  399.           Certain other features of this package should be noted.  One
  400.       involves the use of control-B to fix a blank in place.  While
  401.       editing, you can see an inserted control-B (usually as a B in
  402.       inverse video), but if you save the file to disk and use the TYPE
  403.       command to display the file, you will not be able to see the
  404.       control-B.  Running the command files converts control-Bs into
  405.       blanks, which you can again see.  Another feature to note is the
  406.       use of inverse video.  Typing control-V inserts the escape
  407.       sequence for inverse video into the text being edited; typing
  408.       <PF1> <ESC> <ESC> inserts a sequence which causes a return to
  409.       normal video.  The inverse video passages can be viewed by saving
  410.       the file to disk and using the TYPE command.  The LTR05C.105
  411.       command file converts inverse-video passages into condensed
  412.       characters on the Tandy DMP-105 printer.  You should therefore
  413.       adjust the margins and line lengths of such passages accordingly.
  414.       The command files for the laser and Epson printers convert inverse
  415.       video sequences into codes to produce italics.  The italic
  416.       passages end with the code for normal video.
  417.  
  418.            Note also that this package uses control-K for subscripts,
  419.       thus conflicting with Anker Berg-Sonne's suggested use with
  420.       TXFINDX.
  421.  
  422.            LTR05C.105 is the most nearly complete of the command files.
  423.       This is so because it is designed for the Tandy DMP-105, which I
  424.       happen to own, while the other command files are designed for
  425.       printers that I cannot use so often nor so freely.  Perhaps in the
  426.       future I can add more conversions to the command files for the
  427.       laser printer and Epson printers.
  428.  
  429.  
  430.       Computers On Which These Files Run
  431.       ----------------------------------
  432.  
  433.            I have tested the files in the present package only on DEC
  434.       Rainbow 100s.  SEDT 3.3(219) will also run on IBM PCs and
  435.       compatible computers.  I expect that the command files would work
  436.       well enough on such machines if they have ANSI.SYS, or an
  437.       equivalent system, installed, and if ANSI codes were used in the
  438.       documents being edited.  I also expect that RBKEY.TXT and
  439.       RBHLP.TXT would have to be adapted--perhaps a great deal--before
  440.       they would be useful on a computer much different from a Rainbow.
  441.       If anyone tries my files on other than Rainbows, I would very much
  442.       like to hear about the results.
  443.  
  444.  
  445.       Distribution Policy
  446.       -------------------
  447.  
  448.            The parts of this package that were written by others should
  449.       be treated according to their rules.  I retain the copyright to my
  450.       own contributions, but grant a license to anyone to use or modify
  451.       them under the following conditions:
  452.       (1)  He or she should give me credit for my work, and
  453.       (2)  if he or she makes modifications, he or she should so
  454.       indicate.
  455.  
  456.            I make no restrictions on using my work for commercial,
  457.       government, or private purposes.  No one should feel obliged to
  458.       pay me for what I have done (though I will gladly accept
  459.       donations!).  I would appreciate being told what experiences--
  460.       either favorable, unfavorable, or neutral--anyone has with my
  461.       work.
  462.  
  463.            Although I have tested this package, I provide no guarantee
  464.       whatsoever about the suitability of my files for any purposes.  I
  465.       provide the files only as the results of my own work and as
  466.       starting points for other research.  As I mentioned previously,
  467.       some parts of my files are so specialized that someone else will
  468.       most likely be obliged to make changes.
  469.  
  470.