From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69723 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: context.labeltext(...) Date: Mon, 4 Jul 2011 18:12:24 +0200 Message-ID: References: <3A06F342-571C-4790-B5F9-D3A63AC846A9@boede.nl> <8260169C-86E6-4DFA-BB4F-D353632FEE8F@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309795959 18534 80.91.229.12 (4 Jul 2011 16:12:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 16:12:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 18:12:35 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 1QdllC-0003AK-RN for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2011 18:12:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1F65CADD7; Mon, 4 Jul 2011 18:12:33 +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 9QCXM5swgT4b; Mon, 4 Jul 2011 18:12:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 65F89CADD1; Mon, 4 Jul 2011 18:12:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 198EFCADD1 for ; Mon, 4 Jul 2011 18:12:29 +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 RSYudQkqN6Md for ; Mon, 4 Jul 2011 18:12:27 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 54B72CAB80 for ; Mon, 4 Jul 2011 18:12:27 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p64GCQ0e007952 for ; Mon, 4 Jul 2011 18:12:27 +0200 Original-Received: by fxe23 with SMTP id 23so5015604fxe.15 for ; Mon, 04 Jul 2011 09:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=IIK/wY4SIau1ASmBkQ0GuBjSD5NTJBghd755kJHrNu8=; b=JIKWdKyymEOwCnvAy5ok8W+bX5WVtggTTryDO76qFAjIBvPuoEdKXnsFR1S+zrw2aa MvBFdWvAVqGSIWRFQOfgr/A7rjLdhu3Fr3bBo/r0srqvBkVFykk44bLzlSB9Gz50SYPK PPJLNoBcvZ0ZPq+iLQ3vuKcgYayz6GTvOuVMc= Original-Received: by 10.223.23.143 with SMTP id r15mr9825303fab.29.1309795946676; Mon, 04 Jul 2011 09:12:26 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EF214.dip.t-dialin.net [91.14.242.20]) by mx.google.com with ESMTPS id f15sm3476255fai.46.2011.07.04.09.12.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 09:12:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rF3QcqTQ - 75d72871bd20 - 20110704 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:69723 Archived-At: Am 04.07.2011 um 18:00 schrieb Willi Egger: > Hello Wolfgang, > = > thanks for your reply. > = > I see that I was not quite clear with my explanation. > The situation is the following: > = > in a function which runs over the months of the year at a certain moment = I need to insert at the ConTeXt side the monthname. However the monthname r= eturned by the following statement is all lowercase, which is ok for the tr= anslation of the labeltext. In the document however I need the labeltext in= with a starting uppercase letter. The question is therefor how to achieve = this uppercase first letter ??? The first letter in the month name you get from Lua is uppercase as you can= see in the output from your example. To make the first letter uppercase at the TeX side you can use =93context.W= ord(...)=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________