* Florian Weimer <f...@deneb.enyo.de>, 2011-08-19, 20:08:
Please note however that DCWHyphenator is only one of the available hyphenators; you might have better luck with others.

I couldn't find out how to instantiate any of them.

I managed to instantiate pure-Python version of PyHnjHyphenator:

from wordaxe.PyHnjHyphenator import PyHnjHyphenator
hyphenator = PyHnjHyphenator(language='en', purePython=1)
for x in hyphenator.hyphenate(u'ergonomic').get_hyphenations():
...   print x
... (u'er\xad', HyphenatedWord(u'gonomic'))
(u'ergo\xad', HyphenatedWord(u'nomic'))
(u'ergonom\xad', HyphenatedWord(u'ic'))

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to