13. Hyphenation

Using hyphenation, words can be broken at an appropriate hyphenation point provided It requires that a hyphenation dictionary for the language of the text being broken is available.

Setting the language of your document can be accomplished by specifying it in the lang attribute of any element. The language will be inherited to any child nodes of that element. If you specify it for the root element of your document, it will be in effect for the entire document.

Example: setting the language for the entire document.

<html lang="en">
...
</html>

If a hyphenation dictionary is available for the text being broken, you can use the hyphens property to determine whether PDFreactor is allowed to break text within words.

Example: enabling hyphenation in a section of the document.

.hyphenatedsection { hyphens: auto; }

Furthermore, you can individually specify a number of minimum letters before or after which text can be broken within a word.

hyphenate-before: 4;
hyphenate-after: 2;