From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40688 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: Date with three-letter month Date: Thu, 24 Apr 2008 19:45:19 +0200 Message-ID: <20080424174519.GA10745@gaston.couberia.bzh> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209059198 20644 80.91.229.12 (24 Apr 2008 17:46:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 17:46:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 24 19:47:12 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Jp5XJ-0006Bu-BC for gctc-ntg-context-518@m.gmane.org; Thu, 24 Apr 2008 19:47:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79F271FBD4; Thu, 24 Apr 2008 19:46:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30126-04; Thu, 24 Apr 2008 19:45:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF93E1FBE8; Thu, 24 Apr 2008 19:45:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 028ED1FBE8 for ; Thu, 24 Apr 2008 19:45:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30346-03 for ; Thu, 24 Apr 2008 19:45:22 +0200 (CEST) Original-Received: from smtp2e.orange.fr (smtp2e.orange.fr [80.12.242.113]) by ronja.ntg.nl (Postfix) with ESMTP id 834731FBCB for ; Thu, 24 Apr 2008 19:45:20 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2e26.orange.fr (SMTP Server) with ESMTP id ED12170000A1 for ; Thu, 24 Apr 2008 19:45:19 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-358-1-85-189.w90-54.abo.wanadoo.fr [90.54.20.189]) by mwinf2e26.orange.fr (SMTP Server) with ESMTP id CF50670000A0 for ; Thu, 24 Apr 2008 19:45:19 +0200 (CEST) X-ME-UUID: 20080424174519849.CF50670000A0@mwinf2e26.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 4CE9F305A2; Thu, 24 Apr 2008 19:45:19 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40688 Archived-At: On Thu, Apr 24 2008, richard.stephens@converteam.com wrote: > Thanks Taco. This does the job. All I need now is a version (\Monthshort > ??) which puts the first > letter in uppercase, Jan , Feb, etc. % engine=luatex \startluacode function Monthshort(m) -- os.setlocale("fr_FR.utf8") -- just for testing... tex.print(os.date("%b", os.time({day = 10, month = m, year = 2000}))) os.setlocale("C") end \stopluacode \starttext \ctxlua{Monthshort(\the\normalmonth)} \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/ ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________