[imp] wrapping Chinese text

Wenzhuo Zhang wenzhuo@zhmail.com
Tue, 9 Jul 2002 20:48:48 +0800


On Mon, Jul 08, 2002 at 12:08:07PM +0200, Jan Schneider wrote:
> Zitat von Wenzhuo Zhang <wenzhuo@zhmail.com>:
> 
> > Usually, spaces are not used to separate words/sentences in Chinese. So
> > wordwrap does not work as expected for Chinese text. The following patch
> > is an effort to wrap Chinese text when replying messages.
> 
> I wasn't able to verify if this patch works, but at least it does no harm to
> other charsets. Please check with the HEAD version from cvs if work there too.
> 

It should work with the HEAD branch except that Text::wrap() is now
called from IMP_BodyText::replyMessage(). I've yet to setup a test
environment to verify it though.

> Unfortunately there is no mbstring version of wordwrap, that would have been
> the cleanest way to fix it. Perhaps you can put some effort in bringing
> wordwrap() to PHP's mbstring extension.
> 

I'll take a look into mbstring to find out if I can do something for it.

-- 
Wenzhuo
  GnuPG Key ID 0xBA586A68
  Key fingerprint = 89C7 C6DE D956 F978 3F12  A8AF 5847 F840 BA58 6A68