From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83953 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: left bracket in string.format() Date: Mon, 26 Aug 2013 17:01:20 +0200 Message-ID: <521B6DC0.5080907@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377529292 24730 80.91.229.3 (26 Aug 2013 15:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2013 15:01:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 26 17:01:36 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VDyIS-0007xy-1T for gctc-ntg-context-518@m.gmane.org; Mon, 26 Aug 2013 17:01:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E16DF101F9; Mon, 26 Aug 2013 17:00:18 +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 QpFedZJ07uM1; Mon, 26 Aug 2013 17:00:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4AC21101F1; Mon, 26 Aug 2013 17:00:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A997101F1 for ; Mon, 26 Aug 2013 17:00:16 +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 W6Z8tZSZMtdT for ; Mon, 26 Aug 2013 17:00:06 +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 EE1AB101F0 for ; Mon, 26 Aug 2013 17:00:05 +0200 (CEST) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7QF1LZu003037 for ; Mon, 26 Aug 2013 17:01:21 +0200 Original-Received: from [192.168.178.3] ([37.24.154.173]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M3d9B-1W4YmO1bXt-00rIoZ for ; Mon, 26 Aug 2013 17:01:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 X-Enigmail-Version: 1.5.2 X-Provags-ID: V03:K0:NUL7FRJCA4+vgxKnEDWtzprH6siRQruKBfsxk7JiswxBXEMSFk2 7kUBD0czPGf+WtG5LYfV/NBC7/RmaRMkAUr1l8KFI6TLmJnrwR2xRgKbK8LySzZ8NyeAh0H 0r+b0ukiPkZIALoUzjA1TJiFbf7f7aMDDzMIweuWKY1lnk94M3aOdz7rDI+Aan61BAFvVtg IRxFfhurJxsU9G2zk0W2Q== X-Bayes-Prob: 0.001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.15.15; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NKhr1lNH - b6cb43938663 - 20130826 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83953 Archived-At: Hi, Not sure if this is a bug or intended behaviour. I want to fill a TABLE row with "[]", but the leading left bracket causes some problems here. I tried the syntax 'print(string.format("[%d]",10)' in pure lua and the result is as desired. %% -------------- \starttext \startluacode context.bTABLE{} context.bTR() for i = 1,8 do context.bTH() context(string.format("[%d]",i)) context.eTH() end context.eTR() context.eTABLE() \stopluacode \stoptext %% -------------- gives [..] fonts > 'fallback modern rm 12pt' is loaded setup > error in line 6, namespace '354>', key '1' setup > error in line 9, namespace '354>', key '2' setup > error in line 12, namespace '354>', key '3' setup > error in line 15, namespace '354>', key '4' setup > error in line 18, namespace '354>', key '5' setup > error in line 21, namespace '354>', key '6' setup > error in line 24, namespace '354>', key '7' setup > error in line 27, namespace '354>', key '8' [..] and empty TABLE cells. Any help welcome. Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________