python 3 and Unicode line breaking

2011-01-13 Thread leoboiko
Hi, Is there an equivalent to the textwrap module that knows about the Unicode line breaking algorithm (UAX #14, http://unicode.org/reports/tr14/ )? -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 and Unicode line breaking

2011-01-14 Thread leoboiko
Of course I searched for one and couldn’t find; that goes without saying. Otherwise I wouldn’t even bother writing a message, isn’t it? I disagree people should cruft their messages with details about how they failed to find information, as that is unrelated to the question at hand and has no poi

Re: python 3 and Unicode line breaking

2011-01-14 Thread leoboiko
On Jan 14, 11:48 am, Stefan Behnel wrote: > Sadly, the OP did not clearly state that the required feature > is really not supported by "textwrap" and in what way textwrap > behaves differently. That would have helped in answering. Oh, textwrap doesn’t work for arbitrary Unicode text at all. For

Re: python 3 and Unicode line breaking

2011-01-14 Thread leoboiko
On Jan 14, 8:10 pm, Steven D'Aprano wrote: > The only other person I can see who has attempted to actually help the OP > is Stefan Behnel, who tried to get more information about the problem > being solved in order to better answer the question. The OP has, so far > as I can see, not responded, al

Re: python 3 and Unicode line breaking

2011-01-17 Thread leoboiko
On Jan 14, 11:28 pm, Steven D'Aprano wrote: > Does this help? > > http://packages.python.org/kitchen/api-text-display.html Ooh, it doesn’t appear to be a full line-breaking implementation but it certainly helps for what I want to do in my project! Thanks much! (There’s also the alternative of us