We made some years ago a Delphi unit for hyphenation of text.
Such an unit, together with our SynPdf library for example, could be useful in your application. So we released the source!
What it hyphenation?
The hyphen ( ‐ ) is a punctuation mark used to join words and to separate syllables of a single word. It is often confused with dashes ( –, —, ― ), which are longer and have different uses, and with the minus sign ( − ) which is also longer. The use of hyphens is called hyphenation.
Our engine does rely on Libhnj, more exactly on the version enhanced for use in Open Office.
You can download the source code from
There are english, french, italian and spanish hyphen tables included (as pure delphi .res) in this release. But you can use official Open Office tables if you want another languages.
No external dll is necessary, you can hyphen any word directly in your Delphi project.
It was developed and tested under Delphi 7 and Kylix 3, under both Windows and Linux. If you need it, I could make a version compatible up to Delphi 2010.
Source code released as dual licensed under LGPL and MPL, like the original Libhnj library, so you can use it in both GPL and commercial products.
This is a first release, as draft. If you find it useful, we may enhance and document it.
First of all, I want to thank you for making public your hypenation engine. Do you have any plans for upgrading it to the latest Delphi versions?