From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62273 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Stange behavior of \startluacode Date: Sun, 3 Oct 2010 11:12:33 +0200 Message-ID: <61C866B5-2F3D-43E4-A1BB-03F1E79DB463@gmail.com> References: <2135C917-84F5-408C-AFB0-9B89246E5909@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1286097211 5342 80.91.229.12 (3 Oct 2010 09:13:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Oct 2010 09:13:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 03 11:13:30 2010 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 1P2KdM-0005Jj-6X for gctc-ntg-context-518@m.gmane.org; Sun, 03 Oct 2010 11:13:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 916D1CA6E8; Sun, 3 Oct 2010 11:13:27 +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 nCnAzNGVeK4w; Sun, 3 Oct 2010 11:13:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76179CA6DF; Sun, 3 Oct 2010 11:13:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3522BCA6DF for ; Sun, 3 Oct 2010 11:13:23 +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 Dw59CERLasiy for ; Sun, 3 Oct 2010 11:13:11 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D07C1CA6DB for ; Sun, 3 Oct 2010 11:13:11 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o939DBgv011071 for ; Sun, 3 Oct 2010 11:13:11 +0200 Original-Received: by fxm10 with SMTP id 10so3825192fxm.14 for ; Sun, 03 Oct 2010 02:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=u4Q3yf64Yuav2yVt4nsk8H60Sk6dAtETlEB2hlw86XM=; b=YdN+uq5RbGahYUl5IdxIJhTuXEPaLBFj4eE6ZfELJtsYD4DoNq1U7uZCr+3PviryTK M4qSxChNrE7F2+o0vMVZ8ZJyP58ZG+wz1TnPLTBP6yka6chVTk10nmddDLuUDq2cttgk X8njvM1d68GRyzv/OY18gjY1hL4gpVLTAySJE= 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=ZyeefSgEc1fuWPE05GiWhT+FyV/jUJ7uMrwJ+bB6kNh2Aoos41MMXLzsOOaiXXVmHH CGoAxBDYgsuvcMD5NWU6MTf6F32nGEeDEhFjXcTf6i2jElYU6lch2ruMYwAcKWVrDK6N 6eK9wVzGj/qfOiVAsw4bhVc/iBo4ngSqThL/I= Original-Received: by 10.223.124.148 with SMTP id u20mr7506500far.57.1286097191073; Sun, 03 Oct 2010 02:13:11 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B292F75.dip.t-dialin.net [91.41.47.117]) by mx.google.com with ESMTPS id a6sm1584699faa.20.2010.10.03.02.13.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Oct 2010 02:13:10 -0700 (PDT) In-Reply-To: <2135C917-84F5-408C-AFB0-9B89246E5909@gmail.com> X-Mailer: Apple Mail (2.1081) 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: 0eDe9db0M - 69ded8d51429 - 20101003 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:62273 Archived-At: Am 03.10.2010 um 11:02 schrieb Wolfgang Schuster: > Am 03.10.2010 um 10:28 schrieb luigi scarso: > = >> Limitation, but it should be doable to remedy in TeX. > = > Possible but is it worth the effort, when you start with =93--=94 the per= cent should also behave like in Lua etc. The problem is that there is no solution to write something expandable (bec= ause \startluacode expands the content) which is required here. > \starttext > = > \bgroup\obeylines > \gdef\texcomment#1 > {} > \egroup > = > \bgroup > \let\letterhyphen=3D- > \catcode`-=3D13 > \unexpanded\def-{\futurelet\next\doscanhyphen} > \def\doscanhyphen > {\ifx\next- > \expandafter\texcomment > \else > \expandafter\letterhyphen > \fi} > \obeylines > text > text > % foo > - foo 1 -- \undefined \normalexpanded{- foo 1} \normalexpanded{-- foo 2} \normalexpanded{-- \undefined} > text > \egroup > = > \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 ___________________________________________________________________________= ________