My software
libhyphenate

March 24 2008

libhyphenate v1.1 released

Filed under: libhyphenateThiton at 01:54

I proud­ly present you the ver­sion 1.1 of lib­hy­phen­ate. UTF-8 char­ac­ters are now han­dled cor­rect­ly and some bugs were purged. Un­for­tu­nate­ly, I had to add glib-2.0 de­pen­dence to en­able the UTF-8 han­dling.

On the func­tion­al­i­ty side, a lot hap­pened: The lib­hy­phen­ate not on­ly cor­rect­ly hy­phen­ates whole texts in­stead of sin­gle words, but can al­so de­ter­mine the best hy­phen­ation point to fit the text in­to a giv­en width - just what you need to im­ple­ment fixed-width columns.

Down­load source tar­ball of cur­rent ver­sion

Down­load source tar­ball of ver­sion 1.1

XHTML hyphenator 1.1 released

Filed under: libhyphenateThiton at 01:52

Thanks to Adiel Mittmann for patch­ing bugs in the XHTML Hyphen­ator, which will not choke on doc­u­ments con­tain­ing DTDs any­more and won't leak mem­o­ry now.

Down­load source tar­ball of cur­rent ver­sion

Down­load source tar­ball of ver­sion 1.1

March 15 2008

xhtml_hyphenate: An hyphenation program for XHTML documents

Filed under: libhyphenateThiton at 16:24

As an ex­am­ple for re­al-world us­age of lib­hy­phen­ate, I proud­ly present you the XHTML hy­phen­ator. By scru­ti­niz­ing the xml:lang tag present in XML doc­u­ments, it hy­phen­ates all non-head­er text nodes of an XHTML doc­u­ment with stan­dard UTF-8 soft hy­phens, which are used by all stan­dard browsers ex­cept Mozil­la Fire­fox as hy­phen­ation hints. Fire­fox ig­nores them com­plete­ly, so no harm is done.

Down­load the source tar­ball of the cur­rent ver­sion

Down­load the source tar­ball of ver­sion 1.0

March 11 2008

libhyphenate: A general purpose hyphenation library

Filed under: libhyphenateThiton at 21:27

I'm proud to present you a li­brary im­ple­ment­ing Liangs hy­phen­ation al­go­rithm (yes, the one used in TeX) for C and C++. It is de­liv­ered to­geth­er with hy­phen­ation files for U.S. English, Ger­man, French and Span­ish, and more hy­phen­ation files are easy to com­pile from those in­clud­ed in TeX.

In ver­sion 1.0, the prob­lems that arised with the im­prop­er han­dling of UTF-8 files in ger­man-lan­guage texts were re­solved.

Down­load source tar­ball of cur­rent ver­sion

Down­load source tar­ball of ver­sion 1.0

Valid XHTML Strict 1.0 Valid Atom Design by Northern Web Coders