SGMLSPL(1)
π SGMLSPL π
okay so bestie, welcome to the sgmlspl manual page β it lives in section 1 of the manual (that's the "user commands" girlies, iykyk), and it's here to turn your SGML docs into literally anything else. β¨
πΈ NAME πΈ
sgmlspl β a simple post-processor for onsgmls/nsgmls. yes that's the whole vibe. simple. humble. iconic. π
π SYNOPSIS π
sgmlspl spec file
β¨ DESCRIPTION β¨
so sgmlspl is a sample application that converts SGML documents into other formats, and the way it does that is by you handing it a specification file that says exactly how to handle each of these:
- every element
- every external data entity
- every subdocument entity
- every CDATA string
- every record end
- every SDATA string
- every processing instruction
like, no crumbs left. every single one gets a rule. π
π¦ how to actually use it
to use sgmlspl, you prepare a specification file that contains regular perl5 code. yes bestie, it's just perl. that's the whole trick. π§
so say your SGML document is named doc.sgml, your sgmlspl specification file is named spec.pl, and the new file you want is named doc.latex. then you run this in a Unix shell to convert the SGML document:
onsgmls doc.sgml | sgmlspl spec.pl > doc.latex
look at that pipe. look at that redirect. it's giving plumbing. it's giving art. π
and here's the cute part: sgmlspl will pass any additional arguments on to the specification file, which can then process them in the regular perl5 fashion. so whatever extra stuff you throw at it, your spec file gets to deal with it. π
π₯ SEE ALSO π₯
/usr/share/doc/sgmls-doc/sgmlspl/sgmlspl.htmlβ thesgmlspldocumentation in HTML format π/usr/share/doc/sgmls-doc/SGMLSpm/sgmls.htmlβ the SGMLS documentation in HTML format πonsgmls(1)β the other half of the pipeline, the one doing the feeding π«Ά
π AUTHOR π
Ardo van Rangelrooij <ardo@debian.org> β absolute main character, wrote the whole thing, we stan. π
okay that's the page!! this was the SGMLSPL manual, dated October 26, 1999 β yes she's a vintage queen and she still slays β and you've reached the very end, so go convert something gorgeous. bye bestie!! πβ¨π
π¦ where this page comes from
- debian bookworm: sgmlspl 1.03ii-38 Β· GPL-2.0-or-later
- debian trixie: sgmlspl 1.03ii-38 Β· GPL-2.0-or-later
- ubuntu jammy: sgmlspl 1.03ii-36 Β· GPL-2.0-or-later
- ubuntu noble: sgmlspl 1.03ii-38 Β· GPL-2.0-or-later
- ubuntu resolute: sgmlspl 1.03ii-38 Β· GPL-2.0-or-later
- ubuntu stonking: sgmlspl 1.03ii-38 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms