From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69746 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: context.labeltext(...) Date: Tue, 05 Jul 2011 09:22:20 +0200 Message-ID: <4E12BBAC.2000705@wxs.nl> References: <3A06F342-571C-4790-B5F9-D3A63AC846A9@boede.nl> <20110704165314.GA6145@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1309850566 3346 80.91.229.12 (5 Jul 2011 07:22:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2011 07:22:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 05 09:22:42 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdzxy-0004HD-Bf for gctc-ntg-context-518@m.gmane.org; Tue, 05 Jul 2011 09:22:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82CCFCADE4; Tue, 5 Jul 2011 09:22:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ttpl+57oM602; Tue, 5 Jul 2011 09:22:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63035CADD4; Tue, 5 Jul 2011 09:22:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA126CADD4 for ; Tue, 5 Jul 2011 09:22:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id i-JSHKPI5EBw for ; Tue, 5 Jul 2011 09:22:33 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id B328DCADD2 for ; Tue, 5 Jul 2011 09:22:33 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p657MX7f012426 for ; Tue, 5 Jul 2011 09:22:33 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.2a) with ESMTP id 7834-1713362 for multiple; Tue, 05 Jul 2011 09:22:27 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 ThunderBrowse/3.3.5 In-Reply-To: <20110704165314.GA6145@khaled-laptop> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06F47mxbz - 68a170f48d31 - 20110705 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69746 Archived-At: On 4-7-2011 6:53, Khaled Hosny wrote: > On Mon, Jul 04, 2011 at 06:20:37PM +0200, luigi scarso wrote: >> On Mon, Jul 4, 2011 at 6:05 PM, Willi Egger wrote: >>> Hi Luigi, >>> >>> hm, did not know this one. Still I can not see that this is going to >>> fit in my situation. I refer to may other mail I sent a minute ago. >>> - The thing is, that the document I am building should be >>> multilingual and therefore I need at the lua-end the lowercase text >>> which should be made first-letter-uppercase at the moment it is >>> typeset. >> In the first email you talked about a generic label. Uppercase /lower >> case are unicode sensitive; as Wolfgang already wrote >> string.lower(..) and string.upper(..) can help , but they depend on > > unicode.utf8.lower()/upper() are a better choice for non-ASCII text. > > (I still believe the default string manipulation functions should be > Unicode aware by default, and the 8-bit ones should be an alternative, > not the other way around). you can just rename/remap them if needed; swapping stock lua and unicode functions would render regular lua manuals/tutorials useless and also make lua 8-bit dirty (local lower = utf.lower at the top of a file is enough to get what you want) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________