TROFF2NULL(1)
π NAME π
troff2null β convert troff documents to troffcvt internal format
okay so real quick, before anything else: this is a page from your General Commands Manual, section 1, and the star of the show is a little program called troff2null. she takes your troff and turns it into something troffcvt can vibe with. bestie behavior honestly π«Ά
β¨ SYNTAX β¨
troff2null [ options ] file ... ]
yes, that stray ] at the end is literally how it's written. don't touch it. she's perfect. π
πΈ DESCRIPTION πΈ
so here's the tea π: troff2null converts files written in the troff input language and converts them to the troffcvt internal representation. the way she does this is by running your input files through troffcvt first, and then through tc2null. two steps, one slay, that's the pipeline.
troff2null understands the usual troffcvt options β you know, the standard ones, she's fluent. but she also understands these extra ones below, and these are the ones you actually came here for:
-Dβ Enable debugging output. she's gonna be loud about what she's doing, and honestly? good for her.-Eβ Causetc2nullto echo token information tostderras tokens are read fromtroffcvt. full transparency, tokens just narrating themselves in real time.-nβ No execution. Just show the commands thattroff2nullwould execute to process the document. a dress rehearsal, not the actual performance β¨-pβ Don't run the postprocessor (tc2null). just... skip that part entirely. she goes halfway and stops.-Ttitle β Specify a title for the document. This can be used for documents that do not contain any recognizable title. If the document does contain a title, it is overridden. so like, you can force a title onto a doc that has none, but heads up: if the doc already has one, yours wins and the original gets absolutely steamrolled. π
π SEE ALSO π
the friend group. go say hi. π
π«£ WHO-TO-BLAME π«£
Paul DuBois, dubois@primate.wisc.edu.
if anything goes weird, that's the icon to contact. not me. π
π BUGS π
okay so this one's important, no cap. troff2null uses a set of special macros that tell troffcvt how to generate tc2null-specific output that tc2null uses to recognize NULL structural elements.
β οΈ These macros do not work in compatibility mode. periodt. if you're in compatibility mode, they're just not gonna do the thing, and you will be sad. π
kisses bestie, that's the whole page β this was TROFF2NULL(1) from your General Commands Manual, section 1, brought to you with love and zero regrets π
πβ¨
π¦ where this page comes from
- debian bookworm: troffcvt 1.04+repack1-1
- ubuntu noble: troffcvt 1.04+repack1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms