SGML2TXT(1)
π SGML2TXT β the manual page, bestie edition π
okay so this is sgml2txt from the General Commands Manual section (section 1, the classic), and we're gonna go through the whole thing together. grab a strawberry π
β¨ NAME β¨
sgml2txt β create plain text output from a LinuxDoc DTD SGML source file π¦
πΈ SYNOPSIS πΈ
sgml2txt [generic-option...] [--manpage] [--filter] [--blanks=n]
file[.sgml]
π DESCRIPTION π
okay so sgml2txt is, and I need you to sit down for this, an old and obsoleted form of the text converter command from LinuxDoc-Tools. like, it's the grandma of the command. and the name is lowkey misleading β it is not a tool for any SGML DTD, it only supports the SGML LinuxDoc DTD. no cap.
the glow-up is available though: it is recommended to switch the new form linuxdoc -B text now. periodt. β¨
what it does: it converts a LinuxDoc DTD SGML source file to ASCII, ISO-8859-1, or EUC-JP output. and the output will appear in file.txt where file is the name of the SGML source file. it's giving "here's your text file, you're welcome" π
also, the attribute/value pair "output=txt" is set for conditionals. iykyk.
β¨ OPTIONS β¨
sgml2txt accepts all the generic options described in linuxdoc(1), plus these specific ones, bestie π
--manpage,-mβ outputs a groff source file, suitable for formatting withgroff -manfor man pages. so meta, so iconic π«Ά--filter,-fβ removes backspace-overstrikes from the intermediate form generated bygroff(1). bye bye ugly artifacts π--pass,-Pβ the argument of the pass option is added to the command-line options handed togroff(1). it's giving "hand it off, i trust you" π--blanks=n,-bβ set the limit of continuous blank lines for generating the output document. the default limit is3. if0(zero) is specified, the result have many continuous blank lines. so likeβ¦ choose your chaos π₯fileβ the SGML source file, named eitherfileorfile.sgmlπ¦
π FILES π
many files and executables in /usr/share/linuxdoc-tools are used. yes, MANY. they're all chilling in there π
π BUGS π
None known.
that's it. that's the whole section. she's flawless, apparently. not me being suspicious but okay πβ¨
π AUTHOR π
- Originally written by Greg Hankins
<greg.hankins@cc.gatech.edu>, based on scripts by Tom Gordon and Alexander Horz π«Ά - and later rewritten by Cees de Groot
<cg@cdegroot.com>for SGML-Tools (v1) π - previously maintained by Taketoshi Sano
<sano@debian.org>for Linuxdoc-Tools π - currently maintained by Agustin Martin
<agustin6martin AT gmail com>β
legends, all of them. the way that this command has a whole lineage ππ
π SEE ALSO π
linuxdoc(1), sgml2html(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgmlcheck(1) β the whole friend group, go say hi π
β¨
ok that's the whole page, no skips, no summaries, every single detail accounted for. you're so welcome π«Ά
and that's a wrap on this lil page β this version is dated 2025-04-06, and it's the SGML2TXT(1) page from the General Commands Manual. slay, bye bestie! πβ¨ππ¦πΈ
π¦ where this page comes from
- arch rolling: linuxdoc-tools 0.9.86-1 Β· GPL
- debian trixie: linuxdoc-tools 0.9.86-1 Β· PD-SGMLUG
- ubuntu questing: linuxdoc-tools 0.9.86-1
- ubuntu resolute: linuxdoc-tools 0.9.86-1build1 Β· PD-SGMLUG
- ubuntu stonking: linuxdoc-tools 0.9.86-1build1 Β· PD-SGMLUG
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms