SGML2HTML(1)
π SGML2HTML(1) β the glow-up page π
okay bestie, gather round π«Ά this is the manual page for sgml2html, living in section 1 of the general commands manual. Let's get into it β¨
β¨ NAME β¨
sgml2html β the girl whose whole job is creating HTML output from a LinuxDoc DTD SGML source file π
πΈ SYNOPSIS πΈ
sgml2html [generic-option...] [--split 0|1|2 ] [--toc 0|1|2 ]
[--dosnames] [--imagebuttons] file[.sgml]
π¦ DESCRIPTION π¦
So sgml2html is, and I say this with love, an old and obsoleted form of the html converter command of LinuxDoc-Tools. Like, the name is genuinely misleading β it is not a tool for any SGML DTD, it only supports the SGML LinuxDoc DTD. It's giving "the name oversells it" π
The recommended move? Switch to the new form linuxdoc -B html right now, bestie. Periodt.
What it does do: it converts a LinuxDoc DTD SGML source file to HTML output. Output shows up in the top level file file.html and file-n.html for each section β where file is the name of the SGML source file and n is the section name. Cute, structured, we love a naming convention π
Also, the attribute/value pair output=html is set for conditionals. Slay.
π OPTIONS π
sgml2html accepts all the generic options described in linuxdoc(1) (go read that one, iykyk), plus these specific ones below π
--split,-sβ what level to split source documents at.0= don't split,1= split by major sections,2= split by subsections. Pick your fighter π--toc,-Tβ what level to generate toc at.0= don't generate toc at all,1= includes major sections(/chapters/parts),2= includes subsections.
--dosnames,-hβ use.htmrather than.htmlas the extension of--imagebuttons,-Iβ use thenext,previous, andcontentsarrow image icons included in/usr/share/linuxdoc-toolsas navigation buttons. Aesthetic navigation?? Obsessed π₯--footer,-Fβ use the specified file as the footer in each resulted html file. Default footer is just plain
</BODY>\n </HTML>\n
--header,-Hβ use the specified file as the top part of the header in each resulted html file. Note that this is not the full part of the header β i.e., the title and the links (next, previous, contents) in the default header are retained. Default is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n
<HTML>\n <HEAD>\n
fileβ the SGML source file, named eitherfileorfile.sgml. Either name works, she's flexible like that π§
π FILES π
Many files and executables in /usr/share/linuxdoc-tools and /usr/bin are used. That's the whole vibe. Many. Files. π
π BUGS π
None known. Not a single one. Flawless behaviour, allegedly. π
π AUTHOR π
Originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, and Cees de Groot <cg@cdegroot.com> for SGML-Tools (v1), and maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools. Currently maintained by Agustin Martin <agustin6martin AT gmail com>. The lineage?? Immaculate. Respect the elders π«Ά
π SEE ALSO π
linuxdoc(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgml2txt(1), sgmlcheck(1) β the whole friendship group, go say hi π
And that's the page, bestie!! This version is from SGML2HTML(1) in the General Commands Manual, dated 2025-04-06 β¨ stay slaying, and remember: switch to linuxdoc -B html π
ππ
π¦ 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