My favorites | Sign in
Project Logo
                
Feeds:
Groups:
People details
Project owners:
  fhaxbox66

PyHyphen is a wrapper for the Python programming language around the Open Source C library 'hyphen-2.3' originally from hnjlib. It is widely used in software such as OpenOffice.org and Mozilla.


{{{Code example:

>>>from hyphen import hyphenator >>>h = hyphenator('en_US') # this language is the default value; it can thus be omitted >>>h.pairs('hyphenation') u'ation', u'phenation'] >>>h.inserted('hyphenation') u'hy=phen=ation' >>>h.wrap('hyphenation', 7) u'ation'

Example of non-standard hyphenation from Hungarian:

>>>hyphenator('hu_HU').pairs('asszonnyal') u'nyal', u'szonnyal'] }}}


Mailing list

Download a recent tarball from the Python Package Index









Hosted by Google Code