* DOM (Document Maintainer) V0.00: alpha release
@ 1996-04-13 4:00 Karel Kubat
0 siblings, 0 replies; only message in thread
From: Karel Kubat @ 1996-04-13 4:00 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
===============================================================================
D O M
Karel Kubat (karel@icce.rug.nl)
===============================================================================
Dom (DOcument Maintainer) is a package that consists of programs, some shell
scripts, and auxiliary "lib" files for one of the programs. The whole purpose
of the package is to provide a simple-to-use and extensible document language,
that can be used to convert documents in the DOM format to a variety of other
formats. In this purpose, DOM somewhat resembles generic markup languages
(e.g. SGML), but:
- Dom is easier to use. Well I find so.
- Dom supports inclusion of files.
- Dom commands and text can be mixed in one file. No separate inaccessible
definition files.
- Dom doesn't insist on weird tags.
Currently the package supports conversions to LaTeX and to HTML. Other
conversions are of course possible, but these are the two formats that I use
and why I wrote DOM in the first place.
If you want to obtain DOM and try it out, ftp to
ftp://ftp.icce.rug.nl/pub/unix/ and look for a file dom-X.YY.tar.gz, with X.YY
being a version number (0.00 is of course the first). Unpack it in a "sources"
directory and type "make htmldoc" or "make latexdoc" and see for yourself...
DOM is currently in alpha-state, that means that it may not be very complete
(but I'm working on it), that there may be bugs in it (not that I know of),
and that new versions may arrive quickly. Yes, I am looking for
alpha-testers! If you're interested, get DOM and mail me what you think. For
now, I'm not putting it up on the `standard' ftp sites, but keeping it locally
until I feel that a stable version has been created.
Just for fun, here's a piece of a DOM file. Not that you should carefully read
it, it's just to give you an idea of the DOM language.
- ------------------------------------------------------------------------------
The tt(dom) program is reads one or more input files, interprets the commands
therein, and writes one output file. The program is started as:
center(
tt(dom) em(flags) em(inputfile) em([inputfile...])
)
In this specification, the flags are optional and may be:
itemize(
it() tt(-D) em(name): Defines em(name) as a symbol. This flag is similar
to the tt(DEFINESYMBOL) statement which may appear in the text. The
purpose of defining symbols is described later.
it() tt(-I) em(directory): This defines the system-wide include directory
where tt(dom) searches for its input files when they cannot be located
by their bare name. E.g. a statement to include a given file:
verb(INCLUDEFILE(latex))
will search for the file tt(latex) in the current directory, and when that
fails, in the system-wide include directory. The system-wide include
directory is typically the place where the maintainer of a system stores
macro-files for DOM. This searching process applies to files that are
included inside a document but also applies to filenames on the command
line when invoking the tt(dom) program.
The name of the included file (tt(latex) in the above example) is the
bare name, the tt(dom) program will supply a default extension if
necessary.
The tt(-I) flag overrules DOM's built-in name for the system-wide include
directory. The built-in name is defined when compiling DOM, and is usually
tt(/usr/local/lib/dom).
it() tt(-k): This flag causes DOM to keep the intermediate parsing files,
instead of removing them. The intermediate files are usually located in
the directory tt(/tmp) and named something like tt(dom1254.4), where the
numbers indicate the process number of the DOM run (1254) and the ordinal
number of the parsing run (4). Using this flag is usually only good for
debugging purposes.
it() tt(-o) em(file): This option causes DOM to write its output to em(
file). By default, the output goes to the standard output stream. E.g.,
you can use the tt(dom) program to read a file tt(input) and to write to
tt(output) with the following two commands:
verb(\
dom input > output
dom -ooutput input)
it() tt(-p) em(maxpass): This flag causes DOM to abort when the number of
parsing cycles exceeds em(maxpass), which is usually 20. Exceeding this
number usually means a circular definition somewhere in the document. This
is the case when, e.g., a macro tt(a) expands to tt(b), and tt(b) expands
again to tt(a).
it() tt(-t): This flag enables tracing: while parsing, DOM writes its
output to the standard error stream. As is the case with the tt(-k) flag,
this option is for debugging purposes.
it() tt(-v): This flag increases DOM's `verbosity level' and may occur
more than once. The presence of one tt(-v) causes DOM to show which files
are parsed; four tt(-v)'s show the inner workings of DOM's lexical
analyzer.
it() tt(-w): The presence of this flag caused DOM to warn when, e.g.,
symbols are redefined.
)
The em(inputfile) elements on the command line specify which files DOM should
process. All names are supplied with an extension+footnote(this extension is
defined in the installation of DOM and is usually .dm). The files are then
searched for `as-is', or in the system-wide include directory.
Note that all filenames on the command line are input files. To
define an output file, either use the tt(-o) flag or redirect the output.
- ------------------------------------------------------------------------------
That's all for now. Hope that I have tickled your curiosity..
Karel.
- --
Karel Kubat (karel@icce.rug.nl, karel@bambix.icce.rug.nl).
>From the duffynitions collection:
Marriage: A process whereby love ripens into vengeance.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i
iQCVAwUBMW/EhoQRll5MupLRAQF2BwP/aPQUxeQkyabeXrv8BMQgvC2BbDetrO6/
Pxbtc2DFtG6X1Y3cI+uiQ8+voCdhozM/Z+i+hlue0Y+QK+YT8wlE7mSH0EG93dSc
/+XkC35acuP73ZM35vsgxp4Vk9n1IIMPVZ2vDqO0Thpnl/m+RyVCJiuS6ZGb2t9q
0LuQ5WoQpak=
=PouI
-----END PGP SIGNATURE-----
--
This article has been digitally signed by the moderator, using PGP.
Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature.
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-04-13 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-13 4:00 DOM (Document Maintainer) V0.00: alpha release Karel Kubat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox