From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51596 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: letter/correspondence module Date: Fri, 3 Jul 2009 13:30:15 +0200 Message-ID: <938656E8-7692-4E69-91E6-E18952F95357@gmail.com> References: <247A75D9-1059-45B9-8BA8-B3E59481A994@fiee.net> <300AF404-5779-4D67-A315-C087C267DF91@fiee.net> <0884C8C4-C96C-4F5E-BD2D-62B6662EDB6D@gmail.com> <4B212E1C-26A3-4656-993C-B1A2E12234ED@fiee.net> <6E2A4AA4-7E44-4166-978C-458DBAC50500@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246620659 25574 80.91.229.12 (3 Jul 2009 11:30:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 11:30:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 13:30:53 2009 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 1MMgyh-0007rS-At for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 13:30:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05B811FBF9; Fri, 3 Jul 2009 13:30:47 +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 10348-06; Fri, 3 Jul 2009 13:30:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DDC01FBD4; Fri, 3 Jul 2009 13:30:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29C051FBD4 for ; Fri, 3 Jul 2009 13:30:23 +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 10764-04 for ; Fri, 3 Jul 2009 13:30:14 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 405CE1FBCB for ; Fri, 3 Jul 2009 13:30:14 +0200 (CEST) Original-Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n63BUDqU029098 for ; Fri, 3 Jul 2009 13:30:13 +0200 Original-Received: by bwz4 with SMTP id 4so326174bwz.2 for ; Fri, 03 Jul 2009 04:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=f1BcDwaYzqCvKu7gcahN6Qw+YP6bhi8hRBynt4vBc60=; b=GNWluh0zyju0TOt1zVZhmA8HG/aQU0+E002ZCpf+StVprA90dvoBl5m4tCFiITLAb+ t1q9nkIu8KAdeXfYd8h+k0KjO0IX+ZFDTg6FEeqIpA7ETYNwkmM1uYGqAAvXBsQcC78k dpPm0OBvNKwAyfG2i2mKRReL79bUwDXhJdFow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=hQmIjmYIcgqSQuZZ8xYoVRgxOo6QpC5/xe68OYmfu7Rp89aNVcmwqv1TEX+U5q8sU4 erm7NV8mH8z3FQeIRr+NZfBoTFv1a8i32yXreOJ12QOdvtnIhPIcayUnZLG+0LySUZgE FtJIPPeBg4ZL/I/Z6vrN5jyXLF8fsGAgz2gtE= Original-Received: by 10.102.228.10 with SMTP id a10mr703694muh.131.1246620613215; Fri, 03 Jul 2009 04:30:13 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B29559D.dip.t-dialin.net [91.41.85.157]) by mx.google.com with ESMTPS id 23sm17289085mum.5.2009.07.03.04.30.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Jul 2009 04:30:12 -0700 (PDT) In-Reply-To: <6E2A4AA4-7E44-4166-978C-458DBAC50500@gmail.com> X-Mailer: Apple Mail (2.935.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.208; 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: 255049567 - 2e81648f5ae5 - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:51596 Archived-At: Am 02.07.2009 um 15:56 schrieb Wolfgang Schuster: >> I'm only writing letters in one language at a time, so will others. >> It was only a suggestion to take the key as label as a fallback - >> mostly it will be easy enough, and you don't need to define a >> proper label. > > I have to check if this can be done (in a good way) and if I like > this fallback method. I had now time to think about and my answer is I won't support keys in \setupletter as label names because it did not produce the output I expect but what I can do is to modify the \setlettervalue command in the following way. \usemodule[letter] \def\setlettervalue#1{\dodoubleempty\dosetlettervalue[#1]} \unprotected\def\dosetlettervalue[#1][#2]#3% {\ifsecondargument \setuplabeltext[\currentmainlanguage][letter:#1=#2]% %\else % \setuplabeltext[\currentmainlanguage][letter:#1=#1]% \fi \setvalue{\????ld#1}{#3}} % \setlettervalue{key}{value} % \setlettervalue{key}[labeltext]{value} \starttext \setupletterstyle[reference][list={durchwahl,raum,misc,date}] \setlettervalue{durchwahl}[Durchwahl]{0000/123456789} \setlettervalue{raum}{1. Stock Zimmer 21} \setlettervalue{misc}[]{another entry} \startletter \input ward \stopletter \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________