Document Translation

InfoPrism provides the following translators:
sgml2html
Generates HTML documents from SGML source files or scripts.
sgml2texi
Generates Texinfo documents from SGML source files or scripts. The output may be passed to makeinfo to produce GNU Info files.
sgml2plain
Generates plain text documents from SGML source files or scripts.
sgml2latex
Generates LaTeX documents from SGML source files or scripts.
The document to be translated can be passed on the command line, or in case of SGML scripts, provided by the --script option:
% sgml2html hello.sgml
% sgml2html --script=hello.tcl

Common Options

-o FILE, --output-file FILE
Use FILE as output file.
-f FILE, --rc-file FILE
Read configuration file FILE .
-l FILE, --log-file FILE
Use FILE as log file.
-h, --help
Print usage information and exit.

SGML Options

--catalog FILE
Use FILE as SGML catalog.
--dcl-file FILE
Use FILE as SGML declaration.
-s COMMAND
Use COMMAND as SGML parser.

Options for the SGML-to-HTML translator

--body
Discard header and footer.

Debugging InfoPrism

--dump
Prints internal representation of the SGML document after generating it.
-d FLAGS], --debug FLAGS]
Enable more verbose logging for several events, separated by semicolons:
feature result
Results of feature scripts are logged.
nodetrans result
Translation results for document nodes are logged.

Configuration

All translators read the following configuration files:
  1. The default configuration file
  2. The file .infimsrc in the user's home directory if it exists.
  3. The configuration file given by the --rcfile command line option.
Each instruction in the configuration file consists of a list of keys and the value. Enclose the value into braces if it contains whitespace:
# Sample configuration file for InfoPrism

# Modifies the extension for HTML output
ext html htm
# Modifies the separator for navigation bars
html navbarsep " * "

Common Configuration Options

fill_column
Column beyond which automatic line-wrapping should happen. Default is 76.

HTML Translator

Configuration options for sgml2html start with html as first key.
navbarsep
Modifies navigation bar separator. Default is " - ".

Texinfo Translator

Configuration options for sgml2texi start with texinfo as first key.
indexsubsep
Modifies separator for subindices. Default is ", ".

Plain Translator

Configuration options for sgml2plain start with plain as first key.
secchars
Describes characters used to compose the underline from.
secstyle
Specifies other style for section headings.
caps
Capitalize titles.
The defaults are:
	plain secchars **=-.

Index


Written by Stefan Hornburg <racke@gundel.han.de>
Translated from translate.tcl by Info Prism's sgml2html v0.0.6
Last modified 21. December 1998