# Every line on a typeset page is the result of hidden algorithms

Original title: A page looks innocent: the algorithms behind a typeset page

> Hacker News story 50140768 · language: en · submitted 2026-10-18
> Web version: https://zeli.app/story/50140768
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 18 · by [patrickg](<https://news.ycombinator.com/user?id=patrickg>) · 💬 2
[original](<https://news.speedata.de/2026/10/18/anatomy-of-a-page/>) · [HN discussion](<https://news.ycombinator.com/item?id=50140768>)

## Summary

A well-set page looks effortless, but every line break, hyphen, and glyph position is the output of algorithms invented decades ago. The author walks through the layers of typesetting — page building with footnotes and floats, Knuth–Plass paragraph breaking, Liang's hyphenation patterns, and OpenType shaping via HarfBuzz — comparing how the speedata Publisher and the new Go library boxes and glue handle each level.

## Key quote

> Footnotes look like the easiest thing on a page, but they are among the hardest.

---

## Cite

- Page: https://zeli.app/story/50140768
- Date: 2026-10-18
- Source: news.speedata.de (https://news.speedata.de/2026/10/18/anatomy-of-a-page/)
- Hacker News: https://news.ycombinator.com/item?id=50140768

## Other languages

- zh: https://zeli.app/zh/story/50140768 · markdown: https://zeli.app/zh/story/50140768.md
- ja: https://zeli.app/ja/story/50140768 · markdown: https://zeli.app/ja/story/50140768.md
- ko: https://zeli.app/ko/story/50140768 · markdown: https://zeli.app/ko/story/50140768.md
- de: https://zeli.app/de/story/50140768 · markdown: https://zeli.app/de/story/50140768.md
- es: https://zeli.app/es/story/50140768 · markdown: https://zeli.app/es/story/50140768.md
- ru: https://zeli.app/ru/story/50140768 · markdown: https://zeli.app/ru/story/50140768.md
