home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 037 / etext10.zip / COMPILE.DOC < prev    next >
Text File  |  1994-11-08  |  26KB  |  510 lines

  1.  
  2.  
  3.                    THE ELECTRONIC TEXT PUBLISHING SYSTEM
  4.  
  5.  
  6.         Description:
  7.  
  8.         The Electronic  Text Publishing  System (or  "E-Text" for short)
  9.         is  used  to  make  "electronic"  books  or  magazines,  such as
  10.         tutorials, training manuals, or  even works of literature.   The
  11.         E-Text  system  allows  you   to  create  professional   looking
  12.         programs with minimal effort.   E-Text uses text files that  you
  13.         create and compiles  them into a  menu driven "electronic" book,
  14.         complete with a  table of contents.   If you know  how to use  a
  15.         word  processor,  then  you  have  all  the  skills necessary to
  16.         publish your own "electronic" books  on a disk.  The  electronic
  17.         books that  you create  with E-Text  can be  copied, distributed
  18.         and sold, royalty  free.  Share  your knowledge, research,  your
  19.         works of poetry, fiction, or your sales products with others  by
  20.         using E-Text!
  21.  
  22.  
  23.         Features:
  24.  
  25.         E-Text allows you to customize nearly every aspect of your
  26.         finished catalog.  Consider the following...  E-Text allows you
  27.         to...
  28.  
  29.         + Create a "Table of Contents" (Main menu)
  30.  
  31.         + Customize the size and location of the Main Menu
  32.  
  33.         + Customize the attributes of the Main Menu, such as colors,
  34.           border frame, elevator bar, drop shadow, etc.
  35.  
  36.         + Define the colors of each screen
  37.  
  38.         + Use background wallpaper to create stunning screens
  39.  
  40.         + Invoke screen special effects - for example, screen wipes
  41.           from left to right, right to left, top to bottom, opening
  42.           curtains, splits, clock sweeps, etc.
  43.  
  44.         + Run DOS commands, execute batch files or other programs.
  45.           E-Text can be used to create your own program menus or shell.
  46.  
  47.         + Consolidates all your .TXT files into just one compact data
  48.           file.  In fact, after compilation, only two files are
  49.           necessary to make your electronic book available to your
  50.           audience (READ.EXE and READ.DAT).  This makes file management
  51.           a breeze.
  52.  
  53.  
  54.         Special requirements:
  55.  
  56.         No special system requirements or hardware is required to use
  57.         E-Text except a DOS version greater or equal to version 3.0.
  58.         A hard disk does make the compilation process much easier and
  59.         faster, however.
  60.  
  61.  
  62.         Before we get started:
  63.  
  64.         If you obtained E-Text through a shareware vendor, or BBS, or
  65.         CD-ROM, make sure that no files are missing.  A file called
  66.         PACKING.LST contains a listing of all the files required to run
  67.         E-Text.  If you have problems with E-Text, check the files that
  68.         you have obtained with the PACKING.LST listing.  If you find
  69.         files missing, please notify your vendor, or BBS sysop, or feel
  70.         free to contact the author via our 24-hour BBS at (703)
  71.         372-9680 N-8-1 ANSI.  The latest version can always be
  72.         downloaded from our BBS as ETEXT*.ZIP.
  73.  
  74.         Before you compile your very own electronic book we recommend
  75.         that you browse through one that has already been created.  You
  76.         should find a file AESOP.DAT on your disk, which contains a
  77.         short collection of Aesop's Fables.  To view this electronic
  78.         book from the DOS prompt enter --> READ AESOP   then press
  79.         ENTER.  Browse through this electronic book and get a feel for
  80.         what E-Text can do.  If you like what you see, and would like
  81.         to create similar e-text documents, resume reading these
  82.         instructions and proceed with your first compilation.
  83.  
  84.  
  85.         Terms and definitions:
  86.  
  87.         There are several terms that will be used throughout this
  88.         documentation and that need to be fully understood by the user
  89.         before you create your own electronic books.  Please review
  90.         these definitions carefully:
  91.  
  92.         ASCII FILE: This is a term used to describe any file that you
  93.         create and save with an editor such as DOS' EDIT or Window's
  94.         Notepad.  An ASCII file contains only characters that can be
  95.         found on a standard IBM keyboard.  Most word processor programs
  96.         (like Word Perfect) can save files in ASCII format IF you know
  97.         how to.  E-Text does NOT come with an editor because most users
  98.         already have a favorite text editor or word processor that they
  99.         feel comfortable with.  We saw no reason to force the user to
  100.         use another editor and have consequently not included one.
  101.  
  102.         CHAPTER: A chapter is any ASCII .TXT file that you create that
  103.         you want to become part of your electronic book.  Each
  104.         selection from the Main Menu "Table of Contents" is considered a
  105.         chapter.
  106.  
  107.         COMPILER: The compiler  is the program  that gathers all  of
  108.         your   ASCII chapter text files (*.TXT), and  binary wallpaper
  109.         files (*.BIN) together, and prompts you step by step for
  110.         specific details about how you want your final electronic book
  111.         to look (screen colors, Table of Contents (Main Menu) size,
  112.         location, etc.  The compiler merges and can compress this
  113.         information into a single data file (READ.DAT).
  114.  
  115.         DATA FILE:  The data file is a specially formatted file that
  116.         contains ALL of your chapters, wallpaper, and screen
  117.         definitions.  This data file is created by using the E-Text
  118.         compiler (COMPILE.EXE), and once it has been created it can be
  119.         identified by the default filename "READ.DAT".  This data file
  120.         is one of the two necessary files that must be placed on your
  121.         distribution disk in order for others to read your electronic
  122.         book.  Data files can be renamed if you wish, however to use
  123.         them with the "reader" you must specify its new file name on
  124.         the DOS command line.  For example, AESOP.DAT was originally
  125.         named READ.DAT, but was renamed in order to preserve its
  126.         contents from future compilations that would have created a new
  127.         READ.DAT file and overwritten it.  In order to use AESOP.DAT
  128.         with the "reader", the user needs to start the electronic book
  129.         from the DOS command line in this manner --> READ AESOP.DAT By
  130.         using this method inside a batch file, the author can create
  131.         several electronic books on one floppy disk, needing only one
  132.         "reader".
  133.  
  134.         READER MODULE:  This refers to the file "READ.EXE".  This is
  135.         the program that reads the information in your data file and
  136.         displays it to your audience.  Remember, in order to create an
  137.         electronic book for distribution on a floppy diskette, two
  138.         files must exist on that disk: 1) READ.EXE and 2) READ.DAT.
  139.  
  140.         TEXT FILE:  Text files and ASCII files all refer to the
  141.         same thing (see ASCII FILE above).
  142.  
  143.         WALLPAPER: If you have never used Microsoft Windows, then the
  144.         term "wallpaper" may conjure up ideas of colored paper and
  145.         wheat paste.  With E-Text, however, wallpaper refers to
  146.         background screen designs that can be used to liven up your
  147.         electronic book.  Wallpaper files should end with a .BIN file
  148.         extension.  How do you create wallpaper files?  When you
  149.         register E-Text you will be sent, as a bonus, the E-Text Screen
  150.         Designer program that allows you to create your own wallpaper
  151.         files.  Several wallpaper .BIN files have been included with
  152.         the evaluation copy, so feel free to use them.  You may also
  153.         use any text screen design program that generates BLOADable
  154.         binary files.  The "Laughing Dog Screen Maker" and "The Draw"
  155.         are two popular shareware screen designers that can also create
  156.         wallpaper files.  You can find these programs on most large
  157.         BBS's for downloading.  As an incentive to register, you will
  158.         be sent a screen design program written by the author at no
  159.         additional charge.
  160.  
  161.  
  162.         Getting started:
  163.  
  164.         You will need to create all of the ASCII .TXT text files that
  165.         you wish to include in your "electronic" book BEFORE you run
  166.         the compiler (COMPILE.EXE).  Use your favorite word processor
  167.         or text editor (like DOS' EDIT) to compose the individual
  168.         "chapters".  If you are using a word processor, like Word
  169.         Perfect, then it is absolutely essential that you save each
  170.         "chapter" as an ASCII file.  Most word processors add "control
  171.         characters" to your document as you compose it.  Control
  172.         characters are used to identify italics, highlighting,
  173.         underlines, margin spacing, etc.  When using a word processor,
  174.         these control characters will create problems if they are not
  175.         removed.  By saving a word processing document as an ASCII
  176.         file, all the control characters will be removed.
  177.  
  178.         In Word Perfect 5.0/5.1, you can save your document as an ASCII
  179.         file by pressing CTRL+F5, then selecting "1 DOS Text", then
  180.         select "1 Save".
  181.  
  182.         If you are using DOS' EDIT, or the Windows' Notepad, then you
  183.         do not need to worry about control characters, for their
  184.         native file formats are ASCII.
  185.  
  186.         Each "chapter" of your "electronic" book MUST exist as an ASCII
  187.         file, with a ".TXT" file extension.  Valid file name examples
  188.         are: "AESOP1.TXT", "TUTOR-3.TXT", "POEMS_5.TXT".  The compiler
  189.         looks automatically for all files with .TXT file extensions,
  190.         and will ignore all other files.  Rename your files to include
  191.         a .TXT extension should you have failed to do so earlier.
  192.  
  193.         In each of your "chapter" .TXT files, you must reserve the very
  194.         first line (top most) for a "header".  This header consists of
  195.         various parameters (commands) that are necessary for the reader
  196.         (READ.EXE).  This header line must absolutely be on line #1.
  197.         If during the compilation process (using COMPILE.EXE) the
  198.         compiler detects a .TXT file with a missing header, the
  199.         compiler will flag this to your attention, and prompt you to
  200.         correct the discrepancy.
  201.  
  202.         The header line can have many different parameters (commands),
  203.         some of which specify the screen colors, size of the text view
  204.         window, screen effects, and more (see advanced options later in
  205.         this documentation).  There are two parameters that are ALWAYS
  206.         required in the header line: 1) the Table of Contents order
  207.         number or character, and 2) a chapter title.
  208.  
  209.         A typical .TXT header will look like this:
  210.  
  211.         ┌────────────────────────────────────────────────────────────┐
  212.         │ 2|The Life of Aesop                                        │
  213.         │                                                            │
  214.         │                  <─── Body of document ───>                │
  215.  
  216.  
  217.         Please note that the Table of Contents "order number" is
  218.         separated from the chapter title by a "|" (pipe) character.
  219.         This character always separates parameters on the header line.
  220.         The "|" character is found on most IBM PC keyboards with the
  221.         "\" (backslash) key.
  222.  
  223.         The Table of Contents "order number" determines the ORDER OF
  224.         APPEARANCE that the chapter title will appear in the Main Menu.
  225.         In other words, in the example above, the chapter "The Life of
  226.         Aesop" will appear as the second chapter in the Table of
  227.         Contents Main Menu.
  228.  
  229.         Now, to slightly contradict the instructions, the "order
  230.         number" does not necessarily have to be a number.  There is one
  231.         exception where the letter "A" or "a" is used in place of the
  232.         order number.
  233.  
  234.         ┌────────────────────────────────────────────────────────────┐
  235.         │ A|The Life of Aesop                                        │
  236.         │                                                            │
  237.         │                 <─── Body of document ───>                 │
  238.  
  239.  
  240.         What the "A" does is instruct the reader (READ.EXE) to sort the
  241.         chapter titles in ALPHABETICAL ORDER.  If there are 10 chapters
  242.         in your electronic book, and 9 of them have numeric values for
  243.         the order number, and 1 of them has the letter "A", then the
  244.         ENTIRE Table of Contents will be sorted in alphabetical order.
  245.         Just one "A" in just one file is enough to cause all the other
  246.         chapters to fall into alphabetical order.
  247.  
  248.  
  249.         Additional header parameters:
  250.  
  251.         The "order number" and "chapter title" are required parameters
  252.         that MUST exist in each .TXT file that you create.  These 2
  253.         parameters, however, are not the only parameters that can exist
  254.         on the header line.  You can customize the appearance of each
  255.         chapter in your electronic book by combining different
  256.         parameters.  Here's an example:
  257.  
  258.         ┌────────────────────────────────────────────────────────────┐
  259.         │ 2|The Life of Aesop|FORE=15|BACK=3|SCFX=6|MARG=10|COLS=14  │
  260.         │                                                            │
  261.         │                  <─── Body of document ───>                │
  262.  
  263.  
  264.         In the example above, "FORE", "BACK", "SCFX", etc. are each an
  265.         individual header parameter.  Please note that each parameter
  266.         is separated by a "|" (pipe) character.
  267.  
  268.         Here is a listing of all the parameters available to you, which
  269.         if used, must appear on the first line of your .TXT file,
  270.         separated by a "|" character:
  271.  
  272.  
  273.         FORE=##    This is used to specify the color of the foreground
  274.                    text of an individual chapter, where ## is replaced
  275.                    with a color number from 0-15 (see valid colors
  276.                    below).
  277.  
  278.         BACK=##    This is used to specify the color of the background
  279.                    text of an individual chapter, where ## is replaced
  280.                    with a color number from 0-7 (see valid colors
  281.                    below).
  282.  
  283.                    0 = black       6 = brown          12 = light red
  284.                    1 = blue        7 = gray           13 = light magenta
  285.                    2 = green       8 = dk. gray       14 = yellow
  286.                    3 = cyan        9 = light blue     15 = white
  287.                    4 = red        10 = light green
  288.                    5 = magenta    11 = light cyan
  289.  
  290.         SCFX=##    This is used to specify the type of special screen
  291.                    effect of an individual chapter, where ## is replaced
  292.                    with a number from 1-17 (see below).
  293.  
  294.                    1 = Clock sweep           10 = Slide Left & In
  295.                    2 = Curtain               11 = Slide Left & Out
  296.                    3 = Diagonal              12 = Slide Right & In
  297.                    4 = Diamond               13 = Slide Right & Out
  298.                    5 = Lines                 14 = Slide Up & In
  299.                    6 = Hole                  15 = Split Horz. & Out
  300.                    7 = Box                   16 = Split Vert. & In
  301.                    8 = Slide Down & In       17 = Split Vert. & Out
  302.                    9 = Slide Down & Out
  303.  
  304.         MARG=##    This parameter is used to specify the left margin
  305.                    where your chapter text contents will be displayed.
  306.                    ## specifies the screen column, and valid entries
  307.                    are from 1-60.  If MARG=## is absent from the .TXT
  308.                    header, then a default of 7 will be used.
  309.  
  310.         ROWS=##    This parameter specifies how large your chapter's
  311.                    text display window is in height.  Valid values are
  312.                    from 1 to 23 rows in height.  If no ROWS=## is
  313.                    used, then a default of 22 rows will be used to
  314.                    define the text window height.
  315.  
  316.         TOPR=##    Specifies the starting row of the chapter's text
  317.                    window location, where ## is a value between 1-23.
  318.                    If no TOPR=## is specified, a default value of 2
  319.                    will be used to position the beginning row of the
  320.                    text window.
  321.  
  322.         COLS=##    Specifies how wide (in columns) the chapter's text
  323.                    display window is.  Valid range in columns for ##
  324.                    is 1-79.  If no COLS=## is indicated in the header
  325.                    line of your .TXT file, a default width of 75
  326.                    columns will be used.
  327.  
  328.         BINF=xxxx  Specifies the name of the wallpaper binary file
  329.                    to be loaded beneath the chapter's text display
  330.                    window.  "xxxx" is replaced with the COMPLETE file
  331.                    name (with extension) which contains your binary
  332.                    wallpaper (e.g. BINF=HEADER.BIN, or BINF=MAIN.BIN).
  333.                    If no BINF=xxxx parameter exists, no wallpaper will
  334.                    be used behind your text window.
  335.  
  336.         LINE=#     Use this parameter in your header to change the
  337.                    default of single line spacing.  LINE=2 will double
  338.                    space each line of your chapter's text
  339.                    automatically.  Valid range for line spacing is
  340.                    1-4.
  341.  
  342.         With the preceding header parameters, you can mix and match
  343.         them to customize the layout of each chapter in your electronic
  344.         book.  Please remember that each parameter must be separated by
  345.         a "|" character.
  346.  
  347.         Although all these header parameters allows you to customize
  348.         your text display windows, you may elect not to use the text
  349.         display window parameters such as COLS=, MARG=, TOPR=, etc.
  350.         You can create eye-appealing text windows automatically by just
  351.         making sure that your .TXT files are no larger than 70 columns
  352.         wide and that they are left flush justified.  If you are using
  353.         a word processor, you can achieve such specs by using a fixed
  354.         font such as Courier 10cpi, and 1 inch left and right margins.
  355.         When you export/save your chapter files to ASCII, you will find
  356.         that your .TXT files are less than 70 columns wide.  This size
  357.         will work well with the default text window values that the
  358.         E-Text reader uses.
  359.  
  360.  
  361.         Special header parameter "EXECUTE":
  362.  
  363.         E-Text is not limited to just displaying ASCII text files
  364.         (chapters).  E-Text can also run other programs or be
  365.         instructed to carry out a series of DOS commands.  The
  366.         "EXECUTE" header parameter is used inside a .TXT file, placed
  367.         after the chapter title on line 1, and specifies that this .TXT
  368.         file is different.  Different in that the contents of this .TXT
  369.         file will NOT be displayed in a text window, but rather each
  370.         line of the .TXT file will be executed (i.e., run from the DOS
  371.         command line).
  372.  
  373.         ┌────────────────────────────────────────────────────────────┐
  374.         │ 7|Display all AESOP files|EXECUTE                          │
  375.         │ DIR AESOP*.*                                               │
  376.         │                 <─── Body of document ───>                 │
  377.  
  378.         In the example above, the header parameter "EXECUTE" will
  379.         instruct the program to treat the lines which follow as DOS
  380.         commands.
  381.  
  382.         You are not limited to just one line of DOS commands or
  383.         instructions.  The example below shows how one can stack a
  384.         series of commands, which will be run in sequence, one after
  385.         the other:
  386.  
  387.         ┌────────────────────────────────────────────────────────────┐
  388.         │ 12|Delete all *.BAK files on all drives|EXECUTE            │
  389.         │ DEL C:\*.BAK                                               │
  390.         │ DEL C:\DOS\*.BAK                                           │
  391.         │ DEL C:\WINDOWS\*.BAK                                       │
  392.         │ DEL C:\TEMP\*.BAK                                          │
  393.         │ DEL A:*.BAK                                                │
  394.         │ DEL B:*.BAK                                                │
  395.         │                 <─── Body of document ───>                 │
  396.  
  397.         Neither are you limited to simple DOS commands.  You can
  398.         execute .BAT batch files, .COM and .EXE's (memory space
  399.         permitting) when the end user selects a "chapter" in which you
  400.         have the EXECUTE parameter.
  401.  
  402.         At the end of executing all the commands inside the selected
  403.         .TXT file, the E-Text reader will return back to the Main Menu
  404.         (Table of Contents).
  405.  
  406.  
  407.         Line color highlighting:
  408.  
  409.         Even though you can color customize each chapter .TXT file in
  410.         respect to foreground text and background colors using a header
  411.         parameter (FORE=/BACK=), you may wish to add emphasis to one
  412.         particular line (or lines) of text in a chapter.  This can be
  413.         done by adding to the end of a line of text a color code.  A
  414.         color code consists of a caret symbol "^" followed by a color
  415.         number from 0-16 (see color code chart above).  Here is an
  416.         example...
  417.  
  418.         ┌────────────────────────────────────────────────────────────┐
  419.         │ 5|The Eagle, the Cat, and the Wild Sow|MARG=10|SCFX=3      │
  420.         │                                                            │
  421.         │          The Eagle, the Cat, and the Wild Sow^15           │
  422.         │                                                            │
  423.         │    AN EAGLE made her nest at the top of a lofty oak;  a    │
  424.         │    Cat, having found a convenient hole, moved into  the    │
  425.         │    middle  of  the  trunk;  and  a  Wild  Sow, with her    │
  426.         │    Cat cunningly resolved  to destroy this  chance-made    │
  427.         │                                                            │
  428.         │                 <─── Body of document ───>                 │
  429.  
  430.  
  431.         In the example above, the title line "The Eagle, the Cat..." is
  432.         followed by the color code "^15".  What the "^15" will do is
  433.         instruct the reader (READ.EXE) to use color 15 (bright white)
  434.         on that particular line (background remains unchanged).  Such
  435.         color highlighting is useful for titles, new paragraph
  436.         description headings, or important passages that need to grab
  437.         the reader's attention.  You can use as many color codes as you
  438.         like in a chapter file, however only one code per line of text
  439.         is permitted (i.e., a line of text cannot have more than one
  440.         color).
  441.  
  442.         If you have an actual caret symbol in your chapter that is not
  443.         to be confused with a color code (highly unlikely, but for math
  444.         statements it is possible), then precede that caret with
  445.         another caret (e.g., Mathematicians, solve for x, where
  446.         x+5^^2=30).
  447.  
  448.  
  449.         Shareware:
  450.  
  451.         Shareware is a try-before-you-buy marketing concept that allows
  452.         you a trial period in which to evaluate a software program.
  453.         The Electronic Text Publishing System is shareware software and
  454.         continued use of the program requires that you support the
  455.         author.  Once you have registered, you will receive the latest
  456.         version of E-Text that will permit you to begin distributing
  457.         your electronic books (*.DAT files) legally and the E-Text
  458.         reader (READ.EXE) freely without royalties.
  459.  
  460.  
  461.         Distribution of this program:
  462.  
  463.         The unregistered, shareware version can be distributed by BBS's
  464.         as long as NO FILES ARE DELETED from the original group of
  465.         files (see PACKING.LST for original .ZIP contents).  Shareware
  466.         vendors are permitted to charge a small fee, not exceeding
  467.         $6.00, in exchange for their services in providing evaluation
  468.         copies to others.  CD-ROM publishers are permitted to include
  469.         E-Text in any compilations as long as the .EXE file date stamp
  470.         is less than 2 years old.
  471.  
  472.         Once you have registered E-Text with the author, you are then
  473.         granted a license to distribute the reader (READ.EXE) royalty
  474.         free.  The compiler, however, is limited in license, and can
  475.         only be used on one computer at any given time.  If you plan
  476.         on using the compiler on more than one computer, contact
  477.         the author for site license arrangements.
  478.  
  479.  
  480.         All in the family:
  481.  
  482.         Attention: merchants and product distributors!  If you would
  483.         like to publish and distribute interactive on-disk CATALOGS
  484.         that display product items along with individual prices, and
  485.         that prints order forms, please contact us and inquire about
  486.         THE DISK VENDOR line of software.  The Disk Vendor is for those
  487.         businesses who want an alternative to a traditional printed
  488.         paper product sales catalog.  The Disk Vendor system handles
  489.         credit cards, sales tax, shipping charges, personalized opening
  490.         & closing screen, discounts on purchases, printed catalogs,
  491.         order forms, and more.  Create professional looking catalogs
  492.         quickly and with little effort!
  493.  
  494.         You can also download a fully functional evaluation copy of
  495.         The Disk Vendor from our 24-hour BBS, at 703-372-9680.  The
  496.         latest file can be downloaded as VEND??GB.ZIP where ??
  497.         represents the current program version.
  498.  
  499.  
  500.         Program author:
  501.  
  502.         Philip P. Kapusta
  503.         P.O. Box 5423
  504.         Falmouth, Va. 22403
  505.         USA
  506.  
  507.         If you wish to send correspondence to us, we would prefer an
  508.         e-mail message left on our BBS (703) 372-9680 instead of paper
  509.         mail.
  510.