From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69719 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: context.labeltext(...) Date: Mon, 4 Jul 2011 17:41:52 +0200 Message-ID: <8260169C-86E6-4DFA-BB4F-D353632FEE8F@googlemail.com> References: <3A06F342-571C-4790-B5F9-D3A63AC846A9@boede.nl> 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 1309794143 7756 80.91.229.12 (4 Jul 2011 15:42:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 15:42:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 04 17:42:19 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 1QdlHr-00080X-Q2 for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jul 2011 17:42:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E5E6CAB80; Mon, 4 Jul 2011 17:42:12 +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 pYe-dnxPRwmU; Mon, 4 Jul 2011 17:42:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03B9ACADD1; Mon, 4 Jul 2011 17:42:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E9FFCADD1 for ; Mon, 4 Jul 2011 17:42:08 +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 1EUN2oQ-QdGU for ; Mon, 4 Jul 2011 17:41:57 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 37196CAB80 for ; Mon, 4 Jul 2011 17:41:57 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p64Fft57029757 for ; Mon, 4 Jul 2011 17:41:56 +0200 Original-Received: by fxe23 with SMTP id 23so4995819fxe.15 for ; Mon, 04 Jul 2011 08:41:55 -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=YT7TYyB8o+mWDK+xrDv+AvZsF65GPwi4oM1E9xOqstM=; b=nFOSJVKLRuIARF6q1IybWDG/B7GLuE14vejJN8JNje+IatV4bn3mHH+/kzpfF+nWwK boEWQGtzpRwsoWhX8H4K6meZb3aVTi23Od8PsTXQq2TUQUxm4CSzKMEoDBJjfNh/9kW/ i+RNJ4T26o4AoDuhjxhpO6Y2rCpd9Yis/iPWo= Original-Received: by 10.223.145.2 with SMTP id b2mr9771738fav.99.1309794115755; Mon, 04 Jul 2011 08:41:55 -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 k26sm4632802fak.0.2011.07.04.08.41.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 08:41:54 -0700 (PDT) In-Reply-To: <3A06F342-571C-4790-B5F9-D3A63AC846A9@boede.nl> 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: 0cF3PFUC0 - 7f9903ec5628 - 20110704 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:69719 Archived-At: Am 04.07.2011 um 17:02 schrieb Willi Egger: > Hi all, > = > experimenting with context.labeltext... > = > My question is how can I tweak the context.labeltext(text) command at the= lua-side to make ConTeXt to typeset the labeltext starting with an upperc= ase letter? e.g. if "text" contains "january" to display "January"? You can access constants and variables with =93interfaces.constants=94 and = =93interfaces.variables=94: \starttext \startluacode context.labeltext("%s",interfaces.variables.january) \stopluacode \stoptext 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 ___________________________________________________________________________= ________