Novellas with Groff movq.de · 116 points · 51 comments · HN thread TL;DR A progr...
HN Best 200 @best
Novellas with Groff movq.de · 116 points · 51 comments · HN thread
TL;DR A programmer describes how he wrote two unpublished novellas (about 15k and 40k words) typeset in groff with a tiny custom macro package, converting from Markdown-like source via a Perl script and writing in Vim with hard-wrapped text. He says he will not publish them and wrote the second in ten days.
- The first novella (~15k words, about 50 A5 pages) took over seven months; the second (~40k words, about 120 pages) took ten days.
- The custom groff macro package has only three macros (section header, normal paragraph with hanging indent, long empty space) and is built for a German book layout.
- Page numbers, footers and headers are implemented with groff traps, and the author explains how environments and the no-break request ' are used to position output.
- Groff renders a 120-page PDF in about 1.6 seconds on a 13.5-year-old PC, which he contrasts with slower modern software.
- He writes in a light Markdown subset converted by a Perl script, uses Guillemets and German hyphenation rules, and disables inter-sentence spacing as customary in German books.
- He says he does not intend to publish the stories and rejects suggestions to use LLMs.
Discussion The thread mostly digresses from the author's specific setup into the broader history and practice of typesetting fiction with troff, roff, and related tools. Commenters share their own pipelines (Markdown with Typst, Pandoc with LaTeX, HTML with print stylesheets, Emacs with Pandoc), recall old troff-era college papers and O'Reilly books, and joke about tooling procrastination. The mood is friendly, nostalgic and curious, with light teasing about how much time writers spend on their toolchains.
- Writers spend too long tweaking their tooling instead of writing (many): Several commenters warn that programmers turning to fiction often bikeshed pipelines, citing a quote from John MacFarlane that the time saved by his tools probably never repaid the time spent building them.
- Troff/groff is a legitimate and satisfying typesetting choice (many): Commenters recall using roff for papers, theses and books, including O'Reilly's Unix Text Processing, and say it is not out of place even though it is no longer fashionable for top-quality typesetting.
- Markdown or Typst is the practical choice for writing fiction (some): Some argue that Markdown suffices for most writers, and that Typst gives fast, good-looking PDF output when more control is needed.
- Custom markup or HTML-based workflows work well (some): Commenters describe their own markup languages and HTML-to-EPUB tools, while others note that writing HTML by hand is unpleasant and EPUB needs specific metadata structure.
- Writing routine and tools matter for famous novelists (a few): A thread notes that many successful authors (George R. R. Martin, Stephen King, Steinbeck, Nabokov, Neal Stephenson) have stuck to fixed routines or handwriting, and debates whether GRRM's output justifies his reputation.
Links from the comments
- Hugh Howey's self-written writing program, mentioned as an example of a custom writing environment
- Nils Holm's site, where he publishes ebooks typeset with groff
- Interview with Pandoc creator John MacFarlane, source of the quote about time spent on tools
- Recreated source repository for the free Unix Text Processing book written with troff
- A custom markup language one commenter built as an alternative to Markdown and LaTeX
#groff #typesetting #fictionWriting #vim #troff #writingTools