djangosnippets.org: Latest snippets tagged with 'pyhyphen'http://djangosnippets.org/tags/pyhyphen/2009-04-16T19:10:01.335684-05:00Soft hyphenation (­) template filter using PyHyphen
2009-04-16T19:10:01.335684-05:00dokterbobhttp://djangosnippets.org/snippets/1446/<p>This template filter is meant to insert soft hyphens (<a href="http://www.cs.tut.fi/~jkorpela/shy.html">&shy; entities</a>) in text whever it can. For this is relies on a <strong>recent</strong> checkout of the <a href="http://code.google.com/p/pyhyphen/">PyHyphen</a> interface to the hyphen-2.3 C library, which is also used by Mozilla and OpenOffice.org.</p>
<p>It takes two optional parameters: the language …</p>
Freely redistributable