SGMLTOOLS(1)
π NAME π
sgmltools β SGML-tools translators to other markup languages. This page is SGMLTOOLS(1), and yes bestie, we're gonna make it make sense β¨.
π SYNOPSIS π
sgml2xxx [generic-option...] [backend-options...] file[.sgml]
πΈ DESCRIPTION πΈ
Okay so the sgmltools suite is literally a collection of text formatters that understands a small family of SGML-based document-structure markup languages. Each formatter (or "back-end") renders the common markup languages into a whole bunch of output formats, including HTML, TeX, DVI, PostScript, plain text, and groff(1) source in manual-page format. Iconic. The SGML-tools suite is useful for authoring documents which must be distributed in a variety of formats including plain text, hypertext, and high-quality typeset books. It's giving "write once, ship everywhere" π
.
The markup language(s) accepted by these formatters is described in the SGML-Tools User's Guide. They are variants of an SGML document type definition originally designed by Matt Welsh for Linux documentation. No cap.
β¨ OPTIONS β¨
Most command-line options are accepted by all back-ends. Some back-ends have additional specific options to control rendering to their particular output format. Here are the common options, bestie:
--papersize=size,-pβ sets the paper size. Default isa4(European297x210mmpaper). You may also specifylettersize.--language=lang,-lβ specifies the language of the document (this may change which style files are used for formatting by a back end). The default language is English. Run an SGML-tools command without arguments to see the list of valid language codes.--charset=chars,-cβ specifies the output character encoding. Defaults toascii, selecting the ASCII set; you may specifylatinto specify the ISO 8859-1 (Latin-1) character set.--style=file,-Sβ includes an auxiliary DTD (Document Type Definition) from$LINUXDOCLIB/dtd.--tabsize=n,-tβ sets the tab spacing assumed for generating the output document. The default tab spacing is8.--debug,-dβ don't delete intermediate files (such as.TeXfiles generated on the way to a.dvi, or.manfiles deleted on the way to plain text).--define,-Dβ passes attribute/value pairs to be matched against"if"and"unless"conditionals. See the User's Guide for extended discussion of this feature.--include,-iβ passes a-ioption tonsgmls(1). This may be used for conditional inclusion. See thensgmls(1)manual page for details.--pass,-Pβ passes an option string to the back end. The exact semantics of this option are dependent on the back end and should be explained in the individual manual pages for each.fileβ the SGML source file, named eitherfileorfile.sgml.
Running a back-end with no arguments will cause it to list all its options. The available back ends include:
sgml2htmlβ translate to HTMLsgml2infoβ translate to GNU infosgml2lyxβ translate to Lyx macrossgml2latexβ translate to LaTeX 2esgml2rtfβ translate to Microsoft Rich Text Formatsgml2txtβ translate to plain text or Unix manual-page markup.
There is also a tool sgmlcheck(1) available for checking the SGML-Tools syntax of document sources without actually generating a translated version. Obsessed for real π«Ά.
π FILES π
Many files and executables in $LINUXDOCLIB and $LINUXDOCBIN are used. That's the whole vibe, fr.
π BUGS π
None known. A rare slay.
π MAINTAINER π
Cees de Groot <cg@pobox.com>.
π¦ SEE ALSO π¦
sgml2html(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgml2txt(1), sgmlcheck(1).
xoxo, your SGML bestie π β from the General Commands Manual source, version SGMLTOOLS(1), dated 10 Nov 1997 π
π¦ where this page comes from
- opensuse-leap 16.0: sgmltool 1.0.9-160000.2.2 Β· SUSE-Public-Domain
- opensuse-leap 16.0: sgmltool 1.0.9-160000.2.2 Β· SUSE-Public-Domain
- opensuse-leap 16.0: sgmltool 1.0.9-160000.2.2 Β· SUSE-Public-Domain
- opensuse-leap 16.0: sgmltool 1.0.9-160000.2.2 Β· SUSE-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms