From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Unicode general categories Date: Wed, 23 Dec 2009 23:08:21 -0800 (PST) Message-ID: <508814.4641.qm@web37905.mail.mud.yahoo.com> References: <2bc5f8210912232146s976fb0cif6d1968d068e42ec@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261638526 24630 80.91.229.12 (24 Dec 2009 07:08:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2009 07:08:46 +0000 (UTC) To: Julian Graham , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Dec 24 08:08:39 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NNhoL-0005Ff-58 for guile-devel@m.gmane.org; Thu, 24 Dec 2009 08:08:37 +0100 Original-Received: from localhost ([127.0.0.1]:41738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNhoK-0000sl-Uo for guile-devel@m.gmane.org; Thu, 24 Dec 2009 02:08:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNhoA-0000sY-Ne for guile-devel@gnu.org; Thu, 24 Dec 2009 02:08:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNho6-0000s6-W8 for guile-devel@gnu.org; Thu, 24 Dec 2009 02:08:26 -0500 Original-Received: from [199.232.76.173] (port=38964 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNho6-0000s3-Qg for guile-devel@gnu.org; Thu, 24 Dec 2009 02:08:22 -0500 Original-Received: from web37905.mail.mud.yahoo.com ([209.191.91.167]:20016) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NNho6-0008GA-DY for guile-devel@gnu.org; Thu, 24 Dec 2009 02:08:22 -0500 Original-Received: (qmail 5304 invoked by uid 60001); 24 Dec 2009 07:08:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1261638501; bh=CE+LOZbnoak5h0DV1RKo3pL7Nrro++VAoH7heZ5P5yQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DWm5wTaHwzpLDVGjLXHY0I64jfvP8Nd0rhlXn+cmMpGFldIpoVHukCkMXjYOA5dBSX8go8xGIJD3QK8wgXjRfy5l716tYkHl9yuYsZ9V484FLwZAHld+qzMbWffFv6O5+Zv0aXuOMa1iua42E+3WPcoBcjqSoau4E3N0hrKIe00= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qgbsz7oEIxp5Thg4jS5XvDzIuvQxFvleA8mr4aA1+sXErYjZKeulTM1wedAtjoRPtgflGFBxOGTFB4H9NZ8UATbiAtHSrhsVeHMKhTvB0dHbBBRTufcmcD4xyUA05vhyP0xywuxNK9RIQrlnsZss8iO5xxqL5Q2kfKb0XFwEgsE=; X-YMail-OSG: AHbZ1wwVM1l_UqC2dUwcSK6zhekvdOzMaJJ5bbulxakXKTf86gXlQFGJYl4zqzc_4z5j014l19GYyyR5E1YfNK98Up5o1VAE7LtL6h1RJIomh5Syz4CoVGpxzNjwkuJdyOSnD7RsuHl6h6tPPSJwsG2BYsFydHCQ7p_rY0m3tSj5LKpHaP4uC5N1TV98IWDNEMPMVpANNCkvDCZMcB75zn7cJMgEEcByknUwZGTTNg3H_CK0VClTBCM3ouG2adgImKDReuPw9KAOWeSvf_wy4ZKryCI0z3rChC.F_NP4kpsw4a17FKranjkqQvFtmVeLUb2kARk- Original-Received: from [71.130.209.229] by web37905.mail.mud.yahoo.com via HTTP; Wed, 23 Dec 2009 23:08:21 PST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 In-Reply-To: <2bc5f8210912232146s976fb0cif6d1968d068e42ec@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9795 Archived-At: > Hi all,=0A> =0A> Find attached a patch that adds support for finding out = the Unicode=0A> general category [0] for a character, including documentati= on and unit=0A> tests.=A0 The API is pretty much the same as the one descri= bed in R6RS=0A> Standard Libraries 1.1 [1].=A0 I'll push if no one objects.= =0A=0AHi Julian-=0A=0ACool.=A0 I have two very minor and pedantic suggestio= ns.=A0 You say that =0Ait will return a=A0"one- or two-letter name".=A0 I'm= pretty sure that=0Athis code will always return a two-letter name and not = the one-letter=0Ageneral category.=A0 =0A=0AAlso, the output of SCM_CHAR is= =A0effectively a=A032-bit signed int and the =0Auc_general_category takes= =A0effectively a=A032-bit unsigned int, so perhaps the=0Acast to (int) shou= ld be left out or be libunistring's (ucs4_t) instead.=0ABut, of course, the= code=A0works fine as it is.=0A=0AThanks,=0A=0AMike Gran