From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64689 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: error with m-database example Date: Tue, 21 Dec 2010 09:20:06 +0100 Message-ID: References: <4D0FCB69.7080908@wxs.nl> 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: dough.gmane.org 1292919624 31346 80.91.229.12 (21 Dec 2010 08:20:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 08:20:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 21 09:20:20 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 1PUxSG-0005jI-Ix for gctc-ntg-context-518@m.gmane.org; Tue, 21 Dec 2010 09:20:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60852CA90C; Tue, 21 Dec 2010 09:20:20 +0100 (CET) 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 He0-sL+fIl-c; Tue, 21 Dec 2010 09:20:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70543CA918; Tue, 21 Dec 2010 09:20:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7505ECA918 for ; Tue, 21 Dec 2010 09:20:16 +0100 (CET) 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 AwkOZgg-hPeI for ; Tue, 21 Dec 2010 09:20:14 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 3FFAECA90C for ; Tue, 21 Dec 2010 09:20:14 +0100 (CET) Original-Received: from mails3.awi.de (mails3.AWI.DE [134.1.2.14]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBL8KDhY010576 for ; Tue, 21 Dec 2010 09:20:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id D4B85D4B22 for ; Tue, 21 Dec 2010 09:20:12 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 3Nh2961XYkPU for ; Tue, 21 Dec 2010 09:20:08 +0100 (MET) Original-Received: from msg.awi.de (msg.AWI.DE [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 37247D4B0E for ; Tue, 21 Dec 2010 09:20:08 +0100 (MET) Original-Received: from [192.168.22.12] ([unknown] [77.188.174.40]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LDR004EYR5JPZ30@msg.awi.de> for ntg-context@ntg.nl; Tue, 21 Dec 2010 09:20:08 +0100 (MET) In-reply-to: <4D0FCB69.7080908@wxs.nl> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDJIkdI6 - dc44784aa6e8 - 20101221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:64689 Archived-At: On Dec 20, 2010, at 22:32 , Hans Hagen wrote: > On 20-12-2010 5:56, Mojca Miklavec wrote: >> On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote: >>> Hi, >>> >>> The example from http://wiki.contextgarden.net/m-database gives me an error. >>> >>> ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: bad argument #2 to 'lpegmatch' (string expected, got nil) >>> stack traceback: >>> [C]: in function 'lpegmatch' >>> ...t-beta/texmf-context/tex/context/base/m-database.lua:74: in function 'process' >>>
:1: in main chunk. >>> \doprocessdatabase ...ameter \c!command \!!es , }} >>> >>> l.18 \stopMyTable >>> >>> >>> I also, tried the first example of Mojca's CSV May Way (http://dl.contextgarden.net/myway/csv.pdf) which gives me: >>> >>> ! Undefined control sequence. >>> l.36 \startseparatedlist >>> [NaturalTable] >>> >>> Thanks for any suggestions, >>> Florian >> >> Dear Florian, >> >> Hans reimplemented the database module in MKIV. He requested a list of >> problems that I have discovered in new implementation, but apparently >> it's still on his TODO list to resolve them. > > replace line 42 in m-database.lua by: > > data = buffers.getlines(settings.database) > > (internally buffers used to be pre-split but that was changed) Thanks Hans. Both examples work now, though I had to replace \startseparatedlist[NaturalTable] with \startNaturalTable in Mojca's CSV May Way example. Florian ___________________________________________________________________________________ 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 ___________________________________________________________________________________