From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68839 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: checking mainlanguage setup Date: Wed, 1 Jun 2011 14:54:43 +0200 Message-ID: <4B25E72F-6649-4200-8708-0821BE063516@googlemail.com> References: <03D02E6E-2F85-442E-ABE8-FB63D8BC1614@me.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="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306932915 15327 80.91.229.12 (1 Jun 2011 12:55:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2011 12:55:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 01 14:55:11 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 1QRkx2-0005lz-Q7 for gctc-ntg-context-518@m.gmane.org; Wed, 01 Jun 2011 14:55:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F5FCCAD47; Wed, 1 Jun 2011 14:55:07 +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 a5Vw1wxlm6GL; Wed, 1 Jun 2011 14:55:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 799F1CAD3A; Wed, 1 Jun 2011 14:55:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C049BCAD3A for ; Wed, 1 Jun 2011 14:55:02 +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 Go1nBYCmPX6E for ; Wed, 1 Jun 2011 14:54:48 +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 D68AECAD36 for ; Wed, 1 Jun 2011 14:54:48 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p51CsmAf026690 for ; Wed, 1 Jun 2011 14:54:48 +0200 Original-Received: by fxm18 with SMTP id 18so18991fxm.14 for ; Wed, 01 Jun 2011 05:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=uDPgx6mnbOW9YxKVt2eAcmN3tMz0xl2bNclMMHb3mrM=; b=u5oA2cd5Dx7fJSbFMppUE5D1dMSSCW2ugRwlRKCnTQf0rPxZHr4rmLmX6gP4y7mHyb OvG+e9HaBq9CHHuA8Bok/y4sHbcWlcA/iJ3t32RImnVD+eosKXTvd1MC5DBYYsyqwz1c 1A+PWMx4jfcNnA7pfh9gensweDiOJZEQSReg8= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=CTiXJtMEeGRQLg0TmyKf55/mKvUVc/MzkbDyzYm4GCWkBL8yd7g1RSt5GftIyEPX2N vCkSpJ61FBIR6JHTHCMCBOTtsPqZ7Uki8YgPvwbRH7JDkcD0492wrWAcOw9xOEmd9ItK U+bJLxs0yoPoz5WU5uCFGa5OsbhN9xHJj2HUI= Original-Received: by 10.223.96.6 with SMTP id f6mr3996923fan.119.1306932887798; Wed, 01 Jun 2011 05:54:47 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EFF6E.dip.t-dialin.net [91.14.255.110]) by mx.google.com with ESMTPS id m26sm403860fab.10.2011.06.01.05.54.44 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 05:54:45 -0700 (PDT) In-Reply-To: <03D02E6E-2F85-442E-ABE8-FB63D8BC1614@me.com> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 06EOASMsC - d198bd3491aa - 20110601 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:68839 Archived-At: Am 01.06.2011 um 09:45 schrieb Jeong Dalyoung: > I summerize it as a test file. The first 5 methods are working well, but the last one using \noexpand cause the error. What exactly do you plan to do with the language check, for simple texts your method is overkill and labeltexts are better suited, even a command which prints a text can be written in TeX without problems: \def\LangOne {\doifelse{\currentmainlanguage}{en} {English 1} {\doifelse{\currentmainlanguage}{nl} {Dutch 1} {Unknown 1}}} \def\LangTwo {\processaction [\currentmainlanguage] [ en=>English 2, nl=>Dutch 2, unknown=>Unknown 2]} \setuplabeltext[en][langthree=English 3] \setuplabeltext[nl][langthree=Dutch 3] \setuplabeltext [langthree=Unknown 3] \starttext \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \mainlanguage[nl] \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \mainlanguage[fr] \LangOne:\LangTwo:\labeltext{langthree}:\translate[en=English 4,nl=Dutch 4] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________