sgml2txt(1)

sgml2txt1

Create plain text output from a linuxdoc dtd sgml source file

Usage

sgml2txt [generic-option ...] [--manpage] [--filter] [--blanks=n] file [.sgml]

Overview

sgml2txt is an old and obsoleted form of the text converter command of LinuxDoc-Tools (its name may be misleading, as it is not a tool for any SGML DTD, only supports the SGML LinuxDoc DTD). It is recommended to switch the new form linuxdoc -B text now. It converts a LinuxDoc DTD SGML source file to ASCII, ISO-8859-1, or EUC-JP output. Output will appear in file.txt where file is the name of the SGML source file.

The attribute/value pair "output=txt" is set for conditionals.

Options

sgml2txt accepts all the generic options described in linuxdoc(1), and the following specific options:

--manpage, -m

Outputs a groff source file, suitable for formatting with groff -man for man pages

--filter, -f

Remove backspace-overstrikes from the intermediate form generated by groff(1).

--pass, -P

The argument of the pass option is added to the command-line options handed to groff(1).

--blanks=n, -b

Set the limit of continuous blank lines for generating the output document. The default limit is 3. If 0 (zero) is specified, the result have many continuous blank lines.

file

The SGML source file, named either file or file.sgml

Files

Many files and executables in /usr/share/linuxdoc-tools are used.

Releases

19 releases since Debian 1.1 (Buzz); the text changed 6 times.

  1. 1.1–1.3
  2. 2.0
  3. 2.1
  4. 2.2
  5. 3.0–10
  6. 11–12
  7. 13–Arch

--blanks since Debian 2.2 (Potato); --filter since Debian 2.0 (Hamm); --manpage since Debian 2.1 (Slink); --pass since Debian 2.0 (Hamm); -P since Debian 2.0 (Hamm); -b since Debian 2.2 (Potato); -m since Debian 2.0 (Hamm).

--man until Debian 2.0 (Hamm); -l until Debian 1.3 (Bo); -man until Debian 1.3 (Bo); -style until Debian 1.3 (Bo); -t until Debian 1.3 (Bo).

Bugs

None known.

Author

Originally written by Greg Hankins <[email protected]>, based on scripts by Tom Gordon and Alexander Horz, and later rewritten by Cees de Groot <[email protected]> for SGML-Tools (v1). Previously maintained by Taketoshi Sano <[email protected]> for Linuxdoc-Tools. Currently maintained by Agustin Martin <agustin6martin AT gmail com>.

From linuxdoc-tools 0.9.86-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.