Guide

German typography

brevier hyphenates German and English text and keeps numbers and their units on one line. You write nothing for it.

On this page

Hyphenation

Before the page is laid out, brevier marks the places where a word may break. It reads the language from the lang attribute of the text. Text with no lang counts as German.

<html lang="de">

German compound words break between their parts first. So Versicherungs-bedingungen breaks at the joint, not in the middle of a part. English text uses English rules.

brevier turns off the engine's own hyphenation, so a word can only break where brevier allowed it.

Non-breaking spaces

Some pairs must never be split across two lines. brevier puts a non-breaking space between them:

Case Example
Section mark and number § 5, §§ 10
Amount and euro sign 1.234,50 €
Abbreviation z. B.
Page reference S. 3
IBAN groups DE89 3704 0044 0532 0130 00
Phone numbers +49 711 1234567, 0711 1234567

brevier leaves code, links and e-mail addresses alone.

To see where brevier put soft hyphens, render with --debug and open the .debug.html file. Each allowed break shows as &shy;.