Deprecation Notice

Liblinebreak has been superseded by libunibreak in order to support more break types based on Unicode specifications. Please check out libunibreak for future updates.


Liblinebreak is an implementation of the line breaking algorithm as described in Unicode 6.0.0 Standard Annex 14, Revision 26. It breaks lines that contain Unicode characters. It is designed to be used in a generic text renderer. FBReader is one real-world example, and you may also check some simple sample code, like showbreak and breaktext.


The latest version (2.1) of liblinebreak can be download here, and you may want to check What’s New if you are an existing user.

CVS Access

Please check the information here. The module path is ‘common/tools/linebreak’.


This library is released under an open-source licence, the zlib/libpng licence. Please check the file LICENCE for details.

Apart from using the algorithm, part of the code is derived from the Unicode Online Data, and the Unicode Terms of Use may apply.


There are three ways to build the library:

  1. On *NIX systems supported by the autoconfiscation tools, do the normal
         sudo make install
    to build and install both the dynamic and static libraries. In addition, one may

  2. On systems where GCC and Binutils are supported, one can type
         cp -p Makefile.gcc Makefile
    to build the static library. In addition, one may

  3. On Windows, apart from using method 1 (Cygwin/MSYS) and method 2 (MinGW), MSVC can also be used. Type
         nmake -f Makefile.msvc
    to build the static library. By default the debug release is built. To build the release version
         nmake -f Makefile.msvc CFG="linebreak - Win32 Release"


Check the generated document doc/html/linebreak_8h.html in the downloaded file for the public interfaces exposed to applications.