From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23206 invoked from network); 18 Apr 2008 15:49:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Apr 2008 15:49:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 82545 invoked from network); 18 Apr 2008 15:49:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Apr 2008 15:49:34 -0000 Received: (qmail 4879 invoked by alias); 18 Apr 2008 15:49:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24841 Received: (qmail 4861 invoked from network); 18 Apr 2008 15:49:30 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Apr 2008 15:49:30 -0000 Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [133.205.19.65]) by bifrost.dotsrc.org (Postfix) with ESMTP id 281808043AC7 for ; Fri, 18 Apr 2008 17:48:53 +0200 (CEST) Received: from smtp-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (kbkr/0208160408) with ESMTP id m3IFmod8027389 for ; Sat, 19 Apr 2008 00:48:50 +0900 X-Biglobe-Sender: Received: from [192.168.0.3] (122.132.76.179 [122.132.76.179]) by smtp-gw.biglobe.ne.jp id AGGPAC15AFDB; Sat, 19 Apr 2008 00:48:50 +0900 (JST) Message-Id: <4FB7F05D-1C15-4D51-9B45-28EEF6F10B02@kba.biglobe.ne.jp> From: "Jun T." To: zsh-workers@sunsite.dk In-Reply-To: <20080418104016.3cf8d12b@news01> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: PATCH: (large) initial support for combining characters in ZLE. Date: Sat, 19 Apr 2008 00:48:50 +0900 References: <20080413175442.0e95a241@pws-pc> <9F0DCF1B-F5FB-4150-A4FF-C441DE615404@kba.biglobe.ne.jp> <20080418104016.3cf8d12b@news01> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: ClamAV 0.91.2/6827/Fri Apr 18 16:42:03 2008 on bifrost X-Virus-Status: Clean On 2008/04/18, at 18:40, Peter Stephenson wrote: > so iswgraph() might be the thing. There are about 15 characters for which "wcwidth() > 0 && ! iswgraph()" is true, all of them are a kind of white space (no tab or such). I personaly think "space + combining-char" is OK and just "wcwidth()>0" is enough for defining the base character. (wcwidth() is -1 for any control chars including tabs.) But if you think white space should not be a base character, then "wcwidth() > 0 && iswgraph()" would be the best definition of the base character. > Probably looking for a graphic zero width character is good enough. > There may not be control character with zero width, anyway. Yes, I believe so. "wcwidth()==0" would be just enough for defining the combining characters. wcwidth() is -1 for control characters. Jun