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 with groff -man for man pages. so meta, so iconic 🫢
  • --filter, -f β€” removes backspace-overstrikes from the intermediate form generated by groff(1). bye bye ugly artifacts πŸ’€
  • --pass, -P β€” the argument of the pass option is added to the command-line options handed to groff(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 is 3. if 0 (zero) is specified, the result have many continuous blank lines. so like… choose your chaos πŸ”₯
  • file β€” the SGML source file, named either file or file.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