I recently needed to do some manual word wrapping (and possibly hyphenation) of strings in JavaScript and found some interesting code projects:
- TypeSet – an implementation of the 1981 Knuth and Plass line breaking algorithm [PDF] using JavaScript and the HTML5 canvas element.
 - “wordwrap” for JavaScript – A port of PHP’s wordwrap function.
 - Hyphenator.js – client-side hyphenation of HTML-Documents
 - Balance-text – A jQuery plugin for balancing wrapping text in a web page
 
