home *** CD-ROM | disk | FTP | other *** search
- -------=====******=====-------
-
- ADGFormat version 1.3
-
- -------=====******=====-------
-
- © 1994 SA Productions
-
- Author:
- Søren Berg Glasius
-
- 1. Overview
- 2. Distribution
- 3. Requirements
- 4. Installation
- 5. Usage
- 6. ToDo
- 7. History
- 8. About SA Productions
-
- 1. Overview
- -----------
-
- You probably have created guide files for all your Autodoc files, just like I
- have. You probably also think that the layout ad2ag (or ad2ht) creates looks
- pretty ugly, just like me. This can ofcourse be fixed. I have seen a couple of
- programs, that does this, but I thought that they were a bit too slow, and also
- they couldn't be configured as I would like them to be. Well, then I wrote my
- own: ADGFormat (AutoDocGuideFormat).
-
- What it does, excacly, is that it takes one (or more) AutoDoc guidefiles and
- process them, in the way you have selected. You can either have it write a
- specific number of columns or you can specify the maximum width you desire. If
- you specify a maximum width, it will calculate the maximum numbers of columns it
- can create based upon the widest nodename. If any nodename is longer than the
- maximum width, there will only be created one column and it will be larger than
- the maximum width. You can also select, if it shall write the formated file
- back to the original, or if you want it to create a set of formated files.
- Finaly you can select the delimiter between the columns (the default is "|").
-
- ADGFormat is coded using C and FLEX (a lexical analyzer generator). FLEX does
- all the parsing of the file. If you want to see, how FLEX can be used, please
- request the source code from the author. (See sect. 8.)
-
-
- 2. Distribution
- ---------------
-
- All code is Copyright © 1994 SA Productions. It may be copied and distributed
- so long as no commercial profit is made out of it. it may not be modified,
- sold, or included in any commercial distribution without my written permission.
- Public Domain vendors are not allowed to sell this program for more than the
- price of a regular disk, which should be no more than the equivalent of 5
- Dollars. The author takes no responsibility for any loss or damage resulting
- from the use of this program.
-
- This program is MailWare. If you like it, you must mail the author telling
- him so. Please use either email addresses, or optionally write a postcard. See
- sect. 8.
-
-
- 3. Requirements
- ---------------
-
- This program is written using OS2.04 and has not been (and will not be) tested
- under versions belov 2.04. It works on files created by ad2ag (or ad2ht) so I
- guess you'll need them as well. I guess that's about it :-)
-
-
- 4. Installation
- ---------------
-
- There is nothing to it. Just copy ADGFormat to a directory which is in
- your path (C: might be the place :-), and then place this guide in your HELP:
- directory.
-
-
- 5. Usage
- --------
-
- ADGFormat is very easy to use. It has a total of 7 arguments, where only 5
- can be used at the same time. They are:
-
- ADGFormat Files/M/A,P=Path/K,O=Overwrite/S,W=Width/K/N,
- C=Columns/K/N,D=Delimiter/K,V=Verbose/S
-
- Here's a closer description:
-
- Keyword | Default | Description
- --------------+---------------+------------------------------------------
- Files/M/A | none | Here you can specify as many files
- | | as you want, including normal Amiga
- | | wildcards.
- --------------+---------------+------------------------------------------
- P=Path/K | T: | Specify the output path (no wildcards)
- --------------+---------------+------------------------------------------
- O=Overwrite/S | off | If you select "Overwrite" (or short "O")
- | | it will write the file back on top of the
- | | original file, when it is done parsing.
- | | Note: "Overwrite" overrides the "Path"
- | | setting.
- --------------+---------------+------------------------------------------
- W=Width/K/N | 80 | Specify any width larger than 20.
- --------------+---------------+------------------------------------------
- C=Columns/K/N | not specified | If number of columns is specified, this
- | | overrides the width setting.
- --------------+---------------+------------------------------------------
- D=Delimiter/K | "|" | Specify the character you want to use
- | | as a delimiter. If no delimiter is
- | | desired, specify a delimiter of ""
- --------------+---------------+------------------------------------------
- V=Verbose/S | off | Makes output of progress.
- -------------------------------------------------------------------------
-
- So if I want to create a formated copy of my guide file for DOS I'll write:
-
- ADGFormat SC:ADGuides/DOS
-
- And now I have a formated copy of DOS in my "T:" drawer, which has a maximum
- width of 80 chars in the MAIN node.
-
- A bit more exotic:
-
- ADGFormat SC:ADGuides/D* SC:ADGuides/I* path RAM: Columns 4 Delimiter "*"
-
- will create a formatted copy of all files starting with "D" and "I" put them
- in RAM: with 4 columns and a delimiter "*".
-
- If I don't want an extra copy, but want to replace the original file, I'd write:
-
- ADGFormat SC:ADGuides/* overwrite
-
- Ofcourse you could use the shorthand for the above, for example:
-
- ADGFormat SC:ADGuides/D* P RAM: W 120 D "*"
-
- or even:
-
- ADGFormat SC:ADGuides/D* P=RAM: W=120 D="*" V
-
- In the above example, the program will output the progress, while parsing.
-
-
- 6. Todo
- -------
-
- If anybody uses this program (that is, if I get any feedback), I'll probably
- make some of the following things:
-
- * Adding the option of creating a backlink.
-
- * Adding the option to create a table of contents based upon the Main node
- in each document.
-
- * Adding an index to each file.
-
- * Making a global index file.
-
- * Localizing it.
-
- * Creating a MUI interface, for easy configuration and running.
-
- 7. History
- ----------
-
- Please see the file "ADGFormat.history"
-
- 8. About
- --------
-
- We're two university students (Anders Hybertz and Søren Berg Glasius) who like
- to program for fun - oftent together. We both studdy computer science and
- electronics at the University of Odense, Denmark.
-
- The program is MailWare, this means, that if you use the program on a regular
- basis, you must send the author an email or a postcard telling him so. Also if
- you just took a peek at the program, and didn't like it, please tell us why!
-
- If you have any suggestions or improvements, please also mail them to us.
-
- Also bugreports should be send to either one of us.
-
- You can reach us at the following addresses:
-
- Name: Anders Hybertz Søren Berg Glasius
- Address: Åsumvej 95 Bjørnemosevej 277
- 5240 Odense NØ 5260 Odense S
- Denmark Denmark
- Phone: +45 66 10 10 36 +45 65 91 21 69
- Internet: jeckyl@imada.ou.dk siera@imada.ou.dk
- FidoNet: 2:237/17.12 2:237/17.11
-
- We hope you like the program.....
-
- Søren.
-