STX

Roff

👸 lup:

typesetting is fun.

ranking of roff implementations by fun:

  1. plan9’s troff.
  2. mandoc1.
  3. groff.

plan9’s troff is more simplified.

one thing that’s missing from it is the translating quotes from:

	`word'

to:

	β€˜word’

you can implement this yourself:

.tr `β€˜'’     \" single can be simply translated
.de DQ       \" double should wrap arg.
\&β€œ\\$1”\\$2
..

  1. mandoc is also a set of macros for roff, but it’s also a program that typesets mandoc macros. ↩︎