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

Re: python 3 and Unicode line breaking

2011-01-14 Thread Steven D'Aprano
On Fri, 14 Jan 2011 14:26:09 -0800, leoboiko wrote: ... > As for taking the time to provide information, I wonder if there was any > technical problem that prevented you from seeing my reply to Stefan, > sent Jan 14, 12:29PM? Presumably, since I haven't got it in my news client. This is not the

Re: python 3 and Unicode line breaking

2011-01-14 Thread Antoine Pitrou
On Fri, 14 Jan 2011 06:29:27 -0800 (PST) leoboiko wrote: > > And it generally doesn’t try to pick good places to break lines > at all, just making the assumption that 1 character = 1 column > and that breaking on ASCII whitespaces/hyphens is enough. We > can’t really blame textwrap for that, it

Re: python 3 and Unicode line breaking

2011-01-14 Thread Antoine Pitrou
On 14 Jan 2011 22:10:02 GMT Steven D'Aprano wrote: > > This is good, helpful advice, and far more useful to the OP than just > ignoring his post. You have jumped to his defense (or rather, you have > jumped to criticise me) but I see that you haven't replied to his > question or given him any

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-14 Thread Steven D'Aprano
On Fri, 14 Jan 2011 20:47:35 +0100, Antoine Pitrou wrote: > You would never have reacted this way if the same question had been > phrased by a regular poster here (let alone on python-dev). Taking cheap > shots at newcomers is certainly not the best way to welcome them. You're absolutely correct.

Re: python 3 and Unicode line breaking

2011-01-14 Thread Colin J. Williams
On 14-Jan-11 14:47 PM, Antoine Pitrou wrote: Hey, On 14 Jan 2011 16:07:12 GMT Steven D'Aprano wrote: I also see no reason to reply to a simple question with such discourtesy, and cannot understand why someone would be so aggressive to a stranger. If you think my reply was aggressive and d

Re: python 3 and Unicode line breaking

2011-01-14 Thread Antoine Pitrou
Hey, On 14 Jan 2011 16:07:12 GMT Steven D'Aprano wrote: > > > I also see no reason to reply to a simple question with such > > discourtesy, and cannot understand why someone would be so aggressive to > > a stranger. > > If you think my reply was aggressive and discourteous, you've got a lot >

Re: python 3 and Unicode line breaking

2011-01-14 Thread Steven D'Aprano
On Fri, 14 Jan 2011 05:06:15 -0800, leoboiko wrote: > 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? You wouldn't say that if you had the slightest idea about how many people write to newsgroups and web

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 Stefan Behnel
Steven D'Aprano, 14.01.2011 01:15: On Thu, 13 Jan 2011 12:45:31 -0800, leoboiko wrote: Is there an equivalent to the textwrap module that knows about the Unicode line breaking algorithm (UAX #14, http://unicode.org/reports/tr14/ )? Is access to Google blocked where you are, or would you just l

Re: python 3 and Unicode line breaking

2011-01-14 Thread Stefan Behnel
leoboiko, 14.01.2011 14:06: 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 q

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-13 Thread Steven D'Aprano
On Thu, 13 Jan 2011 12:45:31 -0800, leoboiko wrote: > Hi, > > Is there an equivalent to the textwrap module that knows about the > Unicode line breaking algorithm (UAX #14, > http://unicode.org/reports/tr14/ )? Is access to Google blocked where you are, or would you just like us to do your sea

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