close-sidepanel close-sidepanel
Fontfabric™ Logo
Fontfabric™ -

Hyphenation in Typography

We often have a lot to say, but a line can only hold so much – that’s when hyphens come to play. Hyphenation sits at both ends of the spectrum – it’s the act of using a hyphen character to either break single words over two lines or connect multiple words. And when done well, […]

Hyphenation

We often have a lot to say, but a line can only hold so much – that’s when hyphens come to play. Hyphenation sits at both ends of the spectrum – it’s the act of using a hyphen character to either break single words over two lines or connect multiple words. And when done well, it’s invisible. 

What is Hyphenation

The word hyphen comes from the Greek huphen which means “together, in one”. Hyphenation is the practice of breaking a word across two lines at a syllable boundary, marked by a hyphen at the end of the first line. It helps manage line endings and it’s a way of preventing ragged edges and awkward gaps that appear when long words don’t fit neatly within a column. 

Interestingly, in ancient Greek manuscripts, the hyphen had the opposite function. It was written below two words to signal they should be read as one. As time went on, the function changed and by the time Gutenberg and the moveable type appeared, the hyphen had migrated to the end of a line to show the reader that the word continues over the next line.

Early typesetters handled hyphenation manually, breaking words by eye and by the rhythms of their own spoken language. The algorithmic breakthrough came in 1983, when Frank Liang, working under Donald Knuth at Stanford, developed the hyphenation algorithm used in TeX. Today, it’s still the basis for most typographic software. Liang’s approach uses a dictionary of hyphenation patterns for each language, assigning numeric priority values to potential break points throughout a word. The algorithm identifies the highest-scoring valid breaks, producing results that match what a skilled human compositor would choose. Adobe InDesign, LibreOffice, and most modern browsers all use variants of this approach, known as the Knuth-Liang algorithm or the Knuth-Plass line-breaking system.

How Hyphenation Works

There’re a few ways you can approach hyphenation.

Manual hyphenation

A designer or an editor can insert a discretionary hyphen – a marker that tells the layout engine where a word should break. If the text reflows and the word fits without breaking, the hyphen disappears. This is the most reliable method when precision matters, and it is the one used for proper nouns, technical terms, or any word the algorithm might mishandle.

Algorithmic hyphenation

Automatic hyphenation relies on two sources of knowledge working together. The first is a hyphenation dictionary: a language-specific database of words with their legal break points. The second is a set of pattern rules that generalize from the dictionary – it applies probabilistic break-point logic to words not found in the dictionary at all.

The algorithm evaluates every potential break point in a word and assigns it a score. Odd-numbered scores indicate valid breaks; even-numbered scores suppress them. The highest-scoring valid break is used. The system operates language by language: English hyphenation rules differ meaningfully from German, French, or Polish, and software must discern languages and know which one is active in order to hyphenate correctly.

The locale issue

Automatic hyphenation fails when the language locale is not set correctly. A document with English text but a German locale set will break words by German syllabic logic, resulting in  weird and unreadable texts. 

Types of Hyphens

Not all hyphens are built the same.

The word typography in Singel broken across two lines between the o and the g, with the hyphen closing the first line picked out in pink.

Hard hyphen

A fixed, always-visible hyphen used in compound words and phrases (well-known, state-of-the-art). It is part of the word’s spelling, not a line-breaking device. Never suppressed by layout software.

Soft hyphen (discretionary hyphen)

An invisible character inserted into a word to indicate a preferred break point. It appears as a hyphen only when the line actually breaks there. In HTML, coded as `­`; in InDesign, inserted with Command/Ctrl + Shift + hyphen.

Non-breaking hyphen

Used in hyphenated phrases that must not be separated across lines – phone numbers, model names, certain proper nouns. Prevents line breaks at the hyphen position entirely.

En dash

Longer than a hyphen, used for ranges (pages 12–24) and some compound constructions. Not a hyphenation device, but frequently confused with one.

The en in Mozer: a pink rectangle half the width of the full em square, which is shown dashed in grey alongside it, with a blue en dash inside and the caption 1 en equals half an em, 210px.

Em dash

The longest line (the width of an m). It denotes an abrupt break in thought, an interruption, or replaces parentheses for dramatic emphasis.

The em in Mozer: a pink square exactly as tall as it is wide with a short blue em dash centred inside it, measured off by a pink rule and captioned 1 em equals the type size, 420px.

Hyphenation and Justification

A justified text is one where both left and right margins align. That means the layout engine must distribute leftover space across each line. Without hyphenation, justification produces a lot of gaps that snake vertically through a paragraph. Hyphenation reduces the amount of space needing distribution by giving long words an option to break, producing tighter, more even spacing.

In a left-aligned text, justification is not a concern, but hyphenation still improves the texture of the rag. An un-hyphenated ragged column can develop a chaotic silhouette – very short lines followed by very long ones, an uneven rhythm that distracts the eye. Controlled hyphenation smooths the rag without eliminating it.

Common Mistakes in Hyphenation

Here’s what to avoid in hyphenation.

Using a wrong locale set

This might be the single most common source of bad algorithmic hyphenation. Always verify the language setting for each text frame.

Over-hyphenating narrow columns

The narrower the column, the more frequently the algorithm will trigger, sometimes hyphenating in every line. Setting a higher minimum word length, or manually limiting break points, avoids a column that reads like a telegram.

Hyphenating headlines

A hyphen in a headline breaks the visual and semantic unity of the phrase. Rewrite or resize whenever possible.

Forgetting to turn off hyphenation in translations

When a document is translated, all manually set discretionary hyphens remain in place – now inserted at the wrong positions in a different language’s words. Clear discretionary hyphens before translating.

What is the principle of hyphenation?

Hyphenation is the practice of breaking a word across two lines at a syllable boundary, marked by a hyphen at the end of the first line. It helps manage line endings and it’s a way of preventing ragged edges and awkward gaps that appear when long words don’t fit neatly within a column. 

How many types of hyphens are there?

The hard hyphen is always visible, used in compound words like well-known – it is part of the word’s spelling. The soft hyphen (a discretionary hyphen) is invisible until a line break is needed, then appears at the designer’s chosen break point. The non-breaking hyphen prevents a hyphenated phrase from splitting across lines at all. The en dash handles ranges and certain compound constructions. The em dash marks an abrupt break in thought or replaces parentheses for emphasis.

Radoslav
About the author
Radoslav Valkov

Radoslav is a Visual & Motion Designer here at Fontfabric. With a background in Design Engineering, a lifelong passion for painting, and a spark of curiosity, he writes about typography fundamentals, design trends, branding, the finer details of typography craft, and more.

read more
About the author
Radoslav Valkov

Radoslav is a Visual & Motion Designer here at Fontfabric. With a background in Design Engineering, a lifelong passion for painting, and a spark of curiosity, he writes about typography fundamentals, design trends, branding, the finer details of typography craft, and more.