Command line utilities in GLOSS
GLOSS contains a number of command-line scripts
in the <glossdir>/bin directory. These are all small scripts
copied or symlinked from <glossdir>/scripts/sh/ or <glossdir>/scripts/bat/.
Feel free to read them, use them or modify them for your own purposes.
The main script is gloss which runs the
GLOSS executable. This takes a complex set of options and
is described in detail elsewhere
but the simplest and usual mode of operation is
simply to run "gloss FILE.html.gloss" or
"gloss FILE.html.gloss", generating FILE.html
or FILE.xhtml respectively in the same directory.
Other scripts are provided, and their usual mode of operation include
- "gloss-validate FILE", run the GLOSS validator
on XML file FILE. This uses local copies of the DTDs where possible
and (when finished will) indicates the original source line numbers.
- "gloss-transform TRANS.xsl FILE1 FILE2", run the
GLOSS xslt transformation process using TRANS.xsl
to transform FILE1 to FILE2. A special feature is
that if the following conditions are met: FILE2 is omitted;
TRANS.xsl is called EXTA2EXTB.xsl (with a "2"); and FILE1 is
called NAME.EXTA then the output file will be taken to be NAME.EXTB.
- "gloss-xhtml2tex FILE1.xhtml", convert
FILE1.xhtml to FILE1.tex.
- "gloss-html2tex FILE1.html", convert
FILE1.html to FILE1.tex. (This requires that the
input file is valid XHTML.)
- "gloss-xhtml2html FILE1.xhtml", convert
FILE1.xhtml to FILE1.html.
- "gloss-copy PATH1/FILE1 PATH2/FILE2", a utility copy command:
copies all files listed in the file PATH1/list to PATH2/. The filenames
FILE1 FILE2 are silently ignored (this is a useful feature for some
OS's and script languages which omit the dirname command).
This page is copyright. Web page design and creation by
GLOSS.